svn commit: r512469 - in head/devel/py-virtualenv: . files

Antoine Brodin antoine at FreeBSD.org
Sat Sep 21 06:05:54 UTC 2019


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__


More information about the svn-ports-head mailing list