svn commit: r448304 - branches/2017Q3/net/py-pcs

Kubilay Kocak koobs at FreeBSD.org
Sat Aug 19 12:44:43 UTC 2017


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:<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)

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 at 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>


More information about the svn-ports-all mailing list