diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-05-19 14:20:34 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-05-19 14:20:34 +0000 |
commit | e9c6f49cbe051ad535f984457d420ee7fb55a58e (patch) | |
tree | bf9f068d0f79e3420501a2a7ef3dff6223ae322f /databases/py-bsddb3 | |
parent | dd6521e44be0482e98b4aed1b1719a734ed5bbd0 (diff) | |
download | FreeBSD-ports-e9c6f49cbe051ad535f984457d420ee7fb55a58e.zip FreeBSD-ports-e9c6f49cbe051ad535f984457d420ee7fb55a58e.tar.gz |
add py-bsddb3
BerkeleyDB3 wrapper module for Python
PR: 26448
Submitted by: Chang, Hye-Shik <perky@python.or.kr>
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r-- | databases/py-bsddb3/Makefile | 30 | ||||
-rw-r--r-- | databases/py-bsddb3/distinfo | 1 | ||||
-rw-r--r-- | databases/py-bsddb3/files/patch-setup.py | 11 | ||||
-rw-r--r-- | databases/py-bsddb3/files/patch-src:_db.c | 11 | ||||
-rw-r--r-- | databases/py-bsddb3/pkg-comment | 1 | ||||
-rw-r--r-- | databases/py-bsddb3/pkg-descr | 13 | ||||
-rw-r--r-- | databases/py-bsddb3/pkg-plist | 16 |
7 files changed, 83 insertions, 0 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile new file mode 100644 index 0000000..5d0966e --- /dev/null +++ b/databases/py-bsddb3/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: py-bsddb3 +# Date created: 22 March 2001 +# Whom: Hye-Shik Chang <perky@python.or.kr> +# +# $FreeBSD$ +# + +PORTNAME= bsddb3 +PORTVERSION= 3.0 +CATEGORIES= databases python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pybsddb +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= perky@python.or.kr + +LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3 + +USE_PYTHON= yes +SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py + +PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} + +do-build: + ${SETUP_CMD} build_ext --libs="-ldb3" --berkeley-db=${LOCALBASE} --inplace + +do-install: + ${SETUP_CMD} install + +.include <bsd.port.mk> diff --git a/databases/py-bsddb3/distinfo b/databases/py-bsddb3/distinfo new file mode 100644 index 0000000..b50f8ef --- /dev/null +++ b/databases/py-bsddb3/distinfo @@ -0,0 +1 @@ +MD5 (bsddb3-3.0.tar.gz) = 7c819ff6b26e95fae2bd6bf27e821c03 diff --git a/databases/py-bsddb3/files/patch-setup.py b/databases/py-bsddb3/files/patch-setup.py new file mode 100644 index 0000000..79ac1bb --- /dev/null +++ b/databases/py-bsddb3/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig Mon Apr 9 12:29:06 2001 ++++ setup.py Mon Apr 9 12:29:15 2001 +@@ -90,7 +90,7 @@ + if not status and string.find(results, 'libdb.') >= 0: + static = 1 + +- if static: ++ if 0: + print """\ + \aWARNING: + \tIt appears that the old bsddb module is staticly linked in the diff --git a/databases/py-bsddb3/files/patch-src:_db.c b/databases/py-bsddb3/files/patch-src:_db.c new file mode 100644 index 0000000..3e8646c --- /dev/null +++ b/databases/py-bsddb3/files/patch-src:_db.c @@ -0,0 +1,11 @@ +--- src/_db.c.orig Mon Apr 9 12:26:03 2001 ++++ src/_db.c Mon Apr 9 12:26:18 2001 +@@ -70,7 +70,7 @@ + /* --------------------------------------------------------------------- */ + + #include <Python.h> +-#include <db.h> ++#include <db3/db.h> + + /* --------------------------------------------------------------------- */ + /* Various macro definitions */ diff --git a/databases/py-bsddb3/pkg-comment b/databases/py-bsddb3/pkg-comment new file mode 100644 index 0000000..abf25ac --- /dev/null +++ b/databases/py-bsddb3/pkg-comment @@ -0,0 +1 @@ +BerkeleyDB3 wrapper module for Python diff --git a/databases/py-bsddb3/pkg-descr b/databases/py-bsddb3/pkg-descr new file mode 100644 index 0000000..95a1d23 --- /dev/null +++ b/databases/py-bsddb3/pkg-descr @@ -0,0 +1,13 @@ +This module provides a nearly complete wrapping of the Sleepycat C API +for the Database Environment, Database, Cursor, and Transaction +objects, and each of these is exposed as a Python Type in the +bsddb3.db module. The database objects can use different access +methods, btree, hash, recno, and queue. For the first time all of +these are fully supported in the Python wrappers. Please see the +document in developers' web site for more details on the types and +methods provided. + +WWW: http://pybsddb.sourceforge.net/ +developed by Robin Dunn et al + +- Hye-Shik Chang, a.k.a. "Perky" diff --git a/databases/py-bsddb3/pkg-plist b/databases/py-bsddb3/pkg-plist new file mode 100644 index 0000000..d603339 --- /dev/null +++ b/databases/py-bsddb3/pkg-plist @@ -0,0 +1,16 @@ +%%PYTHON_SITELIBDIR%%/bsddb3/__init__.py +%%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/_db.so +%%PYTHON_SITELIBDIR%%/bsddb3/db.py +%%PYTHON_SITELIBDIR%%/bsddb3/db.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/dbobj.py +%%PYTHON_SITELIBDIR%%/bsddb3/dbobj.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/dbrecio.py +%%PYTHON_SITELIBDIR%%/bsddb3/dbrecio.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/dbshelve.py +%%PYTHON_SITELIBDIR%%/bsddb3/dbshelve.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/dbtables.py +%%PYTHON_SITELIBDIR%%/bsddb3/dbtables.pyc +%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.py +%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyc +@dirrm %%PYTHON_SITELIBDIR%%/bsddb3 |