commit:     30c7b604664732a409de694a6397d0604ff46606
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 30 06:47:34 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 30 07:04:01 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30c7b604

dev-libs/c-blosc2: Bump to 2.23.0

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

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

diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 5218ff7398be..1603b1ed81cc 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -1 +1,2 @@
 DIST c-blosc2-2.22.0.gh.tar.gz 3337965 BLAKE2B 
4518913dd0daaf9cdb71c703f7524daec49021d1b82835b8e072f57114c1c6eff81710c6e01dcb8d02a514aee8bfc355bd3ce6fbf01a829ede8d8a38d59acbee
 SHA512 
10471a3bdefc0b8e6a9f02655d3a5e922faab9a73127685f5996643c2e85f8da7733c273083a600d7451f9381ed289922e06dcf9c9e31422a5508386254f610d
+DIST c-blosc2-2.23.0.gh.tar.gz 3337937 BLAKE2B 
a40ad07f3be7cb839b459c98e9cc04d29626b98e4a601e51277223fcb5cf5855c7bbd98052c0b867b157ee14e6e7a0a5dc1e0e849cbb129d995353a8ce598149
 SHA512 
199f6aa6bcc061c38523e73c26bdc913ac65e446f3390e65bd687973a8da6cb25b35b2614a1a4b51c287250b021454f2875378da0ab8ec16525fd7510b1c4686

diff --git a/dev-libs/c-blosc2/c-blosc2-2.23.0.ebuild 
b/dev-libs/c-blosc2/c-blosc2-2.23.0.ebuild
new file mode 100644
index 000000000000..37609498688b
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.23.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2026 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://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/7"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="test +zlib +zstd"
+REQUIRED_USE="test? ( zlib zstd )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       >=app-arch/lz4-1.7.5:=
+       zlib? ( virtual/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