2017-04-10 22:08:19 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= backports.ssl_match_hostname
|
|
|
|
PORTVERSION= 3.5.0.1
|
2017-12-05 16:00:03 +01:00
|
|
|
PORTREVISION= 1
|
2017-04-10 22:08:19 +02:00
|
|
|
CATEGORIES= security python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= lifanov@FreeBSD.org
|
|
|
|
COMMENT= Backport of the ssl_match_hostname function from Python 3.5
|
|
|
|
|
|
|
|
LICENSE= PSFL
|
|
|
|
|
2018-06-20 19:05:41 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>0:devel/py-backports@${PY_FLAVOR}
|
2017-12-05 16:00:03 +01:00
|
|
|
|
2020-02-19 18:59:35 +01:00
|
|
|
USES= python:2.7
|
2017-04-10 22:08:19 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
|
2017-12-05 16:00:03 +01:00
|
|
|
POST_PLIST= trim-backports-namespace
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py*
|
|
|
|
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__pycache__
|
|
|
|
|
|
|
|
trim-backports-namespace:
|
|
|
|
@${REINPLACE_CMD} '/backports\/__init__.py*/d' ${TMPPLIST}
|
|
|
|
@${REINPLACE_CMD} '/backports\/__pycache__*/d' ${TMPPLIST}
|
|
|
|
|
2017-04-10 22:08:19 +02:00
|
|
|
.include <bsd.port.mk>
|