commit:     07861668b6846ea638390dc978fed81cd39325e7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 25 04:09:32 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 25 04:35:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07861668

dev-libs/c-blosc2: Bump to 2.19.0

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

 dev-libs/c-blosc2/Manifest               |  1 +
 dev-libs/c-blosc2/c-blosc2-2.19.0.ebuild | 63 ++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 862875629ff1..c063128e096c 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -1,2 +1,3 @@
 DIST c-blosc2-2.17.1.gh.tar.gz 3292519 BLAKE2B 
00adf947ed7f42bae807bb5b85f23e0be08df87ed0d05032e83b61726f520b542233672e9d5efc18dd842e509a67dfc49d6d5adccdb36cd5966a300fe754cc74
 SHA512 
f5f55cd7aecc397e57183e3000ccfef12544b69493d8f0d055ac18878d7b39b06a1c3ecacfef663b120b13170a822dce8e29c2903d18307b2fe30644826d88f7
 DIST c-blosc2-2.18.0.gh.tar.gz 3298036 BLAKE2B 
a5c072e7ec337b1ecc73e2d9a6fd5272af3c08200af52e3b539142eb1d26bf684669a3f97298173b5d281c97def0f91a4df2104e738e45db832b6d688a3b24aa
 SHA512 
78c9795ba00fde0ac9e5831646984e11867a76a28bae9f9069afeffc8841d03ad31ff54b833ab183485260109aee872119a52403b31f579549701b87f84ba52d
+DIST c-blosc2-2.19.0.gh.tar.gz 3300743 BLAKE2B 
44ef2150bf618c1bac1ff9000f6f12ae3e6310026a82eac6efb26bc96ef4e3c7ec40d59d18c75c4e801ede5acce14c71403b230ca436b4efa0db3550902bb490
 SHA512 
92a92f251666238e741970b1ec7a46213d0755543e29ee160a2b20ba0b36aade7cc8971e5df7ea1aefe62c32b765efbcd60b6b20d7f697f086f6004ed65bd2a1

diff --git a/dev-libs/c-blosc2/c-blosc2-2.19.0.ebuild 
b/dev-libs/c-blosc2/c-blosc2-2.19.0.ebuild
new file mode 100644
index 000000000000..00ff5d98f4f1
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.19.0.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/4"
+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
+       MAKEOPTS=-j1 cmake_src_test
+}

Reply via email to