2001-11-02 16:00:28 +01:00
|
|
|
# New ports collection makefile for: py-pypgsql
|
2001-11-10 08:01:33 +01:00
|
|
|
# Date created: 01 Nov 2001
|
2002-09-16 15:57:56 +02:00
|
|
|
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
|
2001-11-02 16:00:28 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-06-09 18:06:47 +02:00
|
|
|
PORTNAME= pyPgSQL
|
2003-01-02 20:28:46 +01:00
|
|
|
PORTVERSION= 2.3
|
2002-06-09 18:06:47 +02:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pypgsql
|
|
|
|
PKGNAMEPREFIX= py-
|
2003-01-02 20:28:46 +01:00
|
|
|
DISTNAME= pyPgSQL-${PORTVERSION}
|
2001-11-02 16:00:28 +01:00
|
|
|
|
2002-09-16 15:57:56 +02:00
|
|
|
MAINTAINER= gerhard.haering@gmx.de
|
2001-11-02 16:00:28 +01:00
|
|
|
|
2002-06-09 18:06:47 +02:00
|
|
|
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
2003-01-04 17:17:27 +01:00
|
|
|
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
|
|
|
|
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
2001-11-02 16:00:28 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pypgsql
|
|
|
|
USE_PYTHON= yes
|
2002-04-29 15:33:57 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2001-11-02 16:00:28 +01:00
|
|
|
|
2003-01-02 20:28:46 +01:00
|
|
|
DOCS= README README.html
|
|
|
|
EXAMPLES= examples/*.py
|
2001-11-02 16:00:28 +01:00
|
|
|
|
|
|
|
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
|
|
|
|
2001-11-10 08:01:33 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-pyPgSQL
|
2003-01-02 20:28:46 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-pyPgSQL
|
2001-11-02 16:00:28 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-29 15:33:57 +02:00
|
|
|
post-install:
|
2001-11-02 16:00:28 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOCS}
|
2002-06-09 18:06:47 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2003-01-02 20:28:46 +01:00
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for file in ${EXAMPLES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
|
2001-11-02 16:00:28 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|