git: c61cd10416d4 - main - graphics/py-pyx: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 May 2024 14:20:46 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c61cd10416d4100c6630ab970a251d833d4386a1
commit c61cd10416d4100c6630ab970a251d833d4386a1
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:01:59 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:01:59 +0000
graphics/py-pyx: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
---
graphics/py-pyx/Makefile | 6 +++++-
graphics/py-pyx/files/patch-setup.py | 11 +++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/graphics/py-pyx/Makefile b/graphics/py-pyx/Makefile
index 3edf33df0994..e86c9cd584cb 100644
--- a/graphics/py-pyx/Makefile
+++ b/graphics/py-pyx/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyx
PORTVERSION= 0.16
+PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +14,11 @@ WWW= https://pyx-project.org/ \
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= python tex
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
USE_TEX= latex:build
OPTIONS_DEFINE= KPATHSEA T1CODE
diff --git a/graphics/py-pyx/files/patch-setup.py b/graphics/py-pyx/files/patch-setup.py
new file mode 100644
index 000000000000..29ea74211ff9
--- /dev/null
+++ b/graphics/py-pyx/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2021-08-21 13:07:32 UTC
++++ setup.py
+@@ -43,7 +43,7 @@ description, long_description = __doc__.split("\n\n",
+
+ description, long_description = __doc__.split("\n\n", 1)
+
+-setup(name="PyX",
++setup(name="pyx",
+ version=pyx.version.version,
+ author="Jörg Lehmann, André Wobst",
+ author_email="pyx-devel@lists.sourceforge.net",