From 800a1c49156f94d90da11d3de5f0f67ae91861e2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 23 Feb 2018 18:52:41 +0000 Subject: security/py-txtorcon: Update to 0.20.0 Changelog: https://github.com/meejah/txtorcon/releases/tag/v0.20.0 Additional port changes: * Changed to DISTVERSION * Updated MAINTAINER * Added USE_PYTHON=concurrent (for docs and examples) * Added DOCS and EXAMPLES options * Added post-patch correcting docs/examples dirs * Added post-patch-xx-off targets that patch docs/examples away Requested upstream to have variables that control docs/examples. Reported by: portscout Approved by: tcberner (mentor, implicit) --- security/py-txtorcon/Makefile | 24 +++++++++++++++++++++--- security/py-txtorcon/distinfo | 6 +++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/security/py-txtorcon/Makefile b/security/py-txtorcon/Makefile index 02873a49d5fd..c6f08ad91fca 100644 --- a/security/py-txtorcon/Makefile +++ b/security/py-txtorcon/Makefile @@ -2,12 +2,12 @@ # $FreeBSD$ PORTNAME= txtorcon -PORTVERSION= 0.19.3 +DISTVERSION= 0.20.0 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= yuri@rawbw.com +MAINTAINER= yuri@FreeBSD.org COMMENT= Twisted-based Tor controller client LICENSE= MIT @@ -20,8 +20,26 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=15.5.0:devel/py-twisted@${FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Automat>0:devel/py-Automat@${FLAVOR} USES= python shebangfix -USE_PYTHON= distutils autoplist +USE_PYTHON= distutils autoplist concurrent NO_ARCH= yes SHEBANG_FILES= examples/*.py +OPTIONS_DEFINE= DOCS EXAMPLES + +post-patch: + @${REINPLACE_CMD} -e " \ + s|'share/txtorcon'|'${DOCSDIR}'| ; \ + s|'share/txtorcon/examples'|'${EXAMPLESDIR}'|" \ + ${WRKSRC}/setup.py + +post-patch-DOCS-off: + @${REINPLACE_CMD} -E " \ + s|(.*'${DOCSDIR}'.*)|#\1| ; \ + s|(.*'docs/.*',$$)|#\1| ; \ + s|(.*\+ sphinx_docs.*)|#\1|" \ + ${WRKSRC}/setup.py + +post-patch-EXAMPLES-off: + @${REINPLACE_CMD} -E "s|(.*'${EXAMPLESDIR}'.*)|#\1|" ${WRKSRC}/setup.py + .include diff --git a/security/py-txtorcon/distinfo b/security/py-txtorcon/distinfo index a34ce2cda014..e2fd341af7dd 100644 --- a/security/py-txtorcon/distinfo +++ b/security/py-txtorcon/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504485237 -SHA256 (txtorcon-0.19.3.tar.gz) = f73396667909a3c7a98f4dd865edf4ed6a2518ee5a935d92e18b8a479ec244fd -SIZE (txtorcon-0.19.3.tar.gz) = 265716 +TIMESTAMP = 1519406854 +SHA256 (txtorcon-0.20.0.tar.gz) = dc80cb76b3ddacef6d671c0a088cb1a45274c0858554c32ce55d0f41421c740e +SIZE (txtorcon-0.20.0.tar.gz) = 268909 -- cgit v1.2.3