git: cf55aa12e849 - main - graphics/py-pygeos: Allow build with cython 3.x

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 30 Jun 2026 22:17:06 UTC
The branch main has been updated by sunpoet:

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

commit cf55aa12e84964ad9c0fd6300e184c86a6a1d46e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-06-30 22:13:31 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-06-30 22:13:31 +0000

    graphics/py-pygeos: Allow build with cython 3.x
    
    - Change from USE_PYTHON=cython0 to USE_PYTHON=cython
    - Bump PORTREVISION for package change
---
 graphics/py-pygeos/Makefile                   |  4 ++--
 graphics/py-pygeos/files/patch-cython         | 11 +++++++++++
 graphics/py-pygeos/files/patch-pyproject.toml |  6 ++++--
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/graphics/py-pygeos/Makefile b/graphics/py-pygeos/Makefile
index 871a56ced888..8e8603733895 100644
--- a/graphics/py-pygeos/Makefile
+++ b/graphics/py-pygeos/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	pygeos
 PORTVERSION=	0.14
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	graphics python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -19,7 +19,7 @@ LIB_DEPENDS=	libgeos.so:graphics/geos
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.13,1:math/py-numpy@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent cython0 pep517
+USE_PYTHON=	autoplist concurrent cython pep517
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/graphics/py-pygeos/files/patch-cython b/graphics/py-pygeos/files/patch-cython
new file mode 100644
index 000000000000..efeec2c275b2
--- /dev/null
+++ b/graphics/py-pygeos/files/patch-cython
@@ -0,0 +1,11 @@
+--- pygeos/_geos.pyx.orig	2022-12-12 08:21:17 UTC
++++ pygeos/_geos.pyx
+@@ -8,7 +8,7 @@ from pygeos import GEOSException
+ from pygeos import GEOSException
+ 
+ 
+-cdef void geos_message_handler(const char* message, void* userdata):
++cdef void geos_message_handler(const char* message, void* userdata) noexcept:
+     snprintf(<char *>userdata, 1024, "%s", message)
+ 
+ 
diff --git a/graphics/py-pygeos/files/patch-pyproject.toml b/graphics/py-pygeos/files/patch-pyproject.toml
index 6d27f6fc0b84..f47adfe3ef32 100644
--- a/graphics/py-pygeos/files/patch-pyproject.toml
+++ b/graphics/py-pygeos/files/patch-pyproject.toml
@@ -1,10 +1,12 @@
 --- pyproject.toml.orig	2022-12-12 08:21:17 UTC
 +++ pyproject.toml
-@@ -2,7 +2,7 @@
+@@ -1,8 +1,8 @@ requires = [
+ [build-system]
  # numpy and Cython are required to execute setup.py to build Cython extensions
  requires = [
-     "Cython~=0.29",
+-    "Cython~=0.29",
 -    "oldest-supported-numpy",
++    "Cython>=0.29",
 +    "numpy",
      "setuptools>=61.0.0",
  ]