Date: Sat, 21 Sep 2019 06:05:53 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512469 - in head/devel/py-virtualenv: . files Message-ID: <201909210605.x8L65rM6017428@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sat Sep 21 06:05:53 2019 New Revision: 512469 URL: https://svnweb.freebsd.org/changeset/ports/512469 Log: Unbreak py27 FLAVOR Reported by: pkg-fallout Modified: head/devel/py-virtualenv/Makefile head/devel/py-virtualenv/files/patch-docs_conf.py Modified: head/devel/py-virtualenv/Makefile ============================================================================== --- head/devel/py-virtualenv/Makefile Sat Sep 21 05:58:41 2019 (r512468) +++ head/devel/py-virtualenv/Makefile Sat Sep 21 06:05:53 2019 (r512469) @@ -17,6 +17,9 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}towncrier>0:textproc/py-towncrier@${PY_FLAVOR} +.if ${FLAVOR:U:Mpy27} +DOCS_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR} +.endif DOCS_PORTDOCS= * DOCS_VARS= PYDISTUTILS_BUILD_TARGET="build build_sphinx" Modified: head/devel/py-virtualenv/files/patch-docs_conf.py ============================================================================== --- head/devel/py-virtualenv/files/patch-docs_conf.py Sat Sep 21 05:58:41 2019 (r512468) +++ head/devel/py-virtualenv/files/patch-docs_conf.py Sat Sep 21 06:05:53 2019 (r512469) @@ -1,9 +1,14 @@ --- docs/conf.py.orig 2019-09-03 16:32:54 UTC +++ docs/conf.py -@@ -5,6 +5,7 @@ import re +@@ -4,7 +4,11 @@ import os + import re import subprocess import sys - from pathlib import Path +-from pathlib import Path ++if sys.version_info[0] == 2: ++ from pathlib2 import Path ++else: ++ from pathlib import Path +sys.path.insert(0, os.path.abspath('../build/lib')) from virtualenv import __version__
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909210605.x8L65rM6017428>