diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-10 12:20:32 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-10 12:20:32 +0000 |
commit | 501cd8e801385cd409de8a283e8abe2225f3b86a (patch) | |
tree | 989e3925cd281bf2cbac701fa66c1bd1ec7c3300 /databases/py-postgresql/files | |
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/files')
-rw-r--r-- | databases/py-postgresql/files/py3k-fix-pkg-plist.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/py-postgresql/files/py3k-fix-pkg-plist.inc b/databases/py-postgresql/files/py3k-fix-pkg-plist.inc new file mode 100644 index 000000000000..93acb972e248 --- /dev/null +++ b/databases/py-postgresql/files/py3k-fix-pkg-plist.inc @@ -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} |