summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/py-postgresql73/DESCR4
-rw-r--r--databases/py-postgresql73/Makefile38
-rw-r--r--databases/py-postgresql73/PLIST15
3 files changed, 57 insertions, 0 deletions
diff --git a/databases/py-postgresql73/DESCR b/databases/py-postgresql73/DESCR
new file mode 100644
index 00000000000..4a9c558b4ab
--- /dev/null
+++ b/databases/py-postgresql73/DESCR
@@ -0,0 +1,4 @@
+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. This also includes support for
+the Python DB-API.
diff --git a/databases/py-postgresql73/Makefile b/databases/py-postgresql73/Makefile
new file mode 100644
index 00000000000..dd54d1c343d
--- /dev/null
+++ b/databases/py-postgresql73/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/24 22:26:44 recht Exp $
+
+PKGNAME= ${PYPKGPREFIX}-postgresql73-3.3
+CATEGORIES= databases python
+
+MAINTAINER= darcy@NetBSD.org
+COMMENT= Python interface to PostgreSQL
+
+USE_BUILDLINK3= yes
+
+.include "../postgresql73/Makefile.common"
+
+CONFIGURE_ARGS+= --with-python
+CONFIGURE_ARGS+= --with-python-compile
+CONFIGURE_ENV+= PYTHON="${PYTHONBIN}"
+
+MAKEFILE= GNUmakefile
+MAKE_ENV+= INSTALLED_LIBPQ=1
+MAKEFLAGS+= PYTHON_VERSION=${PYVERSSUFFIX}
+
+PY_PATCHPLIST= yes
+PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
+
+BUILD_DIRS= ${WRKSRC}/src/interfaces/python
+DOCDIR= ${PREFIX}/share/doc/${PYPKGPREFIX}-postgresql
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}/tutorial
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
+ for file in ${WRKSRC}/src/interfaces/python/tutorial/*.py; do \
+ ${INSTALL_DATA} $${file} ${DOCDIR}/tutorial; \
+ done
+
+.include "../postgresql73-lib/buildlink3.mk"
+.include "../../time/py-mxDateTime/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-postgresql73/PLIST b/databases/py-postgresql73/PLIST
new file mode 100644
index 00000000000..a008eb4bee0
--- /dev/null
+++ b/databases/py-postgresql73/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/24 22:26:44 recht Exp $
+${PYSITELIB}/_pgmodule.so
+${PYSITELIB}/pg.py
+${PYSITELIB}/pg.pyc
+${PYSITELIB}/pg.pyo
+${PYSITELIB}/pgdb.py
+${PYSITELIB}/pgdb.pyc
+${PYSITELIB}/pgdb.pyo
+share/doc/${PYPKGPREFIX}-postgresql/README
+share/doc/${PYPKGPREFIX}-postgresql/tutorial/advanced.py
+share/doc/${PYPKGPREFIX}-postgresql/tutorial/basics.py
+share/doc/${PYPKGPREFIX}-postgresql/tutorial/func.py
+share/doc/${PYPKGPREFIX}-postgresql/tutorial/syscat.py
+@dirrm share/doc/${PYPKGPREFIX}-postgresql/tutorial
+@dirrm share/doc/${PYPKGPREFIX}-postgresql