summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2017-08-20 03:16:17 +0000
committerkoobs <koobs@FreeBSD.org>2017-08-20 03:16:17 +0000
commit08a936c00c2370842fb49c972ef62142c662541c (patch)
treed72f40a513a3e4b5a4bc4e5ab07e0e3345214f2c
parentfbab077b1486ed240b2d4f8986faa2b2812ff000 (diff)
downloadFreeBSD-ports-08a936c00c2370842fb49c972ef62142c662541c.zip
FreeBSD-ports-08a936c00c2370842fb49c972ef62142c662541c.tar.gz
MFH: r448354
devel/py-extras: Fix Python 3.x packaging Python 3.x changes the location of the compiled python objects - pyc and pyo. The pkg-plist supplied with devel/py-extras doe not account for this, so packaging with Python 3 fails. This change replaces pkg-plist with autoplist to correct the issue [1] While I'm here: - Add TEST_DEPENDS and test target - Mark architecture independence - Add LICENSE_FILE PR: 219278 Submitted by: Johannes Jost Meixner [1] Approved by: portmgr (blanket) Approved by: ports-secteam (blanket)
-rw-r--r--devel/py-extras/Makefile11
-rw-r--r--devel/py-extras/pkg-plist9
2 files changed, 10 insertions, 10 deletions
diff --git a/devel/py-extras/Makefile b/devel/py-extras/Makefile
index 4bde11a..810e126 100644
--- a/devel/py-extras/Makefile
+++ b/devel/py-extras/Makefile
@@ -2,6 +2,7 @@
PORTNAME= extras
PORTVERSION= 1.0.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,8 +11,16 @@ MAINTAINER= cs@FreeBSD.org
COMMENT= Useful extra bits for Python
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}testtools>0:devel/py-testtools
USES= python
-USE_PYTHON= distutils
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m testtools.run extras.tests.test_suite
.include <bsd.port.mk>
diff --git a/devel/py-extras/pkg-plist b/devel/py-extras/pkg-plist
deleted file mode 100644
index 3e1c6c4..0000000
--- a/devel/py-extras/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-%%PYTHON_SITELIBDIR%%/extras/__init__.py
-%%PYTHON_SITELIBDIR%%/extras/__init__.pyc
-%%PYTHON_SITELIBDIR%%/extras/__init__.pyo
-%%PYTHON_SITELIBDIR%%/extras/tests/__init__.py
-%%PYTHON_SITELIBDIR%%/extras/tests/__init__.pyc
-%%PYTHON_SITELIBDIR%%/extras/tests/__init__.pyo
-%%PYTHON_SITELIBDIR%%/extras/tests/test_extras.py
-%%PYTHON_SITELIBDIR%%/extras/tests/test_extras.pyc
-%%PYTHON_SITELIBDIR%%/extras/tests/test_extras.pyo
OpenPOWER on IntegriCloud