Bug 186581 - [PATCH] devel/py-virtualenv: update to 1.11.2 & modernise
Summary: [PATCH] devel/py-virtualenv: update to 1.11.2 & modernise
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-09 11:20 UTC by koobs
Modified: 2014-02-10 10:07 UTC (History)
1 user (show)

See Also:


Attachments
py27-virtualenv-1.11.2.patch (6.05 KB, patch)
2014-02-09 11:20 UTC, koobs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description koobs 2014-02-09 11:20:00 UTC
devel/py-virtualenv: Update to 0.11.2 & Modernise

- Update to 0.11.2
- Update pkg-plist
- Enable STAGE support
- Enable AUTOPLIST support, update pkg-plist
- Deprecate easy_install target
- Deprecate py3k-fix-pkg-plist.inc
- Deprecate OPTIONSFILE override
- Dont need PIPVER and SETUPTOOLSVER variables anymore
- Dont need bsd.port.pre.mk anymore
- Use *PYTHON_*PKGNAMEPREFIX for sphinx BUILD_DEPENDS
- Add TEST_DEPENDS and regression-test: target, tests will be included
  in the next upstream version [1]

[1] https://github.com/pypa/virtualenv/pull/561

Port maintainer (nivit@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_11 (mode: update, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer 2014-02-09 11:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nivit

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2014-02-10 09:40:07 UTC
Author: koobs
Date: Mon Feb 10 09:39:58 2014
New Revision: 343610
URL: http://svnweb.freebsd.org/changeset/ports/343610
QAT: https://qat.redports.org/buildarchive/r343610/

Log:
  devel/py-virtualenv: Update to 0.11.2 & modernise
  
  - Update to 0.11.2
  - Update pkg-plist
  - Enable STAGE support
  - Enable AUTOPLIST support, update pkg-plist
  - Deprecate easy_install target
  - Deprecate py3k-fix-pkg-plist.inc
  - Deprecate OPTIONSFILE override
  - Dont need PIPVER and SETUPTOOLSVER variables anymore
  - Dont need bsd.port.pre.mk anymore
  - Use *PYTHON_*PKGNAMEPREFIX for sphinx BUILD_DEPENDS
  - Use OPTIONS helpers for DOCS BUILD_DEPENDS
  - Add TEST_DEPENDS and regression-test: target, tests will be included
    in the next upstream version [1]
  
    [1] https://github.com/pypa/virtualenv/pull/561
  
  Changes: http://www.virtualenv.org/en/latest/news.html
  
  PR:		ports/186581
  Approved by:	maintainer (via email)

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

Modified: head/devel/py-virtualenv/Makefile
==============================================================================
--- head/devel/py-virtualenv/Makefile	Mon Feb 10 09:38:31 2014	(r343609)
+++ head/devel/py-virtualenv/Makefile	Mon Feb 10 09:39:58 2014	(r343610)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	virtualenv
-PORTVERSION=	1.10.1
+PORTVERSION=	1.11.2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,36 +11,29 @@ COMMENT=	Virtual Python Environment buil
 
 LICENSE=	MIT
 
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose:${PORTSDIR}/devel/py-tox \
+		${PYTHON_PKGNAMEPREFIX}mock:${PORTSDIR}/devel/py-mock
+
 OPTIONS_DEFINE=	DOCS
-OPTIONSFILE?=	${PORT_DBDIR}/py-${PORTNAME}/options
 
-PLIST_SUB=	PYVER=${PYTHON_VER} PIPVER=${PIPVER} \
-		SETUPTOOLSVER=${SETUPTOOLSVER}
+DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx
 
-# Python3 ready
 USE_PYTHON=		yes
-USE_PYDISTUTILS=	easy_install
-
-PIPVER=	1.4.1
-SETUPTOOLSVER=	0.9.8
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.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}
+DOCSDIR=			${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 PYDISTUTILS_BUILD_TARGET+=	build_sphinx
 
 post-install:
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 .endif
 
-.if ${PYTHON_REL} >= 320
-.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
-.endif
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/py-virtualenv/distinfo
==============================================================================
--- head/devel/py-virtualenv/distinfo	Mon Feb 10 09:38:31 2014	(r343609)
+++ head/devel/py-virtualenv/distinfo	Mon Feb 10 09:39:58 2014	(r343610)
@@ -1,2 +1,2 @@
-SHA256 (virtualenv-1.10.1.tar.gz) = 857449d69b9ec7d058dcc2e37c53d3895432300881aa61fd2ade178a807b0aa7
-SIZE (virtualenv-1.10.1.tar.gz) = 1325303
+SHA256 (virtualenv-1.11.2.tar.gz) = 3080a1610fa8c4ab23008707ca5c96d7e67d8cb3ed98c7e01e97f542c82bb6df
+SIZE (virtualenv-1.11.2.tar.gz) = 1755846

Modified: head/devel/py-virtualenv/pkg-plist
==============================================================================
--- head/devel/py-virtualenv/pkg-plist	Mon Feb 10 09:38:31 2014	(r343609)
+++ head/devel/py-virtualenv/pkg-plist	Mon Feb 10 09:39:58 2014	(r343610)
@@ -1,37 +1,23 @@
-bin/virtualenv
-bin/virtualenv-%%PYVER%%
-%%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/not-zip-safe
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/__init__.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/__init__.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/__init__.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/pip-%%PIPVER%%.tar.gz
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/virtualenv_support/setuptools-%%SETUPTOOLSVER%%.tar.gz
 %%PORTDOCS%%%%DOCSDIR%%/.buildinfo
 %%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt
 %%PORTDOCS%%%%DOCSDIR%%/_sources/news.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/virtualenv.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/default.css
 %%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/sidebar.js
 %%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js
 %%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png
 %%PORTDOCS%%%%DOCSDIR%%/_static/up.png
@@ -42,9 +28,7 @@ bin/virtualenv-%%PYVER%%
 %%PORTDOCS%%%%DOCSDIR%%/objects.inv
 %%PORTDOCS%%%%DOCSDIR%%/search.html
 %%PORTDOCS%%%%DOCSDIR%%/searchindex.js
+%%PORTDOCS%%%%DOCSDIR%%/virtualenv.html
 %%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
-@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2014-02-10 10:07:38 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks Nicola!