diff --git a/devel/py-virtualenvwrapper/Makefile b/devel/py-virtualenvwrapper/Makefile index 4ec9dcf85352..846c344c7478 100644 --- a/devel/py-virtualenvwrapper/Makefile +++ b/devel/py-virtualenvwrapper/Makefile @@ -1,60 +1,58 @@ PORTNAME= virtualenvwrapper -PORTVERSION= 4.8.4 -PORTREVISION= 2 +PORTVERSION= 6.1.1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Enhancements to virtualenv WWW= https://virtualenvwrapper.readthedocs.io/ -BROKEN= outdated, does not support modern Python stack -DEPRECATED= Fails to build with sphinx-9.0.4, does not support Python 3.12 -EXPIRATION_DATE= 2026-07-31 - LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>0:devel/py-pbr@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}stevedore>0:devel/py-stevedore@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash \ + ${PYTHON_PKGNAMEPREFIX}stevedore>0:devel/py-stevedore@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}virtualenv-clone>0:devel/py-virtualenv-clone@${PY_FLAVOR} -# Actually 2.6-2.7,3.3-3.6 +# Actually 3.8-3.12 USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 OPTIONS_DEFINE= DOCS -DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}sphinxcontrib-bitbucket>=1.0:textproc/py-sphinxcontrib-bitbucket@${PY_FLAVOR} -DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx \ - PYDISTUTILS_BUILDARGS="-a -E" +DOCS_MAKE_ENV= PYTHONPATH=${WRKSRC} +PLIST_FILES= share/man/man1/virtualenvwrapper.1.gz PORTDOCS= * NO_ARCH= yes post-patch: - ${REINPLACE_CMD} \ - -e 's|$$(command \\which python)|${PYTHON_CMD}|1' \ - -e 's|="virtualenv"|="virtualenv${UNIQUE_SUFFIX}"|1' \ - -e 's|="virtualenv-clone"|="virtualenv-clone${UNIQUE_SUFFIX}"|1' \ - ${WRKSRC}/${PORTNAME}.sh - ${REINPLACE_CMD} \ - -e 's|which virtualenvwrapper.sh|which ${PORTNAME}.sh${UNIQUE_SUFFIX}|' \ - ${WRKSRC}/${PORTNAME}_lazy.sh - -post-patch-DOCS-on: - @${REINPLACE_CMD} -e 's|python setup.py|${PYTHON_CMD} setup.py|' \ - ${WRKSRC}/docs/source/conf.py + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/tox.ini + +post-build: + cd ${WRKSRC}/docs && ${SETENVI} ${MAKE_ENV} \ + ${BSDMAKE} SPHINX_BUILD=${LOCALBASE}/bin/sphinx-build${UNIQUE_SUFFIX} man post-build-DOCS-on: - @${RM} ${WRKSRC}/docs/build/html/.buildinfo + cd ${WRKSRC}/docs && ${SETENVI} ${MAKE_ENV} \ + ${BSDMAKE} SPHINX_BUILD=${LOCALBASE}/bin/sphinx-build${UNIQUE_SUFFIX} html + +post-install: + ${INSTALL_MAN} ${WRKSRC}/docs/build/man/virtualenvwrapper.1 \ + ${STAGEDIR}${PREFIX}/share/man/man1 post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} - @cd ${WRKSRC}/docs/build/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC}/docs/build/html && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ + "-not ( -name .buildinfo )" .include diff --git a/devel/py-virtualenvwrapper/distinfo b/devel/py-virtualenvwrapper/distinfo index cd0c95445563..5e92d401262d 100644 --- a/devel/py-virtualenvwrapper/distinfo +++ b/devel/py-virtualenvwrapper/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1584492404 -SHA256 (virtualenvwrapper-4.8.4.tar.gz) = 51a1a934e7ed0ff221bdd91bf9d3b604d875afbb3aa2367133503fee168f5bfa -SIZE (virtualenvwrapper-4.8.4.tar.gz) = 334920 +TIMESTAMP = 1777103810 +SHA256 (virtualenvwrapper-6.1.1.tar.gz) = 112e7ea34a9a3ce90aaea54182f0d3afef4d1a913eeb75e98a263b4978cd73c6 +SIZE (virtualenvwrapper-6.1.1.tar.gz) = 95964 diff --git a/devel/py-virtualenvwrapper/files/patch-docs_source_conf.py b/devel/py-virtualenvwrapper/files/patch-docs_source_conf.py deleted file mode 100644 index e49210a74965..000000000000 --- a/devel/py-virtualenvwrapper/files/patch-docs_source_conf.py +++ /dev/null @@ -1,11 +0,0 @@ ---- docs/source/conf.py.orig 2015-08-31 12:34:27 UTC -+++ docs/source/conf.py -@@ -101,7 +101,7 @@ pygments_style = 'sphinx' - - # The theme to use for HTML and HTML Help pages. Major themes that come with - # Sphinx are currently 'default' and 'sphinxdoc'. --html_theme = 'default' -+html_theme = 'classic' - - # Theme options are theme-specific and customize the look and feel of a theme - # further. For a list of options available for each theme, see the diff --git a/devel/py-virtualenvwrapper/files/patch-tox.ini b/devel/py-virtualenvwrapper/files/patch-tox.ini new file mode 100644 index 000000000000..3a518ba5bac9 --- /dev/null +++ b/devel/py-virtualenvwrapper/files/patch-tox.ini @@ -0,0 +1,11 @@ +--- tox.ini.orig 2026-07-04 10:21:46 UTC ++++ tox.ini +@@ -8,7 +8,7 @@ setenv = + USER + setenv = + USING_TOX = 1 +- SHELL = /bin/bash ++ SHELL = %%LOCALBASE%%/bin/bash + allowlist_externals = + bash + zsh