Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2014 04:56:01 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343840 - in head/devel/py-virtualenv: . files
Message-ID:  <201402120456.s1C4u12F097400@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Wed Feb 12 04:56:01 2014
New Revision: 343840
URL: http://svnweb.freebsd.org/changeset/ports/343840
QAT: https://qat.redports.org/buildarchive/r343840/

Log:
  devel/py-virtualenv: Restore py3k-fix-pkg-plist.inc
  
  Restore py3k-fix-pkg-plist.inc that other ports reference as they have not
  transitioned to AUTOPLIST and need it for Python 3.x compatibility.
  
  Add a comment to the include header as a breadcrumb with a PR reference.
  
  PR:		ports/186669
  Reported by:	Gereon Kaiping <kta1c10 ! gereon at linta dotde>
  Approved by:	maintainer (implicit, via email)

Added:
  head/devel/py-virtualenv/files/
  head/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc   (contents, props changed)
Modified:
  head/devel/py-virtualenv/Makefile

Modified: head/devel/py-virtualenv/Makefile
==============================================================================
--- head/devel/py-virtualenv/Makefile	Wed Feb 12 04:55:21 2014	(r343839)
+++ head/devel/py-virtualenv/Makefile	Wed Feb 12 04:56:01 2014	(r343840)
@@ -2,6 +2,7 @@
 
 PORTNAME=	virtualenv
 PORTVERSION=	1.11.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc	Wed Feb 12 04:56:01 2014	(r343840)
@@ -0,0 +1,17 @@
+# Other ports reference this include file. DO NOT REMOVE until that is not the
+# case. See PR: ports/186669
+#
+# 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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402120456.s1C4u12F097400>