1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/databases/py-pyPgSQL/Makefile
Daichi GOTO 22d1252750 update databases/py-pyPgSQL: 2.3 -> 2.4
PR:		55084
Submitted by:	Gerhard Haering <gh@ghaering.de>
2003-07-31 06:50:03 +00:00

49 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-pypgsql
# Date created: 01 Nov 2001
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
#
# $FreeBSD$
#
PORTNAME= pyPgSQL
PORTVERSION= 2.4
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pypgsql
PKGNAMEPREFIX= py-
DISTNAME= pyPgSQL-${PORTVERSION}
MAINTAINER= gerhard.haering@gmx.de
COMMENT= A Python DB-API 2 compliant library for using PostgreSQL databases
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
POSTGRESQL_PORT?= databases/postgresql7
WRKSRC= ${WRKDIR}/pypgsql
USE_PYTHON= yes
USE_PYDISTUTILS= yes
DOCS= README README.html
EXAMPLES= examples/*.py
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
DOCSDIR= ${PREFIX}/share/doc/py-pyPgSQL
EXAMPLESDIR= ${PREFIX}/share/examples/py-pyPgSQL
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
@${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.mk>