From nobody Tue Jan 09 00:47:51 2024
X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T8C2c1RVWz55PZG;
Tue, 9 Jan 2024 00:47:52 +0000 (UTC)
(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 4T8C2b5jW3z4H3h;
Tue, 9 Jan 2024 00:47:51 +0000 (UTC)
(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1704761271;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding;
bh=Tt+Cyi6tB0ibNjuh2O2l4W0lR2rvOXFqTayQ6PnNNXQ=;
b=kj1yQmo/Cwq9HTaL8zJkYCM5+R6xsm1U3CPG6onIfkxjiIJIQns0Iqa2TbrLxrG3hRWC+o
k0WAYYHhoVxD731Z0Ytp3E105L99nJNmpKy3Cel5UZlw91ao2cBTKv2YeEdT5w7ZgCzkyi
ASvf3GaYK0jdkMdPH6Y9Wioj99QHUCac0yfB+CK090P9KP+R6VnGO1nKI8aaTTJmkmHXvA
ai9uVpW4rjVqMrcPztpjhncEEHyzhsAo0zOjPCSjdMMGpf3S4i+MEpYj6KPw7iSRpiqgRR
YvyhnS/AQJF0WgmMPM8VCfeMYWYEXgbKfho5DCu3fI8/CKs3gpbfjzzoqs6Wiw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
s=dkim; t=1704761271;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding;
bh=Tt+Cyi6tB0ibNjuh2O2l4W0lR2rvOXFqTayQ6PnNNXQ=;
b=Nfqb1fnVjS8/SokHDF6tRKirv70k1kbLLKJS+X5gtHPZ82VraGS7mnJxdJeyeZemrkjILT
hFDAvO44Hap/Vk7lntdRmWv1tJxlZNZocU6jDVX1YFfnnZ49gQ1J7C2uJoEAiNbFEsX09Y
WQ5bTkIXbuuBAgeKeSTYfA6DhkoS4fYpCGdZgPgmrIOciQOPKPD2j8u45+OPOBZ0s8dYb4
uGwPrmPk/3rdfNQM8/tgBk3iCAWmT7jwuj0zn+tUoyInojPscq4BbVvUsyJ0NKgMtcx6lv
SfuITA6gvi+niPhBSavieTGsW7yICGNtys+7NfvkGqW/lNmhJ8Z973txfppvFg==
ARC-Authentication-Results: i=1;
mx1.freebsd.org;
none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704761271; a=rsa-sha256; cv=none;
b=vAzvTa+1vQ5G3p8Jhmaw3CLi6pwbyEjAhms76KtouaQHLO/OONEJbIKiNuZFs1Qr20RiYd
zKk7vUYcdtz59TjtZ3BHqYUG8C8+4KIsnVJM8NH9OEju9AZ3Nu4IaOoma3pdm495ZuiUKd
ZYY/rCJKwBpEnI2xeAU+aRC8xvRgyOEIm4cdju4LneM4VTuBHR+9SYZwey07z+Es7at/RD
axCwsGTuVv/qBC+vXdP0x3kHLQj8jbNtvV7ufU3v3tPYXFXH5soSqZGwuAsx/vkPA0GoVq
vTEZYLT0zfwsfzVVSah6K3o8nV2/SSkh2Gv37TtO/BRoPLmUrKOmon9fgls45Q==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T8C2b4gd3zVkG;
Tue, 9 Jan 2024 00:47:51 +0000 (UTC)
(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4090lp8C044614;
Tue, 9 Jan 2024 00:47:51 GMT
(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4090lpvN044611;
Tue, 9 Jan 2024 00:47:51 GMT
(envelope-from git)
Date: Tue, 9 Jan 2024 00:47:51 GMT
Message-Id: <202401090047.4090lpvN044611@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
dev-commits-ports-main@FreeBSD.org
From: Koichiro Iwao
Subject: git: 4e26a09cbb6c - main - archivers/py-zlib-ng: Add new
port
List-Id: Commits to the main branch of the FreeBSD ports repository
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main
List-Help:
List-Post:
List-Subscribe:
List-Unsubscribe:
Sender: owner-dev-commits-ports-main@freebsd.org
X-BeenThere: dev-commits-ports-main@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: meta
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 4e26a09cbb6c06055f055fec19d70e2dbd0838e8
Auto-Submitted: auto-generated
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4e26a09cbb6c06055f055fec19d70e2dbd0838e8
commit 4e26a09cbb6c06055f055fec19d70e2dbd0838e8
Author: Oleg Sidorkin
AuthorDate: 2023-12-11 15:57:18 +0000
Commit: Koichiro Iwao
CommitDate: 2024-01-09 00:45:44 +0000
archivers/py-zlib-ng: Add new port
PR: 275719
---
archivers/Makefile | 1 +
archivers/py-zlib-ng/Makefile | 23 ++++++++++++++++++++++
archivers/py-zlib-ng/distinfo | 3 +++
.../patch-src_zlib__ng_zlib-ng_CMakeLists.txt | 15 ++++++++++++++
archivers/py-zlib-ng/pkg-descr | 2 ++
5 files changed, 44 insertions(+)
diff --git a/archivers/Makefile b/archivers/Makefile
index 9d71854fe8c9..f46a370e2f26 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -207,6 +207,7 @@
SUBDIR += py-warctools
SUBDIR += py-xopen
SUBDIR += py-zipstream-ng
+ SUBDIR += py-zlib-ng
SUBDIR += py-zopfli
SUBDIR += py-zstandard
SUBDIR += py-zstd
diff --git a/archivers/py-zlib-ng/Makefile b/archivers/py-zlib-ng/Makefile
new file mode 100644
index 000000000000..7f1eb39f0ba9
--- /dev/null
+++ b/archivers/py-zlib-ng/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= zlib-ng
+DISTVERSION= 0.4.0
+CATEGORIES= archivers python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= osidorkin@gmail.com
+COMMENT= Python bindings for the zlib-ng library
+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}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+ cmake:devel/cmake-core
+
+USES= python:3.7+
+USE_PYTHON= autoplist pep517
+
+INSTALL_TARGET=install-strip
+
+.include
diff --git a/archivers/py-zlib-ng/distinfo b/archivers/py-zlib-ng/distinfo
new file mode 100644
index 000000000000..3721cf359a96
--- /dev/null
+++ b/archivers/py-zlib-ng/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704480695
+SHA256 (zlib-ng-0.4.0.tar.gz) = 3b730881aaeb86f9a4995de5e22499406ccf92f8508b5c017c343d27570a8c0a
+SIZE (zlib-ng-0.4.0.tar.gz) = 2458999
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
new file mode 100644
index 000000000000..9fea130f90fb
--- /dev/null
+++ b/archivers/py-zlib-ng/files/patch-src_zlib__ng_zlib-ng_CMakeLists.txt
@@ -0,0 +1,15 @@
+--- src/zlib_ng/zlib-ng/CMakeLists.txt.orig 2023-12-25 16:17:33 UTC
++++ src/zlib_ng/zlib-ng/CMakeLists.txt
+@@ -74,9 +74,9 @@ 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)
diff --git a/archivers/py-zlib-ng/pkg-descr b/archivers/py-zlib-ng/pkg-descr
new file mode 100644
index 000000000000..1b6e5a4b8d17
--- /dev/null
+++ b/archivers/py-zlib-ng/pkg-descr
@@ -0,0 +1,2 @@
+Faster zlib and gzip compatible compression and decompression by providing
+Python bindings for the zlib-ng library.