From owner-svn-ports-branches@freebsd.org Sat Aug 19 12:44:43 2017 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35417DE791E; Sat, 19 Aug 2017 12:44:43 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 043067331F; Sat, 19 Aug 2017 12:44:42 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7JCiggu015653; Sat, 19 Aug 2017 12:44:42 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7JCigbf015652; Sat, 19 Aug 2017 12:44:42 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201708191244.v7JCigbf015652@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Sat, 19 Aug 2017 12:44:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r448304 - branches/2017Q3/net/py-pcs X-SVN-Group: ports-branches X-SVN-Commit-Author: koobs X-SVN-Commit-Paths: branches/2017Q3/net/py-pcs X-SVN-Commit-Revision: 448304 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Aug 2017 12:44:43 -0000 Author: koobs Date: Sat Aug 19 12:44:42 2017 New Revision: 448304 URL: https://svnweb.freebsd.org/changeset/ports/448304 Log: 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: 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) Modified: branches/2017Q3/net/py-pcs/Makefile Directory Properties: branches/2017Q3/ (props changed) Modified: branches/2017Q3/net/py-pcs/Makefile ============================================================================== --- branches/2017Q3/net/py-pcs/Makefile Sat Aug 19 12:41:43 2017 (r448303) +++ branches/2017Q3/net/py-pcs/Makefile Sat Aug 19 12:44:42 2017 (r448304) @@ -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