Date: Tue, 9 Oct 2012 14:09:56 GMT From: Ruslan Mahmatkhanov <rm@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/172544: databases/py-postgresql: update to 1.1.0 Message-ID: <201210091409.q99E9uQJ078628@red.freebsd.org> Resent-Message-ID: <201210092230.q99MUOxg043635@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172544 >Category: ports >Synopsis: databases/py-postgresql: update to 1.1.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Oct 09 22:30:23 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ruslan Mahmatkhanov >Release: 10.0-CURRENT >Organization: >Environment: 10.0-CURRENT amd64 >Description: - update to 1.1.0 - trim Makefile header - add CHEESESHOP and make it primary MASTER_SITE, because other locations doesn't hold the new relase yet - 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 >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 305580) +++ Makefile (working copy) @@ -1,14 +1,11 @@ -# New ports collection makefile for: py-postgresql -# Date created: 15 August 2009 -# Whom: Volodymyr Kostyrko <c.kworr@gmail.com> -# +# Created by: 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/ \ +MASTER_SITES= CHEESESHOP \ + http://python.projects.postgresql.org/files/ \ http://limbo.xim.bz/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py-${PORTNAME}-${PORTVERSION} @@ -17,30 +14,18 @@ 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_PKGNAME= py_${PORTNAME} -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 - .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> Index: distinfo =================================================================== --- distinfo (revision 305580) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (postgresql/py-postgresql-1.0.4.tar.xz) = d0ed0a98a33c598d416a3c713befcdedb14f37b961c6985547a120f8830a41fe -SIZE (postgresql/py-postgresql-1.0.4.tar.xz) = 605228 +SHA256 (postgresql/py-postgresql-1.1.0.zip) = 4bae6e15bf0be03294240acc5b27f5aa2d9649188bc4528cd5b5512582e0ea93 +SIZE (postgresql/py-postgresql-1.1.0.zip) = 254537 Index: files/py3k-fix-pkg-plist.inc =================================================================== --- files/py3k-fix-pkg-plist.inc (revision 0) +++ files/py3k-fix-pkg-plist.inc (working copy) @@ -0,0 +1,14 @@ +# 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/) +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} Index: pkg-plist =================================================================== --- pkg-plist (revision 305580) +++ pkg-plist (working copy) @@ -26,55 +26,6 @@ %%PYTHON_SITELIBDIR%%/postgresql/copyman.py %%PYTHON_SITELIBDIR%%/postgresql/copyman.pyc %%PYTHON_SITELIBDIR%%/postgresql/copyman.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/admin.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/admin.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/admin.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/admin.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/alock.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/alock.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/alock.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/alock.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/bin.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/bin.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/bin.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/bin.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/changes-v1.0.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/changes.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/changes.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/changes.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/clientparameters.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/clientparameters.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/clientparameters.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/clientparameters.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/cluster.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/cluster.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/cluster.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/cluster.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/copyman.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/copyman.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/copyman.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/copyman.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/driver.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/driver.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/driver.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/driver.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/gotchas.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/gotchas.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/gotchas.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/gotchas.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/index.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/index.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/index.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/index.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/lib.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/lib.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/lib.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/lib.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/notifyman.py -%%PYTHON_SITELIBDIR%%/postgresql/documentation/notifyman.pyc -%%PYTHON_SITELIBDIR%%/postgresql/documentation/notifyman.pyo -%%PYTHON_SITELIBDIR%%/postgresql/documentation/notifyman.txt -%%PYTHON_SITELIBDIR%%/postgresql/documentation/modules.txt %%PYTHON_SITELIBDIR%%/postgresql/documentation/__init__.py %%PYTHON_SITELIBDIR%%/postgresql/documentation/__init__.pyc %%PYTHON_SITELIBDIR%%/postgresql/documentation/__init__.pyo >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210091409.q99E9uQJ078628>