summaryrefslogtreecommitdiff
path: root/databases/py-postgresql
diff options
context:
space:
mode:
authorjlam <jlam>1999-10-04 17:36:48 +0000
committerjlam <jlam>1999-10-04 17:36:48 +0000
commitc8c35ed043c372cf70a08395d5692ab379b757de (patch)
tree2d3715dc1acacf8f01c37cdaffac5c27c8485493 /databases/py-postgresql
parente1fdc22ea2dbe69f1b8ce84ffa5790f801d8e32c (diff)
downloadpkgsrc-c8c35ed043c372cf70a08395d5692ab379b757de.tar.gz
Initial import of py-postgresql, a PostgreSQL interface for Python. From PR#6971 by darcy@netbsd.org, with fixes by me.
Diffstat (limited to 'databases/py-postgresql')
-rw-r--r--databases/py-postgresql/Makefile47
-rw-r--r--databases/py-postgresql/files/Setup.in4
-rw-r--r--databases/py-postgresql/files/md54
-rw-r--r--databases/py-postgresql/pkg/COMMENT1
-rw-r--r--databases/py-postgresql/pkg/DESCR12
-rw-r--r--databases/py-postgresql/pkg/PLIST16
6 files changed, 84 insertions, 0 deletions
diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
new file mode 100644
index 00000000000..0575a940d21
--- /dev/null
+++ b/databases/py-postgresql/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/10/04 17:36:48 jlam Exp $
+
+DISTNAME= PyGreSQL-2.4
+PKGNAME= py-postgresql-2.4
+CATEGORIES= databases
+MASTER_SITES= ftp://ftp.druid.net/pub/distrib/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= darcy@NetBSD.org
+HOMEPAGE= http://www.druid.net/pygresql/
+
+DEPENDS+= python-1.5.2:../../lang/python
+DEPENDS+= postgresql-6.5.2:../../databases/postgresql
+
+ALL_TARGET= default
+
+PYTHON= ${LOCALBASE}/bin/python
+PYTHON_LIBDIR= ${LOCALBASE}/lib/python1.5
+PLIST_SUBST+= PYTHON_LIBDIR=lib/python1.5
+
+.include "../../mk/bsd.prefs.mk"
+
+PGUSER?= pgsql
+PGPREFIX= ${LOCALBASE}/${PGUSER} # PostgreSQL home directory
+
+do-configure:
+ ${SED} -e "s,@PGPREFIX@,${PGPREFIX},g" \
+ ${FILESDIR}/Setup.in > ${WRKSRC}/Setup.in
+ ${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${WRKSRC}
+ cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot
+
+post-build:
+ cd ${WRKSRC}; ${PYTHON} ${PYTHON_LIBDIR}/compileall.py .
+ cd ${WRKSRC}; ${PYTHON} -O ${PYTHON_LIBDIR}/compileall.py .
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/*.py[co] \
+ ${PYTHON_LIBDIR}/site-packages
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-postgresql/tutorial
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${PREFIX}/share/doc/py-postgresql
+ for file in ${WRKSRC}/tutorial/*.py; do \
+ ${INSTALL_DATA} $${file} \
+ ${PREFIX}/share/doc/py-postgresql/tutorial; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-postgresql/files/Setup.in b/databases/py-postgresql/files/Setup.in
new file mode 100644
index 00000000000..1aa2a4b6e92
--- /dev/null
+++ b/databases/py-postgresql/files/Setup.in
@@ -0,0 +1,4 @@
+# $NetBSD: Setup.in,v 1.1.1.1 1999/10/04 17:36:48 jlam Exp $
+#
+*shared*
+_pg pgmodule.c -I@PGPREFIX@/include -L@PGPREFIX@/lib -lpq -lcrypt -DNO_DIRECT
diff --git a/databases/py-postgresql/files/md5 b/databases/py-postgresql/files/md5
new file mode 100644
index 00000000000..d50815e8445
--- /dev/null
+++ b/databases/py-postgresql/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 1999/10/04 17:36:48 jlam Exp $
+
+MD5 (python/PyGreSQL-2.4.tgz) = 7241ae4f9b2e901d05f62e029b35a302
+MD5 (PyGreSQL-2.4.tgz) = 7241ae4f9b2e901d05f62e029b35a302
diff --git a/databases/py-postgresql/pkg/COMMENT b/databases/py-postgresql/pkg/COMMENT
new file mode 100644
index 00000000000..77c05944dc8
--- /dev/null
+++ b/databases/py-postgresql/pkg/COMMENT
@@ -0,0 +1 @@
+PostgreSQL interface for Python
diff --git a/databases/py-postgresql/pkg/DESCR b/databases/py-postgresql/pkg/DESCR
new file mode 100644
index 00000000000..168e8a67963
--- /dev/null
+++ b/databases/py-postgresql/pkg/DESCR
@@ -0,0 +1,12 @@
+PyGreSQL - v2.4: PostgreSQL module for Python
+
+ PyGreSQL, version 2.4
+ A Python interface for PostgreSQL database.
+ Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
+ Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.
+ Copyright (c) 1995, Pascal ANDRE (andre@via.ecp.fr)
+ Copyright (c) 1997, 1998, 1999
+
+PyGreSQL is a python module that interfaces to a PostgreSQL database. It
+embeds the PostgreSQL query library to allow easy use of the powerful
+PostgreSQL features from a Python script.
diff --git a/databases/py-postgresql/pkg/PLIST b/databases/py-postgresql/pkg/PLIST
new file mode 100644
index 00000000000..9500988cbf4
--- /dev/null
+++ b/databases/py-postgresql/pkg/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/10/04 17:36:49 jlam Exp $
+${PYTHON_LIBDIR}/site-packages/_pgmodule.so
+${PYTHON_LIBDIR}/site-packages/pg.py
+${PYTHON_LIBDIR}/site-packages/pg.pyc
+${PYTHON_LIBDIR}/site-packages/pg.pyo
+${PYTHON_LIBDIR}/site-packages/pgsqldb.py
+${PYTHON_LIBDIR}/site-packages/pgsqldb.pyc
+${PYTHON_LIBDIR}/site-packages/pgsqldb.pyo
+share/doc/py-postgresql/README
+share/doc/py-postgresql/tutorial/advanced.py
+share/doc/py-postgresql/tutorial/basics.py
+share/doc/py-postgresql/tutorial/func.py
+share/doc/py-postgresql/tutorial/pgtools.py
+share/doc/py-postgresql/tutorial/syscat.py
+@dirrm share/doc/py-postgresql/tutorial
+@dirrm share/doc/py-postgresql