summaryrefslogtreecommitdiff
path: root/databases/py-postgresql/Makefile
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2012-10-10 12:20:32 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2012-10-10 12:20:32 +0000
commit501cd8e801385cd409de8a283e8abe2225f3b86a (patch)
tree989e3925cd281bf2cbac701fa66c1bd1ec7c3300 /databases/py-postgresql/Makefile
parent- Take maintainership (diff)
- update to 1.1.0
- trim Makefile header completely (requested by maintainer) - add CHEESESHOP and make it primary MASTER_SITE, because other locations doesn't hold the new release yet - remove one distfile mirror (requested by maintainer) - add LICENSE (BSD) - replace USE_XZ with USE_ZIP, since it was changed upstream - tune PYDISTUTILS_PKGNAME - move python32 plist stuff into separate file changelog: http://pgfoundry.org/pipermail/python-general/2012-October/001003.html PR: 172544 (but I can't see it in GNATS because of hub transition) Submitted by: rm (myself) Approved by: Volodymyr Kostyrko <c.kworr at gmail dot com> (maintainer, by mail)
Diffstat (limited to 'databases/py-postgresql/Makefile')
-rw-r--r--databases/py-postgresql/Makefile33
1 files changed, 8 insertions, 25 deletions
diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
index dfb1c5e3b839..453eade75b3b 100644
--- a/databases/py-postgresql/Makefile
+++ b/databases/py-postgresql/Makefile
@@ -1,15 +1,10 @@
-# New ports collection makefile for: py-postgresql
-# Date created: 15 August 2009
-# Whom: Volodymyr Kostyrko <c.kworr@gmail.com>
-#
# $FreeBSD$
-#
PORTNAME= postgresql
-PORTVERSION= 1.0.4
+PORTVERSION= 1.1.0
CATEGORIES= databases python
-MASTER_SITES= http://python.projects.postgresql.org/files/ \
- http://limbo.xim.bz/distfiles/
+MASTER_SITES= CHEESESHOP \
+ http://python.projects.postgresql.org/files/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= postgresql
@@ -17,30 +12,18 @@ DIST_SUBDIR= postgresql
MAINTAINER= c.kworr@gmail.com
COMMENT= Python 3 compatible PostgreSQL database driver and tools
-USE_XZ= yes
+LICENSE= BSD
+
+USE_ZIP= yes
USE_PGSQL= yes
USE_PYTHON= 3.1+
USE_PYDISTUTILS= yes
-
-PYDISTUTILS_EGGINFO= py_${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-${PYTHON_VERSION:S/thon//}.egg-info
+PYDISTUTILS_PKGNAME= py_${PORTNAME}
.include <bsd.port.pre.mk>
-# When Python version is 3.2+ we rewrite all the filenames
-# of TMPPLIST that end with .py[co], so that they conform
-# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/)
.if ${PYTHON_REL} >= 320
-PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
-add-plist-post:
- @${AWK} '\
- /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
- /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
- {print} \
- END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
- ' \
- pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
- ${TMPPLIST} > ${TMPPLIST}.pyc_tmp
- @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
+.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
.endif
.include <bsd.port.post.mk>