commit:     6089c2ce07da6e233920bd12c21a5d638c6e61ec
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 29 02:18:50 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 29 02:53:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6089c2ce

dev-libs/c-blosc2: Bump to 2.22.0

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

 dev-libs/c-blosc2/Manifest               |  1 +
 dev-libs/c-blosc2/c-blosc2-2.22.0.ebuild | 61 ++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 68040fda6b6a..f435c8ac1481 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -1,2 +1,3 @@
 DIST c-blosc2-2.21.2.gh.tar.gz 3338027 BLAKE2B 
6634af615117f0890c19be92f08d1530151322636cefb79adfe560ed58c9303febd588f0d0c9ecad7536243c26b49d3eb1ec5c54157019262f9856bbc8efcb70
 SHA512 
744f0c0b7e33c9c1982f908273135e0347a2cde132f216de953cc8148e85c40828568b120d53fb62097fad459cf89adadbc66d8883d3f2e23093da8ae03eb62c
 DIST c-blosc2-2.21.3.gh.tar.gz 3337783 BLAKE2B 
65a30f2838c7e393d37ea4e6795a9a188c2177d0b69d5bfb480e1ca40fdcb2fb07172848eee8fa01873f422ed8198fe444ee50aa8de392d91924187c85d0673d
 SHA512 
521dd7342d5a9a734487b23857c9f2fb8e45e5498c79291582a43e829693f7c4a882aea1aedc48ffc3b4e269357a9b787e5f9969c4494dd97a1d27c2838a2b7d
+DIST c-blosc2-2.22.0.gh.tar.gz 3337965 BLAKE2B 
4518913dd0daaf9cdb71c703f7524daec49021d1b82835b8e072f57114c1c6eff81710c6e01dcb8d02a514aee8bfc355bd3ce6fbf01a829ede8d8a38d59acbee
 SHA512 
10471a3bdefc0b8e6a9f02655d3a5e922faab9a73127685f5996643c2e85f8da7733c273083a600d7451f9381ed289922e06dcf9c9e31422a5508386254f610d

diff --git a/dev-libs/c-blosc2/c-blosc2-2.22.0.ebuild 
b/dev-libs/c-blosc2/c-blosc2-2.22.0.ebuild
new file mode 100644
index 000000000000..dbdf310d06fd
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.22.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 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/6"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~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}
+"
+
+# Tests fail in parallel, https://github.com/Blosc/c-blosc2/issues/432
+CTEST_JOBS=1
+
+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
+}

Reply via email to