diff --git a/graphics/py-gdal/Makefile b/graphics/py-gdal/Makefile index f00ea11f5844..e214f76adac3 100644 --- a/graphics/py-gdal/Makefile +++ b/graphics/py-gdal/Makefile @@ -1,37 +1,37 @@ PORTNAME= gdal PORTVERSION= 3.12.4 PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Python binding for GDAL WWW= https://gdal.org/ \ https://github.com/OSGeo/gdal LICENSE= MIT BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libgdal.so:graphics/gdal USES= compiler:c++11-lang cpe python USE_PYTHON= autoplist concurrent pep517 CPE_VENDOR= osgeo OPTIONS_DEFINE= NUMPY OPTIONS_DEFAULT=NUMPY NUMPY_DESC= Enable array support via NumPy -NUMPY_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.0.0,1:math/py-numpy@${PY_FLAVOR} +NUMPY_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2.0.0,1:math/py-numpy@${PY_FLAVOR} NUMPY_MAKE_ENV= GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY=no NUMPY_MAKE_ENV_OFF= GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY=yes NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.0.0,1:math/py-numpy@${PY_FLAVOR} NUMPY_USES= fortran post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/graphics/py-gdal/files/patch-pyproject.toml b/graphics/py-gdal/files/patch-pyproject.toml index 1a3e906318f9..e44ca430028d 100644 --- a/graphics/py-gdal/files/patch-pyproject.toml +++ b/graphics/py-gdal/files/patch-pyproject.toml @@ -1,27 +1,26 @@ ---- pyproject.toml.orig 2025-07-01 09:09:51 UTC +--- pyproject.toml.orig 2026-04-24 12:16:30 UTC +++ pyproject.toml -@@ -1,12 +1,10 @@ +@@ -1,12 +1,12 @@ [build-system] -requires = ["setuptools>=77.0.3", -- "wheel", -- "oldest-supported-numpy; python_version=='3.8'", -- "numpy >=2.0.0rc1; python_version>='3.9'"] +requires = ["setuptools>=61.0.0", -+ "wheel"] + "wheel", + "oldest-supported-numpy; python_version=='3.8'", + "numpy >=2.0.0rc1; python_version>='3.9'"] build-backend = "setuptools.build_meta" [project] -name = "GDAL" +name = "gdal" dynamic = ["version", "scripts"] authors = [ {name = "Frank Warmerdam"}, -@@ -19,7 +17,7 @@ keywords = ["gis", "raster", "vector"] +@@ -19,7 +19,7 @@ keywords = ["gis", "raster", "vector"] description = "GDAL: Geospatial Data Abstraction Library" readme = "README.rst" keywords = ["gis", "raster", "vector"] -license = "MIT" +license = {text = "MIT"} classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", diff --git a/graphics/py-gdal/files/patch-setup.py b/graphics/py-gdal/files/patch-setup.py index 3e1cc161bf41..959f5812418b 100644 --- a/graphics/py-gdal/files/patch-setup.py +++ b/graphics/py-gdal/files/patch-setup.py @@ -1,11 +1,11 @@ ---- setup.py.orig 2024-05-06 12:37:20 UTC +--- setup.py.orig 2026-04-24 12:16:30 UTC +++ setup.py -@@ -373,7 +373,7 @@ readme = open('README.rst', encoding="utf-8").read() +@@ -422,7 +422,7 @@ readme = open('README.rst', encoding="utf-8").read() readme = open('README.rst', encoding="utf-8").read() -name = 'GDAL' +name = 'gdal' author = "Frank Warmerdam" author_email = "warmerdam@pobox.com" maintainer = "GDAL contributors"