aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-10-20 17:11:38 +0800
committertg <tg@FreeBSD.org>2000-10-20 17:11:38 +0800
commit69f6502f738c9014e08f37a338c63e48780996aa (patch)
tree64183a2f6ace321d2724f6093919bcdb28f10619
parenteca60076e21550b1cb68c63c510ca784e90836d4 (diff)
downloadfreebsd-ports-gnome-69f6502f738c9014e08f37a338c63e48780996aa.tar.gz
freebsd-ports-gnome-69f6502f738c9014e08f37a338c63e48780996aa.tar.zst
freebsd-ports-gnome-69f6502f738c9014e08f37a338c63e48780996aa.zip
New port py-gdbm; this contains Python bindings to the GNU dbm library.
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-gdbm/Makefile38
-rw-r--r--databases/py-gdbm/distinfo3
-rw-r--r--databases/py-gdbm/files/Setup5
-rw-r--r--databases/py-gdbm/pkg-comment1
-rw-r--r--databases/py-gdbm/pkg-descr1
-rw-r--r--databases/py-gdbm/pkg-plist1
7 files changed, 50 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 6d8147b8a77f..4ec591e21e2c 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -50,6 +50,7 @@
SUBDIR += py-MySQLdb
SUBDIR += py-PyGreSQL
SUBDIR += py-SQLDict
+ SUBDIR += py-gdbm
SUBDIR += rdb
SUBDIR += ruby-gdbm
SUBDIR += ruby14-gdbm
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile
new file mode 100644
index 000000000000..2bc138a47efb
--- /dev/null
+++ b/databases/py-gdbm/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: py-gdbm
+# Date created: 03 October 2000
+# Whom: Thomas Gellekum <tg@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gdbm
+PORTVERSION= ${PYTHON_PORTVERSION}
+CATEGORIES= databases python
+MASTER_SITES= ftp://www.python.org/pub/python/src/ \
+ ftp://ftp.cwi.nl/pub/python/src/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${PYTHON_DISTFILE}
+
+MAINTAINER= tg@FreeBSD.org
+
+LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm
+
+DIST_SUBDIR= python
+USE_PYTHON= yes
+WRKSRC= ${PYTHON_WRKSRC}/Modules
+CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
+ALL_TARGET= sharedmods
+MAKE_FLAGS= OPT="${CFLAGS}"
+
+post-extract:
+ @${CP} ${FILESDIR}/Setup ${WRKSRC}
+ @${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${WRKSRC}
+
+do-configure:
+ @(cd ${WRKSRC}; \
+ ${SETENV} ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/gdbmmodule.so ${PYTHON_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/databases/py-gdbm/distinfo b/databases/py-gdbm/distinfo
new file mode 100644
index 000000000000..da238078d673
--- /dev/null
+++ b/databases/py-gdbm/distinfo
@@ -0,0 +1,3 @@
+MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
+MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
+MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
diff --git a/databases/py-gdbm/files/Setup b/databases/py-gdbm/files/Setup
new file mode 100644
index 000000000000..8e4920a954c7
--- /dev/null
+++ b/databases/py-gdbm/files/Setup
@@ -0,0 +1,5 @@
+*shared*
+
+# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
+
+gdbm gdbmmodule.c -I${PREFIX}/include -L${PREFIX}/lib -lgdbm
diff --git a/databases/py-gdbm/pkg-comment b/databases/py-gdbm/pkg-comment
new file mode 100644
index 000000000000..d814a397ba99
--- /dev/null
+++ b/databases/py-gdbm/pkg-comment
@@ -0,0 +1 @@
+Python bindings to the GNU dbm library.
diff --git a/databases/py-gdbm/pkg-descr b/databases/py-gdbm/pkg-descr
new file mode 100644
index 000000000000..d814a397ba99
--- /dev/null
+++ b/databases/py-gdbm/pkg-descr
@@ -0,0 +1 @@
+Python bindings to the GNU dbm library.
diff --git a/databases/py-gdbm/pkg-plist b/databases/py-gdbm/pkg-plist
new file mode 100644
index 000000000000..5235edaefc68
--- /dev/null
+++ b/databases/py-gdbm/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/gdbmmodule.so