aboutsummaryrefslogtreecommitdiff
path: root/databases/py-pyPgSQL/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-pyPgSQL/Makefile')
-rw-r--r--databases/py-pyPgSQL/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/databases/py-pyPgSQL/Makefile b/databases/py-pyPgSQL/Makefile
index 44b6fddef8dd..ad2d6e02ce28 100644
--- a/databases/py-pyPgSQL/Makefile
+++ b/databases/py-pyPgSQL/Makefile
@@ -6,12 +6,12 @@
#
PORTNAME= pyPgSQL
-PORTVERSION= 2.2
+PORTVERSION= 2.3
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pypgsql
PKGNAMEPREFIX= py-
-DISTNAME= pypgsql-${PORTVERSION}
+DISTNAME= pyPgSQL-${PORTVERSION}
MAINTAINER= gerhard.haering@gmx.de
@@ -21,18 +21,14 @@ LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
WRKSRC= ${WRKDIR}/pypgsql
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-USE_REINPLACE= YES
-DOCS= README
-
-PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
+DOCS= README README.html
+EXAMPLES= examples/*.py
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
DOCSDIR= ${PREFIX}/share/doc/py-pyPgSQL
-
-post-patch:
- ${REINPLACE_CMD} -e 's^/usr/local^${LOCALBASE}^g' ${WRKSRC}/setup.py
+EXAMPLESDIR= ${PREFIX}/share/examples/py-pyPgSQL
.if !defined(NOPORTDOCS)
post-install:
@@ -40,6 +36,10 @@ post-install:
.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>