git: 3c45bcb35ad1 - main - devel/py-freebsd: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Jul 2024 16:28:38 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=3c45bcb35ad1ed59f0c5f8b5b70221b72f4a327b commit 3c45bcb35ad1ed59f0c5f8b5b70221b72f4a327b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-07-06 16:11:55 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-07-06 16:11:55 +0000 devel/py-freebsd: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- devel/py-freebsd/Makefile | 11 +++++++---- devel/py-freebsd/files/patch-setup.py | 11 +++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/devel/py-freebsd/Makefile b/devel/py-freebsd/Makefile index 7d88ed6ba8d8..149396375b30 100644 --- a/devel/py-freebsd/Makefile +++ b/devel/py-freebsd/Makefile @@ -1,6 +1,7 @@ PORTNAME= freebsd PORTVERSION= 0.9.5 -DISTVERSIONPREFIX=v +DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -10,17 +11,19 @@ COMMENT= Python interface to FreeBSD-specific system libraries LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= autoplist distutils unittest +USE_PYTHON= autoplist concurrent pep517 unittest USE_GITHUB= yes GH_ACCOUNT= sobomax GH_PROJECT= py-freebsd -PYDISTUTILS_BUILD_TARGET=build_ext -i TEST_ARGS= discover -s tests post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/freebsd*.so + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include <bsd.port.mk> diff --git a/devel/py-freebsd/files/patch-setup.py b/devel/py-freebsd/files/patch-setup.py new file mode 100644 index 000000000000..3ffef612f40a --- /dev/null +++ b/devel/py-freebsd/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2022-01-23 05:12:10 UTC ++++ setup.py +@@ -51,7 +51,7 @@ setup_options = { + print(F'Extension options:\n{extension_options}') + + setup_options = { +- 'name' : "py-freebsd", ++ 'name' : "freebsd", + 'version' : "0.9.5", + 'description' : "Python Interface to FreeBSD Platform Library", + 'author' : "Hye-Shik Chang",