1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

devel/py-simpleparse: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2024-05-13 22:00:18 +08:00
parent 0074177e04
commit 6cd87c52f9
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= simpleparse
PORTVERSION= 2.2.4
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -10,8 +11,11 @@ COMMENT= Python EBNF parser generator (with mx.TextTools derivative)
WWW= https://simpleparse.sourceforge.net/ \
https://github.com/mcfletch/simpleparse
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}${PYTHONPREFIX_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

View File

@ -1,11 +1,14 @@
--- setup.py.orig 2020-03-07 01:30:49 UTC
--- setup.py.orig 2020-03-07 01:41:28 UTC
+++ setup.py
@@ -29,7 +29,7 @@ if sys.platform == 'win32':
@@ -29,9 +29,9 @@ if __name__ == "__main__":
)['define'] = 'BAD_STATIC_FORWARD'
if __name__ == "__main__":
- packages = find_packages(HERE)
+ packages = find_packages(exclude=['examples*', 'tests*'])
setup (
name = "SimpleParse",
- name = "SimpleParse",
+ name = "simpleparse",
version = findVersion(),
description = "A Parser Generator for Python (w/mxTextTools derivative)",
author = "Mike C. Fletcher",