multimedia/py-cec: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh
2024-05-13 22:04:09 +08:00
parent c8211a0d25
commit e223d9736c
2 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
PORTNAME= cec
PORTVERSION= 0.2.8
PORTREVISION= 1
CATEGORIES= multimedia python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +12,12 @@ WWW= https://github.com/trainman419/python-cec
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libcec.so:multimedia/libcec
USES= compiler:c++11-lang localbase python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

View File

@@ -0,0 +1,8 @@
--- setup.py.orig 2022-01-05 20:34:47 UTC
+++ setup.py
@@ -25,5 +25,4 @@ setup(name='cec', version='0.2.8',
},
author="Austin Hendrix",
author_email="namniart@gmail.com",
- data_files=['COPYING'],
ext_modules=[python_cec])