Lines 1-34
Link Here
|
1 |
# Created by: Blaz Zupan <blaz@si.FreeBSD.org> |
1 |
# Created by: Blaz Zupan <blaz@si.FreeBSD.org> |
2 |
|
2 |
|
3 |
PORTNAME= pyrad |
3 |
PORTNAME= pyrad |
4 |
PORTVERSION= 2.0 |
4 |
DISTVERSION= 2.4 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= net python |
5 |
CATEGORIES= net python |
7 |
MASTER_SITES= CHEESESHOP |
|
|
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
|
7 |
|
10 |
MAINTAINER= steve@energistic.com |
8 |
MAINTAINER= steve@energistic.com |
11 |
COMMENT= Python implementation of RADIUS client |
9 |
COMMENT= Python implementation of RADIUS client |
12 |
|
10 |
|
|
|
11 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
13 |
|
14 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR} \ |
15 |
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} |
16 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0.10.0b1:devel/py-nose@${PY_FLAVOR} |
17 |
|
13 |
USES= cpe python:3.6+ |
18 |
USES= cpe python:3.6+ |
14 |
USE_PYTHON= distutils autoplist |
19 |
USE_GITHUB= yes |
|
|
20 |
GH_ACCOUNT= pyradius |
21 |
USE_PYTHON= autoplist concurrent distutils |
15 |
|
22 |
|
16 |
CPE_VENDOR= pyrad_project |
23 |
CPE_VENDOR= pyrad_project |
17 |
|
24 |
|
|
|
25 |
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
26 |
|
27 |
NO_ARCH= yes |
28 |
|
18 |
PORTEXAMPLES= * |
29 |
PORTEXAMPLES= * |
19 |
|
30 |
|
20 |
OPTIONS_DEFINE= EXAMPLES |
31 |
OPTIONS_DEFINE= EXAMPLES |
21 |
|
32 |
|
22 |
.include <bsd.port.options.mk> |
|
|
23 |
|
24 |
post-patch: |
33 |
post-patch: |
25 |
@${REINPLACE_CMD} -e 's|zip_safe=True|zip_safe=False|' \ |
34 |
@${REINPLACE_CMD} -e 's|zip_safe=True|zip_safe=False|' \ |
26 |
${WRKSRC}/setup.py |
35 |
${WRKSRC}/setup.py |
27 |
|
36 |
|
28 |
.if ${PORT_OPTIONS:MEXAMPLES} |
37 |
post-install-EXAMPLES-on: |
29 |
post-install: |
|
|
30 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
38 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
31 |
(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |
39 |
(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |
32 |
.endif |
40 |
|
|
|
41 |
do-test: |
42 |
@cd ${WRKSRC} && ${SETENV} ${TESTENV} ${PYTHON_CMD} -m nose -v |
33 |
|
43 |
|
34 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |