Date: Sat, 19 Aug 2017 12:41:44 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448303 - head/net/py-pcs Message-ID: <201708191241.v7JCfifa014540@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Sat Aug 19 12:41:43 2017 New Revision: 448303 URL: https://svnweb.freebsd.org/changeset/ports/448303 Log: 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) MFH: 2017Q3 Modified: head/net/py-pcs/Makefile Modified: head/net/py-pcs/Makefile ============================================================================== --- head/net/py-pcs/Makefile Sat Aug 19 12:13:26 2017 (r448302) +++ head/net/py-pcs/Makefile Sat Aug 19 12:41:43 2017 (r448303) @@ -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 @@ -29,5 +31,10 @@ post-install-DOCS-on: 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708191241.v7JCfifa014540>