aboutsummaryrefslogtreecommitdiff
path: root/databases/py-gdbm
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-10-20 09:11:38 +0000
committerThomas Gellekum <tg@FreeBSD.org>2000-10-20 09:11:38 +0000
commitea73b9c22a1a7ab1d731862a5a8989fa39017042 (patch)
tree4ed76a44ddbaf44d521481ba335ce79f80a21b3c /databases/py-gdbm
parentdec1d874802789a0c5dcd45a9a8a6d344b3dd1be (diff)
downloadports-ea73b9c22a1a7ab1d731862a5a8989fa39017042.tar.gz
ports-ea73b9c22a1a7ab1d731862a5a8989fa39017042.zip
New port py-gdbm; this contains Python bindings to the GNU dbm library.
Notes
Notes: svn path=/head/; revision=34016
Diffstat (limited to 'databases/py-gdbm')
-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
6 files changed, 49 insertions, 0 deletions
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