diff options
author | drochner <drochner> | 2003-07-25 11:31:15 +0000 |
---|---|---|
committer | drochner <drochner> | 2003-07-25 11:31:15 +0000 |
commit | 5f3cc715b630968348f69c0b83cdf68011c79188 (patch) | |
tree | 2c6c23f074b64bb594e4b9c98fef778f33fc0137 /databases/py-sybase | |
parent | 3b23764e51bf3b19a2a609aa600cd171cd93f63a (diff) | |
download | pkgsrc-5f3cc715b630968348f69c0b83cdf68011c79188.tar.gz |
add py-sybase-0.36, a Python interface to the Sybase relational
database system (using FreeTDS)
submitted by MLH per PR pkg/21394
Diffstat (limited to 'databases/py-sybase')
-rw-r--r-- | databases/py-sybase/DESCR | 6 | ||||
-rw-r--r-- | databases/py-sybase/Makefile | 30 | ||||
-rw-r--r-- | databases/py-sybase/PLIST | 4 | ||||
-rw-r--r-- | databases/py-sybase/buildlink2.mk | 25 | ||||
-rw-r--r-- | databases/py-sybase/distinfo | 4 |
5 files changed, 69 insertions, 0 deletions
diff --git a/databases/py-sybase/DESCR b/databases/py-sybase/DESCR new file mode 100644 index 00000000000..4ae3b29928e --- /dev/null +++ b/databases/py-sybase/DESCR @@ -0,0 +1,6 @@ +This Sybase module provides a Python interface to the Sybase relational +database system. The Sybase package supports all of the Python Database API, +version 2.0 with extensions. + +This pkgsrc module (pysybase) is currently configured to use the FreeTDS +client libraries instead of the Sybase client libraries. diff --git a/databases/py-sybase/Makefile b/databases/py-sybase/Makefile new file mode 100644 index 00000000000..0cff1d715e1 --- /dev/null +++ b/databases/py-sybase/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/25 11:31:15 drochner Exp $ +# + +DISTNAME= sybase-0.36 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= database +MASTER_SITES= http://object-craft.com.au/projects/sybase/download/ + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.object-craft.com.au/projects/sybase/ +COMMENT= Sybase interface for Python using FreeTDS + +PYTHON_VERSIONS_ACCEPTED= 21pth 22pth + +BUILDLINK_DEPENDS.freetds= freetds-0.61* +PYSETUPBUILDARGS= build_ext -D HAVE_FREETDS=61 -U WANT_BULKCOPY +USE_BUILDLINK2= yes +PYDISTUTILSPKG= yes + +SYBASE= ${BUILDLINK_PREFIX.freetds}/freetds +MAKE_ENV+= SYBASE=${SYBASE} + +post-patch: + ${SED} "s|\(runtime_library_dirs = \)None|\1['${SYBASE}'+'/lib']|" \ + <${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp + ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py + +.include "../../databases/freetds/buildlink2.mk" +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/py-sybase/PLIST b/databases/py-sybase/PLIST new file mode 100644 index 00000000000..8cb96b48a59 --- /dev/null +++ b/databases/py-sybase/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/25 11:31:15 drochner Exp $ +${PYSITELIB}/sybasect.so +${PYSITELIB}/Sybase.py +${PYSITELIB}/Sybase.pyc diff --git a/databases/py-sybase/buildlink2.mk b/databases/py-sybase/buildlink2.mk new file mode 100644 index 00000000000..4067a7919cb --- /dev/null +++ b/databases/py-sybase/buildlink2.mk @@ -0,0 +1,25 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/07/25 11:31:15 drochner Exp $ +# +# This Makefile fragment is included by packages that use py-sybase. +# +# This file was created automatically using createbuildlink 2.6. +# + +.if !defined(PY_SYBASE_BUILDLINK2_MK) +PY_SYBASE_BUILDLINK2_MK= # defined + +.include "../../lang/python/pyversion.mk" + +BUILDLINK_PACKAGES+= py-sybase +BUILDLINK_DEPENDS.py-sybase?= ${PYPKGPREFIX}-sybase>=0.36 +BUILDLINK_PKGSRCDIR.py-sybase?= ../../databases/py-sybase + +EVAL_PREFIX+= BUILDLINK_PREFIX.py-sybase=${PYPKGPREFIX}-sybase +BUILDLINK_PREFIX.py-sybase_DEFAULT= ${LOCALBASE} + +.include "../../databases/freetds/buildlink2.mk" + +BUILDLINK_TARGETS+= py-sybase-buildlink + +py-sybase-buildlink: _BUILDLINK_USE +.endif # PY_SYBASE_BUILDLINK2_MK diff --git a/databases/py-sybase/distinfo b/databases/py-sybase/distinfo new file mode 100644 index 00000000000..d51d7d80194 --- /dev/null +++ b/databases/py-sybase/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/07/25 11:31:15 drochner Exp $ + +SHA1 (sybase-0.36.tar.gz) = 9b46e9e0dfb222cd36101208d3dcb9190f15b6aa +Size (sybase-0.36.tar.gz) = 93919 bytes |