git: 360b47ba5b74 - main - archivers/py-blosc2: Update to 2.6.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 05 Apr 2024 00:44:49 UTC
The branch main has been updated by sunpoet:

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

commit 360b47ba5b74442ae918afc17120dca68672d1fc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-05 00:39:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-05 00:39:25 +0000

    archivers/py-blosc2: Update to 2.6.0
    
    Changes:        https://github.com/Blosc/python-blosc2/releases
---
 archivers/py-blosc2/Makefile                   | 11 +++++++++--
 archivers/py-blosc2/distinfo                   |  6 +++---
 archivers/py-blosc2/files/patch-pyproject.toml | 12 ++++++------
 3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/archivers/py-blosc2/Makefile b/archivers/py-blosc2/Makefile
index 535905e7c63d..60bea12b2e07 100644
--- a/archivers/py-blosc2/Makefile
+++ b/archivers/py-blosc2/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	blosc2
-PORTVERSION=	2.5.1
+PORTVERSION=	2.6.0
 CATEGORIES=	archivers python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -20,6 +20,7 @@ BUILD_DEPENDS=	c-blosc2>=2.13.1:archivers/c-blosc2 \
 LIB_DEPENDS=	libblosc2.so:archivers/c-blosc2
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ndindex>=1.4:math/py-ndindex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numexpr>=0:math/py-numexpr@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=1.20.3,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR}
 
@@ -35,4 +36,10 @@ post-patch:
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+IGNORE=		requires Python 3.10+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/archivers/py-blosc2/distinfo b/archivers/py-blosc2/distinfo
index 09d7193c3442..9434ce4e5183 100644
--- a/archivers/py-blosc2/distinfo
+++ b/archivers/py-blosc2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708448980
-SHA256 (blosc2-2.5.1.tar.gz) = 47d5df50e7286edf81e629ece35f87f13f55c13c5e8545832188c420c75d1659
-SIZE (blosc2-2.5.1.tar.gz) = 4676483
+TIMESTAMP = 1712084474
+SHA256 (blosc2-2.6.0.tar.gz) = 9e4da425632e5588595998a55ab9766e8ac1434089bf41e6dca0ac0b3706a25c
+SIZE (blosc2-2.6.0.tar.gz) = 5103430
diff --git a/archivers/py-blosc2/files/patch-pyproject.toml b/archivers/py-blosc2/files/patch-pyproject.toml
index 1b302868cb48..d9f3338efdfa 100644
--- a/archivers/py-blosc2/files/patch-pyproject.toml
+++ b/archivers/py-blosc2/files/patch-pyproject.toml
@@ -1,15 +1,15 @@
---- pyproject.toml.orig	2023-11-08 15:10:58 UTC
+--- pyproject.toml.orig	2024-04-01 17:37:16 UTC
 +++ pyproject.toml
-@@ -2,10 +2,8 @@
+@@ -2,10 +2,8 @@ requires = [
  requires = [
      "setuptools",
      "scikit-build",
 -    "cython>=3",
 -    "cmake",
 -    "ninja",
--    "oldest-supported-numpy"]
+-    "numpy>=2.0.0rc1",
 +    "cython",
-+]
++    "numpy",
+ ]
+ build-backend = "setuptools.build_meta"
  
- [project]
- name = "blosc2"