Import py-pygresql.

PyGreSQL is a BSD licensed open-source 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.

From MAINTAINER Laurence Tratt <laurie at tratt dot net>.

ok merdely@
This commit is contained in:
wcmaier 2008-05-08 16:53:22 +00:00
parent 48075df306
commit aa2223f1ea
6 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/05/08 16:53:22 wcmaier Exp $
COMMENT = PostgreSQL module for Python
MODPY_EGG_VERSION = 3.8.1
DISTNAME = PyGreSQL-${MODPY_EGG_VERSION}
PKGNAME = py-pygresql-${MODPY_EGG_VERSION}
CATEGORIES = databases
HOMEPAGE = http://www.pygresql.org/
MAINTAINER = Laurence Tratt <laurie@tratt.net>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/python
LIB_DEPENDS = pq.>=5:postgresql-client-*:databases/postgresql
BUILD_DEPENDS = :postgresql-server-*:databases/postgresql,-server
RUN_DEPENDS = :postgresql-client-*:databases/postgresql,-main
MASTER_SITES = ftp://ftp.pygresql.org/pub/distrib/
EXTRACT_SUFX = .tgz
NO_REGRESS = Yes
SUBST_VARS = MODPY_BIN
post-patch:
${SUBST_CMD} ${WRKSRC}/tutorial/advanced.py ${WRKSRC}/tutorial/basics.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-pygresql
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-pygresql
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/py-pygresql/
${INSTALL_DATA} ${WRKSRC}/tutorial/*.py ${PREFIX}/share/examples/py-pygresql/
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (PyGreSQL-3.8.1.tgz) = VXWXnayTycV5XXaTqPkchg==
RMD160 (PyGreSQL-3.8.1.tgz) = Z5Rct13Q+61MHawuYG4Q9s3ecAI=
SHA1 (PyGreSQL-3.8.1.tgz) = NB0UvrmeiPd5ZX2zzhRrQciX+XU=
SHA256 (PyGreSQL-3.8.1.tgz) = Vjjh8SyN1PHqjJ20+SqY0Z5m2+8uJatF7eGQw/ysgW0=
SIZE (PyGreSQL-3.8.1.tgz) = 81186

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-tutorial_advanced_py,v 1.1.1.1 2008/05/08 16:53:22 wcmaier Exp $
--- tutorial/advanced.py.orig Mon Apr 14 13:29:06 2008
+++ tutorial/advanced.py Mon Apr 14 13:30:37 2008
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!${MODPY_BIN}
# advanced.py - demo of advanced features of PostGres. Some may not be ANSI.
# inspired from the Postgres tutorial
# adapted to Python 1995 by Pascal Andre

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-tutorial_basics_py,v 1.1.1.1 2008/05/08 16:53:22 wcmaier Exp $
--- tutorial/basics.py.orig Fri Jun 2 08:43:18 2006
+++ tutorial/basics.py Mon Apr 14 13:30:41 2008
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!${MODPY_BIN}
# basics.py - basic SQL commands tutorial
# inspired from the Postgres95 tutorial
# adapted to Python 1995 by Pascal ANDRE

View File

@ -0,0 +1,4 @@
PyGreSQL is a BSD licensed open-source 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.

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/05/08 16:53:22 wcmaier Exp $
lib/python${MODPY_VERSION}/site-packages/PyGreSQL-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/_pg.so
lib/python${MODPY_VERSION}/site-packages/pg.py
lib/python${MODPY_VERSION}/site-packages/pg.pyc
lib/python${MODPY_VERSION}/site-packages/pgdb.py
lib/python${MODPY_VERSION}/site-packages/pgdb.pyc
share/doc/py-pygresql/
share/doc/py-pygresql/announce.txt
share/doc/py-pygresql/changelog.txt
share/doc/py-pygresql/future.txt
share/doc/py-pygresql/install.txt
share/doc/py-pygresql/pg.txt
share/doc/py-pygresql/pgdb.txt
share/doc/py-pygresql/readme.txt
share/examples/py-pygresql/
share/examples/py-pygresql/advanced.py
share/examples/py-pygresql/basics.py
share/examples/py-pygresql/func.py
share/examples/py-pygresql/syscat.py