2010-11-14 19:22:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2010/11/15 00:22:53 espie Exp $
|
Import py-pgsql.
pyPgSQL is a package of two modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python.
From Pierre-Emmanuel Andre <pea at raveland dot org> (MAINTAINER).
ok merdely@
2008-05-09 18:29:51 -04:00
|
|
|
|
|
|
|
COMMENT = Python DB-API 2.0 compliant interface to PostgreSQL
|
|
|
|
|
|
|
|
MODPY_EGG_VERSION = 2.5.1
|
|
|
|
DISTNAME = pyPgSQL-${MODPY_EGG_VERSION}
|
2010-08-30 16:53:57 -04:00
|
|
|
PKGNAME = py-pgsql-${MODPY_EGG_VERSION}
|
|
|
|
REVISION = 1
|
Import py-pgsql.
pyPgSQL is a package of two modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python.
From Pierre-Emmanuel Andre <pea at raveland dot org> (MAINTAINER).
ok merdely@
2008-05-09 18:29:51 -04:00
|
|
|
CATEGORIES = databases
|
|
|
|
|
|
|
|
HOMEPAGE = http://pypgsql.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER = Pierre-Emmanuel Andre <pea@raveland.org>
|
|
|
|
|
|
|
|
# Python
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pypgsql/}
|
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
PY_FLAVOR = python${MODPY_VERSION}
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
BUILD_DEPENDS = databases/postgresql
|
|
|
|
RUN_DEPENDS = py-mxDateTime-*-${PY_FLAVOR}:devel/py-mxDateTime,${PY_FLAVOR}
|
|
|
|
LIB_DEPENDS = databases/postgresql
|
Import py-pgsql.
pyPgSQL is a package of two modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python.
From Pierre-Emmanuel Andre <pea at raveland dot org> (MAINTAINER).
ok merdely@
2008-05-09 18:29:51 -04:00
|
|
|
REGRESS_DEPENDS = ${RUN_DEPENDS}
|
2010-11-14 19:22:45 -05:00
|
|
|
WANTLIB += pq>=5
|
Import py-pgsql.
pyPgSQL is a package of two modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python.
From Pierre-Emmanuel Andre <pea at raveland dot org> (MAINTAINER).
ok merdely@
2008-05-09 18:29:51 -04:00
|
|
|
|
|
|
|
# To run the tests, create and start a test database as follows:
|
|
|
|
# createdb -E UNICODE pypgsql
|
|
|
|
# createlang plpgsql pypgsql
|
|
|
|
# The regress target will use the PGUSER, PGPASSWORD and PGHOST
|
|
|
|
# environment variables to connect to the database; see below for
|
|
|
|
# defaults.
|
|
|
|
REGRESS_IS_INTERACTIVE = Yes
|
|
|
|
|
|
|
|
PGUSER ?= regressuser
|
|
|
|
PGPASSWORD ?= regresspass
|
|
|
|
PGHOST ?= localhost
|
|
|
|
REGRESS_ENV = "PGUSER=${PGUSER}" \
|
|
|
|
"PGPASSWORD=${PGPASSWORD}" \
|
|
|
|
"PGHOST=${PGHOST}"
|
|
|
|
|
|
|
|
do-regress: fake
|
|
|
|
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${REGRESS_ENV} ${MODPY_BIN} ./test/PgSQLTestCases.py
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-pgsql/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Announce ${PREFIX}/share/doc/py-pgsql/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/py-pgsql/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-pgsql
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/py-pgsql/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|