summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/py-markupsafe/Makefile6
-rw-r--r--textproc/py-markupsafe/files/patch-setup.py11
2 files changed, 16 insertions, 1 deletions
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 [],
+ )