git: 2f465abadb26 - main - devel/py-pysdl2: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 May 2024 14:17:45 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f465abadb26c55dbfb080af2aca0e30368662cf
commit 2f465abadb26c55dbfb080af2aca0e30368662cf
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 13:59:39 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 13:59:39 +0000
devel/py-pysdl2: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
---
devel/py-pysdl2/Makefile | 6 +++++-
devel/py-pysdl2/files/patch-setup.py | 11 +++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/devel/py-pysdl2/Makefile b/devel/py-pysdl2/Makefile
index 8ef1cb7fe0bb..ba7b74868707 100644
--- a/devel/py-pysdl2/Makefile
+++ b/devel/py-pysdl2/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pysdl2
PORTVERSION= 0.9.16
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +14,11 @@ LICENSE= PD CC0-1.0 ZLIB
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/doc/copying.rst
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= dos2unix python sdl
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
USE_SDL= gfx2 image2 mixer2 sdl2 ttf2
NO_ARCH= yes
diff --git a/devel/py-pysdl2/files/patch-setup.py b/devel/py-pysdl2/files/patch-setup.py
new file mode 100644
index 000000000000..01647f4c503c
--- /dev/null
+++ b/devel/py-pysdl2/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2023-06-28 14:26:02 UTC
++++ setup.py
+@@ -15,7 +15,7 @@ if __name__ == "__main__":
+ long_desc = re.sub(r"\[!\[Build Status(.*?)\n", "", long_desc)
+
+ setupdata = {
+- "name": "PySDL2",
++ "name": "pysdl2",
+ "version": VERSION,
+ "description": "Python SDL2 bindings",
+ "long_description": long_desc,