git: df73fabc1ed6 - main - lang/cython3: Update to 3.0.8

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 14:10:25 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df73fabc1ed660cccae126c5aee8abc328f82285

commit df73fabc1ed660cccae126c5aee8abc328f82285
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-09 13:45:09 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 14:05:25 +0000

    lang/cython3: Update to 3.0.8
    
    - Convert to USE_PYTHON=pep517
    
    Changes:        https://github.com/cython/cython/releases
                    https://github.com/cython/cython/blob/master/CHANGES.rst
---
 lang/cython3/Makefile             |  9 ++++++---
 lang/cython3/distinfo             |  6 +++---
 lang/cython3/files/patch-setup.py | 11 +++++++++++
 3 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/lang/cython3/Makefile b/lang/cython3/Makefile
index 323be1177f7d..6ad8e52318f9 100644
--- a/lang/cython3/Makefile
+++ b/lang/cython3/Makefile
@@ -1,11 +1,11 @@
 PORTNAME=	cython
-PORTVERSION=	3.0.7
+PORTVERSION=	3.0.8
 CATEGORIES=	lang python
 MASTER_SITES=	PYPI \
 		https://github.com/cython/cython/releases/download/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	Cython-${PORTVERSION}
 PKGNAMESUFFIX=	3
+DISTNAME=	Cython-${PORTVERSION}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Compiler for Writing C Extensions for the Python Language
@@ -15,8 +15,11 @@ WWW=		https://cython.org/ \
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		compiler:c11 python
-USE_PYTHON=	allflavors autoplist concurrent distutils
+USE_PYTHON=	allflavors autoplist concurrent pep517
 
 CONFLICTS_INSTALL=	py*-cython py*-cython-devel # bin/cygdb bin/cython bin/cythonize
 
diff --git a/lang/cython3/distinfo b/lang/cython3/distinfo
index 786183497b79..9810d3ff4828 100644
--- a/lang/cython3/distinfo
+++ b/lang/cython3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1703227810
-SHA256 (Cython-3.0.7.tar.gz) = fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213
-SIZE (Cython-3.0.7.tar.gz) = 2741910
+TIMESTAMP = 1709390396
+SHA256 (Cython-3.0.8.tar.gz) = 8333423d8fd5765e7cceea3a9985dd1e0a5dfeb2734629e1a2ed2d6233d39de6
+SIZE (Cython-3.0.8.tar.gz) = 2744096
diff --git a/lang/cython3/files/patch-setup.py b/lang/cython3/files/patch-setup.py
new file mode 100644
index 000000000000..4c5b5f8a7961
--- /dev/null
+++ b/lang/cython3/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2024-01-10 09:54:48 UTC
++++ setup.py
+@@ -243,7 +243,7 @@ def run_build():
+ 
+     from Cython import __version__ as version
+     setup(
+-        name='Cython',
++        name='cython',
+         version=version,
+         url='https://cython.org/',
+         author='Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.',