Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 09:40:55 +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: r343611 - in head/devel/py-virtualenvwrapper: . files
Message-ID:  <201402100940.s1A9etAx034515@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Feb 10 09:40:54 2014
New Revision: 343611
URL: http://svnweb.freebsd.org/changeset/ports/343611
QAT: https://qat.redports.org/buildarchive/r343611/

Log:
  devel/py-virtualenvwrapper: Update to 4.2 & modernise
  
  - Update to 4.2, update pkg-plist
  - Enable STAGE support
  - Enable AUTOPLIST, update pkg-plist
  - Remove indefinite article from COMMENT and update
  - Add LICENSE (MIT)
  - Add new BUILD_DEPENDS (pbr)
  - Use OPTIONS helpers for DOCS_BUILD_DEPENDS
  - Deprecate easy_install target
  - Deprecate OPTIONSFILE override
  - Deprecate Python 3.2+ .py[co] hacks
  - Use *PYTHON_*PKGNAMEPREFIX for sphinxcontrib-bitbucket
  - Makefile: Whitespace alignment & sort sections
  - Remove unecessary setup.py patch
  
  Changes: http://virtualenvwrapper.readthedocs.org/en/latest/history.html
  
  Approved by:	maintainer (via email)

Deleted:
  head/devel/py-virtualenvwrapper/files/
Modified:
  head/devel/py-virtualenvwrapper/Makefile
  head/devel/py-virtualenvwrapper/distinfo
  head/devel/py-virtualenvwrapper/pkg-plist

Modified: head/devel/py-virtualenvwrapper/Makefile
==============================================================================
--- head/devel/py-virtualenvwrapper/Makefile	Mon Feb 10 09:39:58 2014	(r343610)
+++ head/devel/py-virtualenvwrapper/Makefile	Mon Feb 10 09:40:54 2014	(r343611)
@@ -2,58 +2,43 @@
 # $FreeBSD$
 
 PORTNAME=	virtualenvwrapper
-PORTVERSION=	3.6
-PORTREVISION=	0
+PORTVERSION=	4.2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	nivit@FreeBSD.org
-COMMENT=	A set of extensions to Virtual Python Environment builder
+COMMENT=	Set of extensions to virtualenv
 
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>=0.5.19:${PORTSDIR}/devel/py-pbr
 RUN_DEPENDS=	${PKGNAMEPREFIX}stevedore>=0.3:${PORTSDIR}/devel/py-stevedore \
 		${PKGNAMEPREFIX}virtualenv>=1.4.8:${PORTSDIR}/devel/py-virtualenv \
 		${PKGNAMEPREFIX}virtualenv-clone>=0.2.4:${PORTSDIR}/devel/py-virtualenv-clone
 
-OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
 OPTIONS_DEFINE=	DOCS
 
-USE_PYDISTUTILS=	easy_install
-# Python3 ready
-USE_PYTHON=	yes
+DOCS_BUILD_DEPENDS=	sphinx-build:${PORTSDIR}/textproc/py-sphinx \
+			${PYTHON_PKGNAMEPREFIX}sphinxcontrib-bitbucket>=1.0:${PORTSDIR}/textproc/py-sphinxcontrib-bitbucket
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
 .include <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MDOCS}
-DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+DOCSDIR=			${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 PYDISTUTILS_BUILD_TARGET+=	build_sphinx -a -E
-BUILD_DEPENDS+=	sphinx-build:${PORTSDIR}/textproc/py-sphinx \
-		${PKGNAMEPREFIX}sphinxcontrib-bitbucket>=1.0:${PORTSDIR}/textproc/py-sphinxcontrib-bitbucket
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|python setup.py|${PYTHON_CMD} setup.py|' \
 		${WRKSRC}/docs/source/conf.py
 
 post-install:
-	${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
-.endif
-
-.if ${PYTHON_REL} >= 320
-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}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.post.mk>

Modified: head/devel/py-virtualenvwrapper/distinfo
==============================================================================
--- head/devel/py-virtualenvwrapper/distinfo	Mon Feb 10 09:39:58 2014	(r343610)
+++ head/devel/py-virtualenvwrapper/distinfo	Mon Feb 10 09:40:54 2014	(r343611)
@@ -1,2 +1,2 @@
-SHA256 (virtualenvwrapper-3.6.tar.gz) = 1d45a1ea73dbc9cf0a5c7b4b17e631092a02a90a01eb4125051db19a845db4e6
-SIZE (virtualenvwrapper-3.6.tar.gz) = 184502
+SHA256 (virtualenvwrapper-4.2.tar.gz) = cbc7f3587d5c3f23ef4e75fba166c7d4b278dff044d915cb9070845d2a89033e
+SIZE (virtualenvwrapper-4.2.tar.gz) = 125144

Modified: head/devel/py-virtualenvwrapper/pkg-plist
==============================================================================
--- head/devel/py-virtualenvwrapper/pkg-plist	Mon Feb 10 09:39:58 2014	(r343610)
+++ head/devel/py-virtualenvwrapper/pkg-plist	Mon Feb 10 09:40:54 2014	(r343611)
@@ -1,29 +1,6 @@
-bin/virtualenvwrapper.sh
-bin/virtualenvwrapper_lazy.sh
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/namespace_packages.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts/virtualenvwrapper.sh
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts/virtualenvwrapper_lazy.sh
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/__init__.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/__init__.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/__init__.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/hook_loader.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/hook_loader.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/hook_loader.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/project.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/project.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/project.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/user_scripts.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/user_scripts.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper/user_scripts.pyo
 %%PORTDOCS%%%%DOCSDIR%%/.buildinfo
 %%PORTDOCS%%%%DOCSDIR%%/_sources/command_ref.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/design.txt
 %%PORTDOCS%%%%DOCSDIR%%/_sources/developers.txt
 %%PORTDOCS%%%%DOCSDIR%%/_sources/extensions.txt
 %%PORTDOCS%%%%DOCSDIR%%/_sources/history.txt
@@ -55,6 +32,7 @@ bin/virtualenvwrapper_lazy.sh
 %%PORTDOCS%%%%DOCSDIR%%/_static/up.png
 %%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js
 %%PORTDOCS%%%%DOCSDIR%%/command_ref.html
+%%PORTDOCS%%%%DOCSDIR%%/design.html
 %%PORTDOCS%%%%DOCSDIR%%/developers.html
 %%PORTDOCS%%%%DOCSDIR%%/extensions.html
 %%PORTDOCS%%%%DOCSDIR%%/history.html
@@ -71,7 +49,3 @@ bin/virtualenvwrapper_lazy.sh
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenvwrapper
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%



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