2003-05-18 13:21:38 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2003/05/18 11:21:38 marc Exp $
|
re-import of pyPgSQL as py-PgSQL
This was requested by Lubomir Sedlacik <salo@Xtrmntr.org> to
match pkgsrc's naming scheme for Python pkgs.
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.
2003-04-05 23:46:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= pyPgSQL-2.3
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pypgsql/}
|
|
|
|
|
|
|
|
MAINTAINER= marc@informatik.uni-bremen.de
|
|
|
|
HOMEPAGE= http://pypgsql.sourceforge.net/
|
|
|
|
COMMENT= Python DB-API 2.0 compliant interface to PostgreSQL
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pypgsql
|
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
PYDISTUTILSPKG= YES
|
|
|
|
PYBINMODULE= YES
|
|
|
|
PY_PATCHPLIST= YES
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${PYTHONBIN} -O ${LOCALBASE}/${PYLIB}/compileall.py \
|
|
|
|
${LOCALBASE}/${PYSITELIB}/pyPgSQL
|
|
|
|
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../time/py-mxDateTime/buildlink2.mk"
|
|
|
|
.include "../../databases/postgresql-lib/buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|