git: 8d0bb7a0446a - main - archivers/py-blosc2: Update to 3.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 25 Dec 2024 19:18:52 UTC
The branch main has been updated by sunpoet:

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

commit 8d0bb7a0446a948b66bad1be85097f8f24e1778d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-25 18:47:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-12-25 19:15:11 +0000

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

diff --git a/archivers/py-blosc2/Makefile b/archivers/py-blosc2/Makefile
index 00a8329fd278..b75ee1b83cc7 100644
--- a/archivers/py-blosc2/Makefile
+++ b/archivers/py-blosc2/Makefile
@@ -1,26 +1,26 @@
 PORTNAME=	blosc2
-PORTVERSION=	2.7.1
+PORTVERSION=	3.0.0
 CATEGORIES=	archivers python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Python wrapper for the C-Blosc2 library
-WWW=		https://github.com/Blosc/python-blosc2
+WWW=		https://www.blosc.org/python-blosc2/ \
+		https://github.com/Blosc/python-blosc2
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	c-blosc2>=2.15.1:archivers/c-blosc2 \
-		ninja:devel/ninja \
+BUILD_DEPENDS=	c-blosc2>=2.15.2:archivers/c-blosc2 \
 		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scikit-build>=0:devel/py-scikit-build@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0:devel/py-scikit-build-core@${PY_FLAVOR}
 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} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ndindex>=0:math/py-ndindex@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numexpr>=0:math/py-numexpr@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}numpy>=1.21,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.25.0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR}
 
 USES=		cmake:indirect pkgconfig python:3.10+
@@ -28,10 +28,6 @@ USE_PYTHON=	autoplist concurrent cython pep517
 
 MAKE_ENV=	CMAKE_ARGS=-DUSE_SYSTEM_BLOSC2=ON
 
-post-patch:
-# Clean up bundled libraries
-	@${RM} -r ${WRKSRC}/blosc2/c-blosc2/
-
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
diff --git a/archivers/py-blosc2/distinfo b/archivers/py-blosc2/distinfo
index 8a8f87a2df7b..a167e705f360 100644
--- a/archivers/py-blosc2/distinfo
+++ b/archivers/py-blosc2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722711177
-SHA256 (blosc2-2.7.1.tar.gz) = 34db4d41543b16e894d507d6c7d10a9a67c9dd420ff40b072f7c39185cbb8fe8
-SIZE (blosc2-2.7.1.tar.gz) = 5149754
+TIMESTAMP = 1734888098
+SHA256 (blosc2-3.0.0.tar.gz) = d8c03a09ed11b644b48bf050bd108972ec56ac9cbc3f2aedca077255ed81ac69
+SIZE (blosc2-3.0.0.tar.gz) = 7331805
diff --git a/archivers/py-blosc2/files/patch-pyproject.toml b/archivers/py-blosc2/files/patch-pyproject.toml
index a69707363ef2..36d48c2cfae1 100644
--- a/archivers/py-blosc2/files/patch-pyproject.toml
+++ b/archivers/py-blosc2/files/patch-pyproject.toml
@@ -1,15 +1,13 @@
---- pyproject.toml.orig	2024-04-01 17:37:16 UTC
+--- pyproject.toml.orig	2024-12-12 13:22:18 UTC
 +++ pyproject.toml
-@@ -2,10 +2,8 @@ requires = [
+@@ -1,8 +1,8 @@ requires = [
+ [build-system]
  requires = [
-     "setuptools",
-     "scikit-build",
+     "scikit-build-core",
 -    "cython>=3",
--    "cmake",
--    "ninja",
 -    "numpy>=2.0.0",
 +    "cython",
 +    "numpy",
  ]
- build-backend = "setuptools.build_meta"
+ build-backend = "scikit_build_core.build"