From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1567919-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E233615814C
	for <garchives@archives.gentoo.org>; Sun,  5 Nov 2023 05:36:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B8C692BC01A;
	Sun,  5 Nov 2023 05:36:21 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9CF172BC01A
	for <gentoo-commits@lists.gentoo.org>; Sun,  5 Nov 2023 05:36:21 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id AF753335CE3
	for <gentoo-commits@lists.gentoo.org>; Sun,  5 Nov 2023 05:36:20 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id EBBE512C2
	for <gentoo-commits@lists.gentoo.org>; Sun,  5 Nov 2023 05:36:18 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1699162146.a5042aa1ef7986ec8428d3b58ff33c870c0597f9.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/c-blosc2/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/c-blosc2/Manifest dev-libs/c-blosc2/c-blosc2-2.11.0.ebuild
X-VCS-Directories: dev-libs/c-blosc2/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: a5042aa1ef7986ec8428d3b58ff33c870c0597f9
X-VCS-Branch: master
Date: Sun,  5 Nov 2023 05:36:18 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 626441e5-6cef-4643-8b01-a0964e59e9e0
X-Archives-Hash: dec359b4e2dfc8c9194018eb0d36523d

commit:     a5042aa1ef7986ec8428d3b58ff33c870c0597f9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  5 05:29:06 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov  5 05:29:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5042aa1

dev-libs/c-blosc2: Bump to 2.11.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-libs/c-blosc2/Manifest               |  1 +
 dev-libs/c-blosc2/c-blosc2-2.11.0.ebuild | 67 ++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index a9d628bf5387..84d47c2ef96d 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -2,4 +2,5 @@ DIST c-blosc2-2.10.2.gh.tar.gz 3142525 BLAKE2B 1bd3f4c10c9c2b9d228499d41e5f3ea2c
 DIST c-blosc2-2.10.3.gh.tar.gz 3142852 BLAKE2B d1c947d5a2913929d6eb8713fb750937c50f25bc7858576831eecb7ffb996238821435e080944da332d51f55eff9a714c10571c09def8170816be67ffdb779ae SHA512 ae1d8d6aae1cb58f954491733b1667a6280384de705795d181aada9ffd9d8a922b715f22ad12bc7f0fd2799b46e70a7c21a8253de74445f3013a6d2136579ae0
 DIST c-blosc2-2.10.4.gh.tar.gz 3142948 BLAKE2B 3c25ed6540b080c385e383c36dab6d4a754130b1e69ad358e2b56ef1988b81bbc1fd0749d86bbe126fdf8cdbf55384a9ebf36e1b264c751dc9a1e74501c20365 SHA512 85247c3fb42a90e10a213d7fa62be17fb1156d0d68fd9ab2fd1757e0b41f81d7b4cf73d67e542eefcd812f8589eda81fab34c0ab2d5a0634563b6408313b0f74
 DIST c-blosc2-2.10.5.gh.tar.gz 3144174 BLAKE2B a680def405f2383636185ab1b71a42e042dd0c71025bfc898b48f148f4a6bf27cbd38f29512caae9ff5b58f70cb35289b609c84b132c0795915d1fe6c71b3feb SHA512 bc004fe2132a8e36963437d5279506c2f79dcbf11ee1a768954c20d1265d120dc85e67952b567e716105c5716922da8ee8cffd0a5d44bc67093a4cab3075e322
+DIST c-blosc2-2.11.0.gh.tar.gz 3145115 BLAKE2B f2c375d303efe732dbb101c671560e40c584cdd546f481159b7317af775964f3c7fbdb540f86355ac1c6d345d7a494cfa0b9f1afcab2b04f7b96b127491cac3a SHA512 df88b00a234b3753d97483169931a3ad9d1cc833bb13ec6f766e610ae2601577501ba824a4256bd35d4a50b3730afaa519bb24594707fedd8de6cbe9133e9799
 DIST c-blosc2-2.9.3.gh.tar.gz 3139809 BLAKE2B 740bfbc3cd1416d0863f6939ba4b5e27b2ae7947a407838e4061ef42c005ee255abdd8bbcbecb25123b7ff50ece62493ad3b5a84d4e02a65e1791c9007cf5b5d SHA512 30e792ba982d66936813c2dc56f85ee17a1a73ec475c15d6448cc1f5ac88f917f7a823e4b7b59c1271b1a9ee1ddd1f15fb74d6c0fa61d653b16d1a05209dfde4

diff --git a/dev-libs/c-blosc2/c-blosc2-2.11.0.ebuild b/dev-libs/c-blosc2/c-blosc2-2.11.0.ebuild
new file mode 100644
index 000000000000..af8b2fdc4f2c
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.11.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Blocking, shuffling and lossless compression library"
+HOMEPAGE="
+	https://www.blosc.org/c-blosc2/c-blosc2.html
+	https://github.com/Blosc/c-blosc2/
+"
+SRC_URI="
+	https://github.com/Blosc/c-blosc2/archive/v${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0/1"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test +zlib +zstd"
+REQUIRED_USE="test? ( zlib zstd )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	>=app-arch/lz4-1.7.5:=
+	zlib? ( sys-libs/zlib:= )
+	zstd? ( app-arch/zstd:= )
+"
+RDEPEND="
+	${DEPEND}
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.9.3-no-unaligned.patch
+)
+
+src_configure() {
+	# remove bundled libs (just in case)
+	rm -rf internal-complibs || die
+
+	local mycmakeargs=(
+		-DBUILD_STATIC=OFF
+		-DBUILD_TESTS=$(usex test)
+		-DBUILD_BENCHMARKS=OFF
+		-DBUILD_EXAMPLES=OFF
+		-DBUILD_FUZZERS=OFF
+		-DDEACTIVATE_ZLIB=$(usex !zlib)
+		-DDEACTIVATE_ZSTD=$(usex !zstd)
+		-DPREFER_EXTERNAL_LZ4=ON
+		-DPREFER_EXTERNAL_ZLIB=ON
+		-DPREFER_EXTERNAL_ZSTD=ON
+
+		# force regular zlib, at least for  the time being
+		-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB_NG=ON
+
+		# upstream overrides CMAKE_C_FLAGS, preventing ${CFLAGS} defaults
+		# from applying, https://github.com/Blosc/c-blosc2/issues/433
+		-DCMAKE_C_FLAGS="${CFLAGS}"
+	)
+	cmake_src_configure
+}
+
+src_test() {
+	# Tests fail in parallel, https://github.com/Blosc/c-blosc2/issues/432
+	MAKEOPTS=-j1 cmake_src_test
+}