Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 06:01:31 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303684 - in head/devel/py-virtualenv: . files
Message-ID:  <201209050601.q8561VKj084751@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nivit
Date: Wed Sep  5 06:01:31 2012
New Revision: 303684
URL: http://svn.freebsd.org/changeset/ports/303684

Log:
  - Update to 1.8.1
  - Build docs with devel/py-sphinx
  - Convert to the new options framework
  - Move code, that fix pkg-plist when Python ver >= 3.2,
    to a separate file (files/py3k-fix-pkg-plist.inc)
  - Update WWW: field in pkg-descr
  
  BuildLog:	http://goo.gl/QCpX6
  Changes&News:	http://goo.gl/OqbDH

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   (contents, props changed)
  head/devel/py-virtualenv/distinfo   (contents, props changed)
  head/devel/py-virtualenv/pkg-descr   (contents, props changed)
  head/devel/py-virtualenv/pkg-plist   (contents, props changed)

Modified: head/devel/py-virtualenv/Makefile
==============================================================================
--- head/devel/py-virtualenv/Makefile	Wed Sep  5 04:32:25 2012	(r303683)
+++ head/devel/py-virtualenv/Makefile	Wed Sep  5 06:01:31 2012	(r303684)
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	virtualenv
-PORTVERSION=	1.7.2
+PORTVERSION=	1.8.1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,6 +16,9 @@ COMMENT=	Virtual Python Environment buil
 
 LICENSE=	MIT
 
+OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONS_DEFINE=	DOCS
+
 PLIST_SUB=	PYVER=${PYTHON_VER} PIPVER=${PIPVER} DISTRIBUTEVER=${DISTRIBUTEVER} \
 		PY2X=${PY2X}
 
@@ -23,37 +26,31 @@ PLIST_SUB=	PYVER=${PYTHON_VER} PIPVER=${
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	easy_install
 
-PIPVER=	1.1
-DISTRIBUTEVER=	0.6.27
+PIPVER=	1.2
+DISTRIBUTEVER=	0.6.28
+
+.include <bsd.port.options.mk>
 
-.if !defined(NOPORTDOCS)
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+=	${PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+PYDISTUTILS_BUILD_TARGET+=	build_sphinx
 
 post-install:
 	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/docs && ${INSTALL_DATA} index.txt ${DOCSDIR}/
+	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_REL} >= 320
+.if ${PYTHON_REL} >= 310
 PY2X=	"@comment "
-# 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}
 .else
 PY2X=	""
 .endif
 
+.if ${PYTHON_REL} >= 320
+.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
+.endif
+
 .include <bsd.port.post.mk>

Modified: head/devel/py-virtualenv/distinfo
==============================================================================
--- head/devel/py-virtualenv/distinfo	Wed Sep  5 04:32:25 2012	(r303683)
+++ head/devel/py-virtualenv/distinfo	Wed Sep  5 06:01:31 2012	(r303684)
@@ -1,2 +1,2 @@
-SHA256 (virtualenv-1.7.2.tar.gz) = 8cbbe308ab0f446a4ceacf24b2656bedd33ea22825b0750fd079766cc6e91bf4
-SIZE (virtualenv-1.7.2.tar.gz) = 2156615
+SHA256 (virtualenv-1.8.1.tar.gz) = 524813074d043b5786f45e04912f7eba814defda53ba6d72460b77c704c6b8f4
+SIZE (virtualenv-1.8.1.tar.gz) = 2160621

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 Sep  5 06:01:31 2012	(r303684)
@@ -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}

Modified: head/devel/py-virtualenv/pkg-descr
==============================================================================
--- head/devel/py-virtualenv/pkg-descr	Wed Sep  5 04:32:25 2012	(r303683)
+++ head/devel/py-virtualenv/pkg-descr	Wed Sep  5 06:01:31 2012	(r303684)
@@ -1,9 +1,9 @@
 ``virtualenv`` is a tool to create isolated Python environments.
-        
+
 It creates an environment that has its own installation directories,
 that doesn't share libraries with other virtualenv environments
 (and optionally doesn't use the globally installed libraries either).
 
 Usage: virtualenv YOUR_NEW_PYTHON_ENV
 
-WWW:	http://pypi.python.org/pypi/virtualenv
+WWW: http://www.virtualenv.org/

Modified: head/devel/py-virtualenv/pkg-plist
==============================================================================
--- head/devel/py-virtualenv/pkg-plist	Wed Sep  5 04:32:25 2012	(r303683)
+++ head/devel/py-virtualenv/pkg-plist	Wed Sep  5 06:01:31 2012	(r303684)
@@ -16,7 +16,36 @@ bin/virtualenv-%%PYVER%%
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/distribute-%%DISTRIBUTEVER%%.tar.gz
 %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/pip-%%PIPVER%%.tar.gz
 %%PY2X%%%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/setuptools-0.6c11-py%%PYVER%%.egg
-%%PORTDOCS%%%%DOCSDIR%%/index.txt
+%%PORTDOCS%%%%DOCSDIR%%/.buildinfo
+%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/news.txt
+%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif
+%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/down.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/file.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/nature.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/up.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js
+%%PORTDOCS%%%%DOCSDIR%%/genindex.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/news.html
+%%PORTDOCS%%%%DOCSDIR%%/objects.inv
+%%PORTDOCS%%%%DOCSDIR%%/search.html
+%%PORTDOCS%%%%DOCSDIR%%/searchindex.js
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support
 @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO



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