commit: 0dacc616503c1905efdb1880a993854cbaa717fb Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Sep 26 05:10:42 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Sep 26 05:10:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dacc616
dev-libs/c-blosc2: Bump to 2.21.3 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-libs/c-blosc2/Manifest | 1 + dev-libs/c-blosc2/c-blosc2-2.21.3.ebuild | 63 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest index 28cf2a073559..0d28c180be61 100644 --- a/dev-libs/c-blosc2/Manifest +++ b/dev-libs/c-blosc2/Manifest @@ -1,2 +1,3 @@ DIST c-blosc2-2.20.0.gh.tar.gz 3302408 BLAKE2B 33d71891265e31ffa1e1d7b55fb7934ad708343663a07acddf24e15b4f53e499c92c6a5673deb3a262cc31628d6d580381f825f1e8b562e68634b203699a557b SHA512 7c40a3b64d956a2141d482bfac65601a999e068262091c51525bde9e05a3667109c5f275688213af0caebbb439cb3004a76f45cb216a468e0793f20e04cc1ba3 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 diff --git a/dev-libs/c-blosc2/c-blosc2-2.21.3.ebuild b/dev-libs/c-blosc2/c-blosc2-2.21.3.ebuild new file mode 100644 index 000000000000..e0635df0f80a --- /dev/null +++ b/dev-libs/c-blosc2/c-blosc2-2.21.3.ebuild @@ -0,0 +1,63 @@ +# 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/5" +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} +" + +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 + cmake_src_test -j1 +}
