diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-05-19 22:20:34 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-05-19 22:20:34 +0800 |
commit | e9c6f49cbe051ad535f984457d420ee7fb55a58e (patch) | |
tree | bf9f068d0f79e3420501a2a7ef3dff6223ae322f | |
parent | dd6521e44be0482e98b4aed1b1719a734ed5bbd0 (diff) | |
download | freebsd-ports-gnome-e9c6f49cbe051ad535f984457d420ee7fb55a58e.tar.gz freebsd-ports-gnome-e9c6f49cbe051ad535f984457d420ee7fb55a58e.tar.zst freebsd-ports-gnome-e9c6f49cbe051ad535f984457d420ee7fb55a58e.zip |
add py-bsddb3
BerkeleyDB3 wrapper module for Python
PR: 26448
Submitted by: Chang, Hye-Shik <perky@python.or.kr>
-rw-r--r-- | databases/Makefile | 1 | ||||
-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 |
8 files changed, 84 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 1ca1f335267e..c41476fc3a76 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -65,6 +65,7 @@ SUBDIR += py-MySQLdb SUBDIR += py-PyGreSQL SUBDIR += py-SQLDict + SUBDIR += py-bsddb3 SUBDIR += py-gdbm SUBDIR += rdb SUBDIR += ruby-bdb diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile new file mode 100644 index 000000000000..5d0966e7260f --- /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 000000000000..b50f8efc9fe3 --- /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 000000000000..79ac1bb9659a --- /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 000000000000..3e8646c0fac4 --- /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 000000000000..abf25acc994c --- /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 000000000000..95a1d2393d1d --- /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 000000000000..d60333911585 --- /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 |