From 486caf99151c2047d2c36740ef9807d4daf8a24f Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Sat, 30 Jul 2016 14:16:38 +0000 Subject: [PATCH] security/py-pysha3: Update to 1.0b1, Modernize * Update DISTVERSION and distinfo (1.0b1) * Add LICENSE_FILE * Sort USE_PYTHON * Update test target * Strip shared library * Remove vestigial files/py3k-fix-pkg-plist.in patch --- security/py-pysha3/Makefile | 14 +++++++++----- security/py-pysha3/distinfo | 5 +++-- security/py-pysha3/files/py3k-fix-pkg-plist.inc | 14 -------------- 3 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 security/py-pysha3/files/py3k-fix-pkg-plist.inc diff --git a/security/py-pysha3/Makefile b/security/py-pysha3/Makefile index 79a389134796..b1498effc591 100644 --- a/security/py-pysha3/Makefile +++ b/security/py-pysha3/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= pysha3 -PORTVERSION= 0.3 -PORTREVISION= 1 +DISTVERSION= 1.0b1 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,11 +11,16 @@ MAINTAINER= koobs@FreeBSD.org COMMENT= SHA-3 (Keccak) for Python LICENSE= PSFL +LICENSE_FILE= ${WRKSRC}/LICENSE +# Actually Python 2.7,3.4+ USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils -regression-test: build - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_sha3.so + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include diff --git a/security/py-pysha3/distinfo b/security/py-pysha3/distinfo index a034bfa5da4a..d36d9a6fe0be 100644 --- a/security/py-pysha3/distinfo +++ b/security/py-pysha3/distinfo @@ -1,2 +1,3 @@ -SHA256 (pysha3-0.3.tar.gz) = 191c5f1f77de11fb847c6c825b72f33c81ce67f72055038175fccbbeb891f04d -SIZE (pysha3-0.3.tar.gz) = 47546 +TIMESTAMP = 1469885509 +SHA256 (pysha3-1.0b1.tar.gz) = 9e9c1d9eab3ad18e3c715ae3550229c88011a97959feb96ad1747031ecfb0997 +SIZE (pysha3-1.0b1.tar.gz) = 828212 diff --git a/security/py-pysha3/files/py3k-fix-pkg-plist.inc b/security/py-pysha3/files/py3k-fix-pkg-plist.inc deleted file mode 100644 index 93acb972e248..000000000000 --- a/security/py-pysha3/files/py3k-fix-pkg-plist.inc +++ /dev/null @@ -1,14 +0,0 @@ -# When Python version is 3.2+ we rewrite all the filenames -# of TMPPLIST that end with .py[co], so that they conform -# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/) -PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())' -add-plist-post: - @${AWK} '\ - /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \ - /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \ - {print} \ - END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \ - ' \ - pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \ - ${TMPPLIST} > ${TMPPLIST}.pyc_tmp - @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}