git: f53067546bb4 - main - archivers/py-zlib-ng: Update 0.5.1 => 1.0.0

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 13 Sep 2025 21:39:54 UTC
The branch main has been updated by vvd:

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

commit f53067546bb48b606fb6adcb007d7ad3c0636b88
Author:     Oleg Sidorkin <osidorkin@gmail.com>
AuthorDate: 2025-09-13 21:38:05 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-09-13 21:38:05 +0000

    archivers/py-zlib-ng: Update 0.5.1 => 1.0.0
    
    Changelog:
    https://github.com/pycompression/python-zlib-ng/releases/tag/v1.0.0
    
    PR:             289518
    o-authored-by:  Vladimir Druzenko <vvd@FreeBSD.org>
---
 archivers/py-zlib-ng/Makefile                      | 10 ++++----
 archivers/py-zlib-ng/distinfo                      |  6 ++---
 archivers/py-zlib-ng/files/patch-pyproject.toml    | 27 ++++++++++++++++++----
 .../patch-src_zlib__ng_zlib-ng_CMakeLists.txt      | 10 ++++----
 4 files changed, 34 insertions(+), 19 deletions(-)

diff --git a/archivers/py-zlib-ng/Makefile b/archivers/py-zlib-ng/Makefile
index 9da7a3a139b6..402019eae818 100644
--- a/archivers/py-zlib-ng/Makefile
+++ b/archivers/py-zlib-ng/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	zlib-ng
-DISTVERSION=	0.5.1
+DISTVERSION=	1.0.0
 CATEGORIES=	archivers python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	zlib_ng-${PORTVERSION}
+DISTNAME=	zlib_ng-${DISTVERSION}
 
 MAINTAINER=	osidorkin@gmail.com
 COMMENT=	Python bindings for the zlib-ng library
@@ -12,11 +12,11 @@ WWW=		https://github.com/pycompression/python-zlib-ng
 LICENSE=	PSFL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=51:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}versioningit>=2.0.0:devel/py-versioningit@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 
-USES=		cmake:indirect python
+USES=		cmake:indirect python:3.10+
 USE_PYTHON=	autoplist pep517
 
 OPTIONS_DEFINE=			SYSTEM_ZLIB_NG
diff --git a/archivers/py-zlib-ng/distinfo b/archivers/py-zlib-ng/distinfo
index 42f8c0e90bf8..bad8596343f8 100644
--- a/archivers/py-zlib-ng/distinfo
+++ b/archivers/py-zlib-ng/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1727264547
-SHA256 (zlib_ng-0.5.1.tar.gz) = 32a46649e8efc21ddd74776a55366a8d8be4e3a95b93dc1f0ffe3880718990d9
-SIZE (zlib_ng-0.5.1.tar.gz) = 2436421
+TIMESTAMP = 1757614406
+SHA256 (zlib_ng-1.0.0.tar.gz) = c753cea73f9e803c246e9bf01a59eb652897ed8a19334ada0f968394c7f61650
+SIZE (zlib_ng-1.0.0.tar.gz) = 5799954
diff --git a/archivers/py-zlib-ng/files/patch-pyproject.toml b/archivers/py-zlib-ng/files/patch-pyproject.toml
index ad13be9539be..3764a3918481 100644
--- a/archivers/py-zlib-ng/files/patch-pyproject.toml
+++ b/archivers/py-zlib-ng/files/patch-pyproject.toml
@@ -1,9 +1,26 @@
---- pyproject.toml.orig	2024-08-09 12:41:18 UTC
+--- pyproject.toml.orig	2025-09-10 11:41:02 UTC
 +++ pyproject.toml
-@@ -1,5 +1,5 @@
+@@ -1,12 +1,11 @@
  [build-system]
--requires = ["setuptools>=64", "versioningit>=1.1.0"]
-+requires = ["setuptools>=63", "versioningit>=1.1.0"]
+-requires = ["setuptools>=77", "setuptools-scm>=8"]
++requires = ["setuptools>=63", "setuptools-scm>=8"]
  build-backend = "setuptools.build_meta"
  
- [tool.versioningit.vcs]
+ [project]
+ name = "zlib-ng"
+ dynamic = ["version"]
+ description = "Drop-in replacement for zlib and gzip modules using zlib-ng"
+-license="PSF-2.0"
+ keywords=["zlib-ng", "zlib", "compression", "deflate", "gzip"]
+ authors = [{name = "Leiden University Medical Center"},
+            {email = "r.h.p.vorderman@lumc.nl"}]
+@@ -31,6 +30,9 @@ urls.documentation = "https://python-zlib-ng.readthedo
+ ]
+ urls.homepage = "https://github.com/pycompression/python-zlib-ng"
+ urls.documentation = "https://python-zlib-ng.readthedocs.io"
++
++[project.license]
++text = "PSF-2.0"
+ 
+ [tool.setuptools_scm]
+ version_file = "src/zlib_ng/_version.py"
diff --git a/archivers/py-zlib-ng/files/patch-src_zlib__ng_zlib-ng_CMakeLists.txt b/archivers/py-zlib-ng/files/patch-src_zlib__ng_zlib-ng_CMakeLists.txt
index 9fea130f90fb..e7f6c5b65751 100644
--- a/archivers/py-zlib-ng/files/patch-src_zlib__ng_zlib-ng_CMakeLists.txt
+++ b/archivers/py-zlib-ng/files/patch-src_zlib__ng_zlib-ng_CMakeLists.txt
@@ -1,15 +1,13 @@
---- src/zlib_ng/zlib-ng/CMakeLists.txt.orig	2023-12-25 16:17:33 UTC
+--- src/zlib_ng/zlib-ng/CMakeLists.txt.orig	2025-09-10 11:41:03 UTC
 +++ src/zlib_ng/zlib-ng/CMakeLists.txt
-@@ -74,9 +74,9 @@ option(ZLIB_COMPAT "Compile with zlib compatible API" 
+@@ -86,8 +86,8 @@ option(ZLIB_COMPAT "Compile with zlib compatible API" 
  #
  option(WITH_GZFILEOP "Compile with support for gzFile related functions" ON)
  option(ZLIB_COMPAT "Compile with zlib compatible API" OFF)
 -option(ZLIB_ENABLE_TESTS "Build test binaries" ON)
 -option(ZLIBNG_ENABLE_TESTS "Test zlib-ng specific API" ON)
--option(WITH_GTEST "Build gtest_zlib" ON)
 +option(ZLIB_ENABLE_TESTS "Build test binaries" OFF)
 +option(ZLIBNG_ENABLE_TESTS "Test zlib-ng specific API" OFF)
-+option(WITH_GTEST "Build gtest_zlib" OFF)
- option(WITH_FUZZERS "Build test/fuzz" OFF)
- option(WITH_BENCHMARKS "Build test/benchmarks" OFF)
  option(WITH_BENCHMARK_APPS "Build application benchmarks" OFF)
+ option(WITH_OPTIM "Build with optimisation" ON)
+ option(WITH_REDUCED_MEM "Reduced memory usage for special cases (reduces performance)" OFF)