aboutsummaryrefslogtreecommitdiff
path: root/www/py-bottle
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2012-06-30 13:28:09 +0000
committerNicola Vitale <nivit@FreeBSD.org>2012-06-30 13:28:09 +0000
commit7e97d209a0f6ab0569565dff85a4ef9d331fd2c8 (patch)
treed199590f22a2001e44411e7cefd6fcb8596e186b /www/py-bottle
parentb9cf8ce5181b4cb2d70a058c2cfe17a6703fdab4 (diff)
downloadports-7e97d209a0f6ab0569565dff85a4ef9d331fd2c8.tar.gz
ports-7e97d209a0f6ab0569565dff85a4ef9d331fd2c8.zip
Notes
Diffstat (limited to 'www/py-bottle')
-rw-r--r--www/py-bottle/Makefile23
-rw-r--r--www/py-bottle/distinfo4
2 files changed, 23 insertions, 4 deletions
diff --git a/www/py-bottle/Makefile b/www/py-bottle/Makefile
index 11b24c235145..09401b11e74f 100644
--- a/www/py-bottle/Makefile
+++ b/www/py-bottle/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= bottle
-PORTVERSION= 0.10.10
+PORTVERSION= 0.10.11
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -20,4 +20,23 @@ LICENSE= MIT
USE_PYTHON= 2.6-
USE_PYDISTUTILS= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 320
+# 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}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/py-bottle/distinfo b/www/py-bottle/distinfo
index 7cf05f8a6738..17a74ec41517 100644
--- a/www/py-bottle/distinfo
+++ b/www/py-bottle/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bottle-0.10.10.tar.gz) = abaef55f046c05a608244a9388867800ea6415dfc8ca96f7a9d08d6a93f8fcc1
-SIZE (bottle-0.10.10.tar.gz) = 56538
+SHA256 (bottle-0.10.11.tar.gz) = 99af26f73c391ae9984192415caca0788d422ee8eec7cfa1656780b4ac3ae632
+SIZE (bottle-0.10.11.tar.gz) = 56829