39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2013/03/11 02:52:07 espie Exp $
|
|
|
|
COMMENT = PostgreSQL module for Python
|
|
|
|
MODPY_EGG_VERSION = 4.1.1
|
|
DISTNAME = PyGreSQL-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-pygresql-${MODPY_EGG_VERSION}
|
|
CATEGORIES = databases
|
|
|
|
HOMEPAGE = http://www.pygresql.org/
|
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/python
|
|
LIB_DEPENDS = databases/postgresql
|
|
WANTLIB += pq>=5 ${MODPY_WANTLIB} pthread
|
|
BUILD_DEPENDS = databases/postgresql,-server
|
|
RUN_DEPENDS = databases/postgresql,-main
|
|
|
|
MASTER_SITES = ${MASTER_SITE_PYPI:=P/PyGreSQL/}
|
|
EXTRACT_SUFX = .tgz
|
|
NO_TEST = Yes
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
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>
|