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
This commit is contained in:
parent
9bbe93456a
commit
486caf9915
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419319
@ -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 <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
@ -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}
|
Loading…
Reference in New Issue
Block a user