freebsd-ports/net/py-urllib3/Makefile
Antoine Brodin 1b85bc9332 Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10

Differential Revision:	https://reviews.freebsd.org/D2639
Reviewed by:	sunpoet, mva
2015-05-26 16:47:02 +00:00

31 lines
675 B
Makefile

# Created by: Olivier Duchateau
# $FreeBSD$
PORTNAME= urllib3
PORTVERSION= 1.10.4
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= olivierd@FreeBSD.org
COMMENT= Enhance HTTP Python's standard library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= python
USE_PYTHON= distutils autoplist
.include <bsd.port.pre.mk>
# ndg_httpclient is only available for Python 2
.if ${PYTHON_REL} < 3000
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.3.3:${PORTSDIR}/net/py-ndg_httpsclient
.endif
post-extract:
.if ${PYTHON_REL} >= 3000
@${RM} ${WRKSRC}/urllib3/contrib/pyopenssl.py
.endif
.include <bsd.port.post.mk>