1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

- Update to 0.11.6

- Include fix of pkg-plist when Python ver >= 3.2
This commit is contained in:
Nicola Vitale 2013-02-02 14:25:28 +00:00
parent 7b720b845f
commit 4a85aaf542
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311429
2 changed files with 4 additions and 17 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bottle
PORTVERSION= 0.11.2
PORTVERSION= 0.11.6
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -19,20 +19,7 @@ USE_PYDISTUTILS= yes
.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}
.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
.endif
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (bottle-0.11.2.tar.gz) = e93021d447fca6116acdc737762557347e85669cc0705ddbcf7371e11c74b0b0
SIZE (bottle-0.11.2.tar.gz) = 60341
SHA256 (bottle-0.11.6.tar.gz) = 2e63802cbe6a21537e35d92ec3c80a1e302dc619d169efe6a212cab9f48e7b29
SIZE (bottle-0.11.6.tar.gz) = 60612