diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-sybase/Makefile | 54 | ||||
-rw-r--r-- | databases/py-sybase/distinfo | 2 | ||||
-rw-r--r-- | databases/py-sybase/pkg-descr | 8 | ||||
-rw-r--r-- | databases/py-sybase/pkg-plist | 74 |
5 files changed, 139 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index d24f681..5b8805e 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -198,6 +198,7 @@ SUBDIR += py-psycopg SUBDIR += py-pyPgSQL SUBDIR += py-sqlrelay + SUBDIR += py-sybase SUBDIR += pydbdesigner SUBDIR += qdbm SUBDIR += qt-mysql-plugin diff --git a/databases/py-sybase/Makefile b/databases/py-sybase/Makefile new file mode 100644 index 0000000..1c4088f --- /dev/null +++ b/databases/py-sybase/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: py-sybase +# Date created: 21 November 2002 +# Whom: Gregory Bond <gnb@itga.com.au> +# +# $FreeBSD$ + +PORTNAME= sybase +PORTVERSION= 0.36 +CATEGORIES= databases python +MASTER_SITES= http://object-craft.com.au/projects/sybase/download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-html${EXTRACT_SUFX} + +MAINTAINER= gnb@itga.com.au +COMMENT= A Python Database API interface to the Sybase RDBMS + +LIB_DEPENDS= tds.2:${PORTSDIR}/databases/freetds + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +.if defined(TDS_VERSION) +TDS_SUF="=${TDS_VERSION}" +.else +pre-fetch: + @V=`pkg_info | sed -ne 's/^freetds-0.\(..\).*/\1/p'` ; \ + if [ $$V -le 60 ]; then \ + ${ECHO_MSG} "Suggest you update your FreeTDS port to at least version 0.61" ; \ + ${ECHO_MSG} "Otherwise, you will need to add TDS_VERSION=$$V to the Make command" ; \ + exit 1 ;\ + fi +.endif # defined(TDS_VERSION) + +MAKE_ENV+= SYBASE=${LOCALBASE} + +.if !defined(WITHOUT_THREADS) +BUILDARGS= -D WANT_THREADS -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF} +.else +BUILDARGS= -U WANT_BULKCOPY -D HAVE_FREETDS${TDS_SUF} +.endif + +# Need this because -D<> args needed for build_ext but illegal for build +do-build: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${BUILDARGS} ) + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build) + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} ${DOCSDIR} + @${TAR} -cf - -C ${WRKSRC}/examples . | ${TAR} -xf - -C ${EXAMPLESDIR} + @${TAR} -cf - -C ${WRKDIR}/${PORTNAME} . | ${TAR} -xf - -C ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/databases/py-sybase/distinfo b/databases/py-sybase/distinfo new file mode 100644 index 0000000..5be7001 --- /dev/null +++ b/databases/py-sybase/distinfo @@ -0,0 +1,2 @@ +MD5 (sybase-0.36.tar.gz) = 61b624b137d78462b9dc4c3d8ba43450 +MD5 (sybase-html.tar.gz) = c48433fde6cc29fd8b08ae0afe8a113d diff --git a/databases/py-sybase/pkg-descr b/databases/py-sybase/pkg-descr new file mode 100644 index 0000000..1733319 --- /dev/null +++ b/databases/py-sybase/pkg-descr @@ -0,0 +1,8 @@ +A Python interface to the Sybase relational database system. The +Sybase package supports all of the Python Database API, version 2.0 +with extensions. + +Author: Dave Cole <djc@object-craft.com.au> +WWW: http://object-craft.com.au/projects/sybase/ + +-- Gregory Bond <gnb@itga.com.au> diff --git a/databases/py-sybase/pkg-plist b/databases/py-sybase/pkg-plist new file mode 100644 index 0000000..fdafab3 --- /dev/null +++ b/databases/py-sybase/pkg-plist @@ -0,0 +1,74 @@ +%%PYTHON_SITELIBDIR%%/Sybase.py +%%PYTHON_SITELIBDIR%%/Sybase.pyc +%%PYTHON_SITELIBDIR%%/Sybase.pyo +%%PYTHON_SITELIBDIR%%/sybasect.so +%%PORTDOCS%%%%DOCSDIR%%/about.html +%%PORTDOCS%%%%DOCSDIR%%/contents.html +%%PORTDOCS%%%%DOCSDIR%%/front.html +%%PORTDOCS%%%%DOCSDIR%%/genindex.html +%%PORTDOCS%%%%DOCSDIR%%/images.aux +%%PORTDOCS%%%%DOCSDIR%%/images.idx +%%PORTDOCS%%%%DOCSDIR%%/images.log +%%PORTDOCS%%%%DOCSDIR%%/images.tex +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/modimages.idx +%%PORTDOCS%%%%DOCSDIR%%/module-Sybase.html +%%PORTDOCS%%%%DOCSDIR%%/module-sybasect.html +%%PORTDOCS%%%%DOCSDIR%%/node10.html +%%PORTDOCS%%%%DOCSDIR%%/node12.html +%%PORTDOCS%%%%DOCSDIR%%/node13.html +%%PORTDOCS%%%%DOCSDIR%%/node14.html +%%PORTDOCS%%%%DOCSDIR%%/node15.html +%%PORTDOCS%%%%DOCSDIR%%/node16.html +%%PORTDOCS%%%%DOCSDIR%%/node17.html +%%PORTDOCS%%%%DOCSDIR%%/node18.html +%%PORTDOCS%%%%DOCSDIR%%/node19.html +%%PORTDOCS%%%%DOCSDIR%%/node20.html +%%PORTDOCS%%%%DOCSDIR%%/node21.html +%%PORTDOCS%%%%DOCSDIR%%/node22.html +%%PORTDOCS%%%%DOCSDIR%%/node23.html +%%PORTDOCS%%%%DOCSDIR%%/node3.html +%%PORTDOCS%%%%DOCSDIR%%/node4.html +%%PORTDOCS%%%%DOCSDIR%%/node5.html +%%PORTDOCS%%%%DOCSDIR%%/node6.html +%%PORTDOCS%%%%DOCSDIR%%/node7.html +%%PORTDOCS%%%%DOCSDIR%%/node9.html +%%PORTDOCS%%%%DOCSDIR%%/sybase.css +%%PORTDOCS%%%%DOCSDIR%%/sybase.html +%%PORTDOCS%%%%DOCSDIR%%/icons/blank.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/blank.png +%%PORTDOCS%%%%DOCSDIR%%/icons/contents.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/contents.png +%%PORTDOCS%%%%DOCSDIR%%/icons/index.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/index.png +%%PORTDOCS%%%%DOCSDIR%%/icons/modules.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/modules.png +%%PORTDOCS%%%%DOCSDIR%%/icons/next.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/next.png +%%PORTDOCS%%%%DOCSDIR%%/icons/previous.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/previous.png +%%PORTDOCS%%%%DOCSDIR%%/icons/up.gif +%%PORTDOCS%%%%DOCSDIR%%/icons/up.png +%%PORTDOCS%%share/examples/sybase/README +%%PORTDOCS%%share/examples/sybase/array_bind.py +%%PORTDOCS%%share/examples/sybase/array_bind.sql +%%PORTDOCS%%share/examples/sybase/bulkcopy.py +%%PORTDOCS%%share/examples/sybase/bulkcopy.sql +%%PORTDOCS%%share/examples/sybase/cursor_sel.py +%%PORTDOCS%%share/examples/sybase/cursor_upd.py +%%PORTDOCS%%share/examples/sybase/cursor_upd.sql +%%PORTDOCS%%share/examples/sybase/diag_example.py +%%PORTDOCS%%share/examples/sybase/dynamic_cur.py +%%PORTDOCS%%share/examples/sybase/dynamic_ins.py +%%PORTDOCS%%share/examples/sybase/dynamic_ins.sql +%%PORTDOCS%%share/examples/sybase/example.py +%%PORTDOCS%%share/examples/sybase/mult_text.py +%%PORTDOCS%%share/examples/sybase/mult_text.sql +%%PORTDOCS%%share/examples/sybase/params.py +%%PORTDOCS%%share/examples/sybase/rpc.py +%%PORTDOCS%%share/examples/sybase/rpc.sql +%%PORTDOCS%%share/examples/sybase/timeout.py +%%PORTDOCS%%share/examples/sybase/timeout.readme +%%PORTDOCS%%@dirrm %%DOCSDIR%%/icons +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm share/examples/sybase |