aa2223f1ea
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@
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $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>
|