ports/57521: New Port - databases/py-sybase
Gregory Bond
gnb at itga.com.au
Thu Oct 2 23:40:13 UTC 2003
>Number: 57521
>Category: ports
>Synopsis: New Port - databases/py-sybase
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 02 16:40:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Gregory Bond
>Release: FreeBSD 4.8-STABLE i386
>Organization:
ITG Australia Limited
>Environment:
System: FreeBSD hellcat.itga.com.au 4.8-STABLE FreeBSD 4.8-STABLE #16: Thu Jul 24 11:25:45 EST 2003 toor at grollo.itga.com.au:/usr/obj/usr/src/sys/HELLCAT i386
>Description:
py-sybase is a Python DBI-compliant interface to Sybase and MS SQLServer
databases.
This version of the port works with the new pkg-comment-less ports
framework and passes portlint with no problems.
This PR supercedes ports/51543 and ports/45909 which can be closed.
>How-To-Repeat:
>Fix:
--- py-sybase-port.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# databases
# databases/py-sybase
# databases/py-sybase/Makefile
# databases/py-sybase/distinfo
# databases/py-sybase/files
# databases/py-sybase/pkg-descr
# databases/py-sybase/pkg-plist
#
echo c - databases
mkdir -p databases > /dev/null 2>&1
echo c - databases/py-sybase
mkdir -p databases/py-sybase > /dev/null 2>&1
echo x - databases/py-sybase/Makefile
sed 's/^X//' >databases/py-sybase/Makefile << 'END-of-databases/py-sybase/Makefile'
X# New ports collection makefile for: py-sybase
X# Date created: 21 November 2002
X# Whom: Gregory Bond <gnb at itga.com.au>
X#
X# $FreeBSD$
X
XPORTNAME= sybase
XPORTVERSION= 0.36
XCATEGORIES= databases python
XMASTER_SITES= http://object-craft.com.au/projects/sybase/download/
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX}
X
XMAINTAINER= gnb at itga.com.au
XCOMMENT= A Python Database API interface to the Sybase RDBMS
X
XLIB_DEPENDS= tds.0:${PORTSDIR}/databases/freetds
X
XUSE_PYTHON= yes
XUSE_PYDISTUTILS= yes
X
X.if defined(TDS_VERSION)
XTDS_SUF="=${TDS_VERSION}"
X.else
Xpre-fetch:
X @V=`pkg_info | sed -ne 's/^freetds-0.\(..\).*/\1/p'` ; \
X if [ $$V -le 60 ]; then \
X ${ECHO_MSG} "Suggest you update your FreeTDS port to at least version 0.61" ; \
X ${ECHO_MSG} "Otherwise, you will need to add TDS_VERSION=$$V to the Make command" ; \
X exit 1 ;\
X fi
X.endif # defined(TDS_VERSION)
X
XMAKE_ENV+= SYBASE=${LOCALBASE}
X
X.if !defined(WITHOUT_THREADS)
XBUILDARGS= -D WANT_THREADS -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF}
X.else
XBUILDARGS= -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF}
X.endif
X
X# Need this because -D<> args needed for build_ext but illegal for build
Xdo-build:
X @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${BUILDARGS} )
X @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build)
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${EXAMPLESDIR} ${DOCSDIR}
X @${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${EXAMPLESDIR}
X @${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-databases/py-sybase/Makefile
echo x - databases/py-sybase/distinfo
sed 's/^X//' >databases/py-sybase/distinfo << 'END-of-databases/py-sybase/distinfo'
XMD5 (sybase-0.36.tar.gz) = 61b624b137d78462b9dc4c3d8ba43450
XMD5 (sybase-html.tar.gz) = c48433fde6cc29fd8b08ae0afe8a113d
END-of-databases/py-sybase/distinfo
echo c - databases/py-sybase/files
mkdir -p databases/py-sybase/files > /dev/null 2>&1
echo x - databases/py-sybase/pkg-descr
sed 's/^X//' >databases/py-sybase/pkg-descr << 'END-of-databases/py-sybase/pkg-descr'
XA Python interface to the Sybase relational database system. The
XSybase package supports all of the Python Database API, version 2.0
Xwith extensions.
X
XAuthor: Dave Cole <djc at object-craft.com.au>
XWWW: http://object-craft.com.au/projects/sybase/
X
X-- Gregory Bond <gnb at itga.com.au>
END-of-databases/py-sybase/pkg-descr
echo x - databases/py-sybase/pkg-plist
sed 's/^X//' >databases/py-sybase/pkg-plist << 'END-of-databases/py-sybase/pkg-plist'
X%%PYTHON_SITELIBDIR%%/Sybase.py
X%%PYTHON_SITELIBDIR%%/Sybase.pyc
X%%PYTHON_SITELIBDIR%%/Sybase.pyo
X%%PYTHON_SITELIBDIR%%/sybasect.so
X%%PORTDOCS%%share/doc/sybase/about.html
X%%PORTDOCS%%share/doc/sybase/contents.html
X%%PORTDOCS%%share/doc/sybase/front.html
X%%PORTDOCS%%share/doc/sybase/genindex.html
X%%PORTDOCS%%share/doc/sybase/images.aux
X%%PORTDOCS%%share/doc/sybase/images.idx
X%%PORTDOCS%%share/doc/sybase/images.log
X%%PORTDOCS%%share/doc/sybase/images.tex
X%%PORTDOCS%%share/doc/sybase/index.html
X%%PORTDOCS%%share/doc/sybase/modimages.idx
X%%PORTDOCS%%share/doc/sybase/module-Sybase.html
X%%PORTDOCS%%share/doc/sybase/module-sybasect.html
X%%PORTDOCS%%share/doc/sybase/node10.html
X%%PORTDOCS%%share/doc/sybase/node12.html
X%%PORTDOCS%%share/doc/sybase/node13.html
X%%PORTDOCS%%share/doc/sybase/node14.html
X%%PORTDOCS%%share/doc/sybase/node15.html
X%%PORTDOCS%%share/doc/sybase/node16.html
X%%PORTDOCS%%share/doc/sybase/node17.html
X%%PORTDOCS%%share/doc/sybase/node18.html
X%%PORTDOCS%%share/doc/sybase/node19.html
X%%PORTDOCS%%share/doc/sybase/node20.html
X%%PORTDOCS%%share/doc/sybase/node21.html
X%%PORTDOCS%%share/doc/sybase/node22.html
X%%PORTDOCS%%share/doc/sybase/node23.html
X%%PORTDOCS%%share/doc/sybase/node3.html
X%%PORTDOCS%%share/doc/sybase/node4.html
X%%PORTDOCS%%share/doc/sybase/node5.html
X%%PORTDOCS%%share/doc/sybase/node6.html
X%%PORTDOCS%%share/doc/sybase/node7.html
X%%PORTDOCS%%share/doc/sybase/node9.html
X%%PORTDOCS%%share/doc/sybase/sybase.css
X%%PORTDOCS%%share/doc/sybase/sybase.html
X%%PORTDOCS%%share/doc/sybase/icons/blank.gif
X%%PORTDOCS%%share/doc/sybase/icons/blank.png
X%%PORTDOCS%%share/doc/sybase/icons/contents.gif
X%%PORTDOCS%%share/doc/sybase/icons/contents.png
X%%PORTDOCS%%share/doc/sybase/icons/index.gif
X%%PORTDOCS%%share/doc/sybase/icons/index.png
X%%PORTDOCS%%share/doc/sybase/icons/modules.gif
X%%PORTDOCS%%share/doc/sybase/icons/modules.png
X%%PORTDOCS%%share/doc/sybase/icons/next.gif
X%%PORTDOCS%%share/doc/sybase/icons/next.png
X%%PORTDOCS%%share/doc/sybase/icons/previous.gif
X%%PORTDOCS%%share/doc/sybase/icons/previous.png
X%%PORTDOCS%%share/doc/sybase/icons/up.gif
X%%PORTDOCS%%share/doc/sybase/icons/up.png
X%%PORTDOCS%%share/examples/sybase/README
X%%PORTDOCS%%share/examples/sybase/array_bind.py
X%%PORTDOCS%%share/examples/sybase/array_bind.sql
X%%PORTDOCS%%share/examples/sybase/bulkcopy.py
X%%PORTDOCS%%share/examples/sybase/bulkcopy.sql
X%%PORTDOCS%%share/examples/sybase/cursor_sel.py
X%%PORTDOCS%%share/examples/sybase/cursor_upd.py
X%%PORTDOCS%%share/examples/sybase/cursor_upd.sql
X%%PORTDOCS%%share/examples/sybase/diag_example.py
X%%PORTDOCS%%share/examples/sybase/dynamic_cur.py
X%%PORTDOCS%%share/examples/sybase/dynamic_ins.py
X%%PORTDOCS%%share/examples/sybase/dynamic_ins.sql
X%%PORTDOCS%%share/examples/sybase/example.py
X%%PORTDOCS%%share/examples/sybase/mult_text.py
X%%PORTDOCS%%share/examples/sybase/mult_text.sql
X%%PORTDOCS%%share/examples/sybase/params.py
X%%PORTDOCS%%share/examples/sybase/rpc.py
X%%PORTDOCS%%share/examples/sybase/rpc.sql
X%%PORTDOCS%%share/examples/sybase/timeout.py
X%%PORTDOCS%%share/examples/sybase/timeout.readme
X
X%%PORTDOCS%%@dirrm share/doc/sybase/icons
X%%PORTDOCS%%@dirrm share/doc/sybase
X%%PORTDOCS%%@dirrm share/examples/sybase
END-of-databases/py-sybase/pkg-plist
exit
--- py-sybase-port.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list