aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorolivierd <olivierd@FreeBSD.org>2016-06-27 04:06:02 +0800
committerolivierd <olivierd@FreeBSD.org>2016-06-27 04:06:02 +0800
commit04aa650beacdf68f41b22d2f827941c3b4c78965 (patch)
tree41faf3bce8dd8f29a63b88a3ff49b92a0a810a25 /net
parenta6f86e3d20eae09497e2067c3a7352eb7e377b1d (diff)
downloadfreebsd-ports-gnome-04aa650beacdf68f41b22d2f827941c3b4c78965.tar.gz
freebsd-ports-gnome-04aa650beacdf68f41b22d2f827941c3b4c78965.tar.zst
freebsd-ports-gnome-04aa650beacdf68f41b22d2f827941c3b4c78965.zip
net/py-ndg_httpsclient is fully compatible with Python2 and Python3 (r417571)
Diffstat (limited to 'net')
-rw-r--r--net/py-urllib3/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/py-urllib3/Makefile b/net/py-urllib3/Makefile
index a08f2960845f..30276f983bb0 100644
--- a/net/py-urllib3/Makefile
+++ b/net/py-urllib3/Makefile
@@ -14,7 +14,8 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi \
- ${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.7:net/py-pysocks
+ ${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.7:net/py-pysocks \
+ ${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.4.1:net/py-ndg_httpsclient
USES= python
USE_PYTHON= distutils autoplist
@@ -22,11 +23,6 @@ NO_ARCH= yes
.include <bsd.port.pre.mk>
-# ndg_httpclient is only available for Python 2
-.if ${PYTHON_REL} < 3000
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.4.0:net/py-ndg_httpsclient
-.endif
-
post-extract:
.if ${PYTHON_REL} >= 3000
@${RM} ${WRKSRC}/urllib3/contrib/pyopenssl.py