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,27 +1,27 @@ PORTNAME= pygeos PORTVERSION= 0.14 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= GEOS wrapped in numpy ufuncs WWW= https://github.com/pygeos/pygeos LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.13,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} 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} {} + .include 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(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,11 +1,13 @@ --- 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", ] build-backend = "setuptools.build_meta"