net/pyrad: Update to 2.4 [1]
While I'm here: * Switch to GitHub for a while to keep the EXAMPLES option as the useful examples aren't included with the sdist at the moment. * Make package concurrent safe due to the example files that are installed outside of Python's site-lib directory. * Convert to option helpers. * Add "do-test" target to make future QA easier. PR: 259332 Reported by: Gian-Simon Purkert [1] Approved by: maintainer timeout (14+ days) MFH: 2021Q4 Security: 17702e54-3da0-11ec-b7e0-3085a9a95629
This commit is contained in:
parent
5966fe8597
commit
81389bf63e
@ -1,34 +1,44 @@
|
||||
# Created by: Blaz Zupan <blaz@si.FreeBSD.org>
|
||||
|
||||
PORTNAME= pyrad
|
||||
PORTVERSION= 2.0
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 2.4
|
||||
CATEGORIES= net python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= steve@energistic.com
|
||||
COMMENT= Python implementation of RADIUS client
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0.10.0b1:devel/py-nose@${PY_FLAVOR}
|
||||
|
||||
USES= cpe python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= pyradius
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
CPE_VENDOR= pyrad_project
|
||||
|
||||
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|zip_safe=True|zip_safe=False|' \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
post-install:
|
||||
post-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${SETENV} ${TESTENV} ${PYTHON_CMD} -m nose -v
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (pyrad-2.0.tar.gz) = 6bdac1af328aceb4383c39986356b6bb8a880157c3fd95eefc28643526718999
|
||||
SIZE (pyrad-2.0.tar.gz) = 38388
|
||||
TIMESTAMP = 1635956882
|
||||
SHA256 (pyradius-pyrad-2.4_GH0.tar.gz) = aa3312a68c0a0d60fd2222df7ad0d22089c269bc8430dd840f4648431fa02c59
|
||||
SIZE (pyradius-pyrad-2.4_GH0.tar.gz) = 54431
|
||||
|
Loading…
Reference in New Issue
Block a user