- Use PYTHON_PY3K_PLIST_HACK ChangeLog: https://github.com/shazow/urllib3/blob/1.7.1/CHANGES.rst#171-2013-09-25
36 lines
792 B
Makefile
36 lines
792 B
Makefile
# Created by: Olivier Duchateau
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= urllib3
|
|
PORTVERSION= 1.7.1
|
|
CATEGORIES= net python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= olivierd@FreeBSD.org
|
|
COMMENT= Enhance HTTP Python's standard library
|
|
|
|
LICENSE= MIT
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
PYTHON_PY3K_PLIST_HACK= yes
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# ndg_httpclient is only available for Python 2
|
|
.if ${PYTHON_REL} < 300
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.3.2:${PORTSDIR}/net/py-ndg_httpsclient
|
|
PLIST_SUB+= SSL=""
|
|
.else
|
|
PLIST_SUB+= SSL="@comment "
|
|
.endif
|
|
|
|
# distutils module can't exclude file (during install step)
|
|
post-extract:
|
|
.if ${PYTHON_REL} >= 300
|
|
@${RM} ${WRKSRC}/urllib3/contrib/pyopenssl.py
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|