git: 13ddac7fe4fd - main - textproc/py-markupsafe: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 May 2024 14:23:40 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=13ddac7fe4fd92aa0b1f1a4b91d2d12214c789b5 commit 13ddac7fe4fd92aa0b1f1a4b91d2d12214c789b5 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-13 14:09:34 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-13 14:09:34 +0000 textproc/py-markupsafe: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- textproc/py-markupsafe/Makefile | 6 +++++- textproc/py-markupsafe/files/patch-setup.py | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/textproc/py-markupsafe/Makefile b/textproc/py-markupsafe/Makefile index 17dbdfdd7037..7d5e4f199ed6 100644 --- a/textproc/py-markupsafe/Makefile +++ b/textproc/py-markupsafe/Makefile @@ -1,5 +1,6 @@ PORTNAME= markupsafe PORTVERSION= 2.1.5 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,8 +13,11 @@ WWW= https://github.com/pallets/markupsafe LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.rst +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 concurrent distutils +USE_PYTHON= autoplist concurrent pep517 post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + diff --git a/textproc/py-markupsafe/files/patch-setup.py b/textproc/py-markupsafe/files/patch-setup.py new file mode 100644 index 000000000000..7f80db046e9c --- /dev/null +++ b/textproc/py-markupsafe/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2024-02-02 16:03:42 UTC ++++ setup.py +@@ -39,7 +39,7 @@ def run_setup(with_binary): + + def run_setup(with_binary): + setup( +- name="MarkupSafe", ++ name="markupsafe", + cmdclass={"build_ext": ve_build_ext}, + ext_modules=ext_modules if with_binary else [], + )