Skip to content

Commit

Permalink
textproc/py-markupsafe: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed May 13, 2024
1 parent ecd5c6e commit 13ddac7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion textproc/py-markupsafe/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= markupsafe
PORTVERSION= 2.1.5
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -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} {} +
Expand Down
11 changes: 11 additions & 0 deletions textproc/py-markupsafe/files/patch-setup.py
Original file line number Diff line number Diff line change
@@ -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 [],
)

0 comments on commit 13ddac7

Please sign in to comment.