aboutsummaryrefslogtreecommitdiff
path: root/databases/py-bsddb3
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-05-19 14:20:34 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-05-19 14:20:34 +0000
commit9f8697a0e98d5ba3f11335d21286c7ba8138d7ce (patch)
tree86bf77c58453b47cbc441d821983da7bac6ed2fc /databases/py-bsddb3
parentf2a5df805756de11df4fa0fbf46b2d8c828222d8 (diff)
downloadports-9f8697a0e98d5ba3f11335d21286c7ba8138d7ce.tar.gz
ports-9f8697a0e98d5ba3f11335d21286c7ba8138d7ce.zip
Notes
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r--databases/py-bsddb3/Makefile30
-rw-r--r--databases/py-bsddb3/distinfo1
-rw-r--r--databases/py-bsddb3/files/patch-setup.py11
-rw-r--r--databases/py-bsddb3/files/patch-src:_db.c11
-rw-r--r--databases/py-bsddb3/pkg-comment1
-rw-r--r--databases/py-bsddb3/pkg-descr13
-rw-r--r--databases/py-bsddb3/pkg-plist16
7 files changed, 83 insertions, 0 deletions
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