1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net/py-urllib3/Makefile
Olivier Duchateau 8b223b0637 Convert my own Python ports to:
- STAGEDIR
- Replace USE_PYDISTUTILS= easy_install by USE_PYDISTUTILS= yes

While I'm here
- Use PYDISTUTILS_AUTOPLIST
- Adjust or add LICENSE
2014-01-24 13:34:31 +00:00

36 lines
725 B
Makefile

# Created by: Olivier Duchateau
# $FreeBSD$
PORTNAME= urllib3
PORTVERSION= 1.7.1
PORTREVISION= 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= yes
PYTHON_PY3K_PLIST_HACK= 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
post-extract:
.if ${PYTHON_REL} >= 300
@${RM} ${WRKSRC}/urllib3/contrib/pyopenssl.py
.endif
.include <bsd.port.post.mk>