mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
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) MFH: 2017Q3
This commit is contained in:
parent
6be69eee67
commit
884e919edd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448354
2 changed files with 10 additions and 10 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue