summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2017-08-19 12:44:42 +0000
committerkoobs <koobs@FreeBSD.org>2017-08-19 12:44:42 +0000
commit2e87cdfddb74398671e7956e3abc1bccb4ab7e3f (patch)
treea9a6df2932e24c592081ffa4019303a701a88cc9
parent75845a3f2e94c18c1817e874d38bf0e39eade6eb (diff)
downloadFreeBSD-ports-2e87cdfddb74398671e7956e3abc1bccb4ab7e3f.zip
FreeBSD-ports-2e87cdfddb74398671e7956e3abc1bccb4ab7e3f.tar.gz
MFH: r448303
net/py-pcs: Limit to Python 2.7 (Does not support Python 3) This version (0.6) of the upstream package version does not appear to intend to, or explicitly support Python 3. It also currently fails to build with Python 3.x with a SyntaxError: SyntaxError: Missing parentheses in call to 'print' This change limits the USES=python:<version-spec> support declaration to 2.7 accordingly. Note: A closed upstream PR [1] mentions fixing tests for Python 3 in 2015, so the version-specifier may change (be relaxed) upon future port/version updates, or at MAINTAINER's (also the package author) discretion to explicitly mark Python 3 as an intended supported version, *independent* to any build/run-time issues that may exist. While I'm here, pet portlint: - Strip shared libraries - Add LICENSE_FILE - Fix section order (*_DEPENDS) [1] https://github.com/gvnn3/PCS/pull/2 PR: 219325 Reported by: Johannes Jost Meixner Approved by: portmgr (blanket) Approved by: ports-secteam (blanket)
-rw-r--r--net/py-pcs/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/py-pcs/Makefile b/net/py-pcs/Makefile
index 65bc96d..1d5d3ea 100644
--- a/net/py-pcs/Makefile
+++ b/net/py-pcs/Makefile
@@ -3,6 +3,7 @@
PORTNAME= pcs
PORTVERSION= 0.6
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Beta-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,13 @@ MAINTAINER= gnn@FreeBSD.org
COMMENT= Protocol Construction Set
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+
+BUILD_DEPENDS= cython>=0.11.2:lang/cython
PORTDOCS= pcs.pdf
PORTEXAMPLES= *
-BUILD_DEPENDS= cython>=0.11.2:lang/cython
-
USES= python
USE_PYTHON= distutils pythonprefix
@@ -30,4 +32,9 @@ post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/scripts && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bpf.so \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/pcs/clock.so \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/pcs/pcap.so
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud