mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# Created by: Gerhard Haering <gerhard.haering@gmx.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyPgSQL
|
|
PORTVERSION= 2.5.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= SF
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= A Python DB-API 2 compliant library for using PostgreSQL databases
|
|
|
|
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
|
|
|
USE_PGSQL= yes
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
DOCS= Announce ChangeLog README README.html
|
|
EXAMPLES= examples/*.py
|
|
|
|
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
|
|
|
OPTIONS_DEFINE= BYTEA_CONN EXAMPLES DOCS
|
|
OPTIONS_DEFAULT= BYTEA_CONN
|
|
BYTEA_CONN_DESC= Apply Bytea connection patch
|
|
|
|
# bypass infrastructure bug
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBYTEA_CONN}
|
|
PATCH_SITES= http://sourceforge.net/tracker/download.php?group_id=16528&atid=316528&file_id=273956&aid=1939119/
|
|
PATCHFILES= pyPgSQL-patch_byteaconn
|
|
.endif
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-pyPgSQL
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-pyPgSQL
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for f in ${EXAMPLES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|