dev-libs/c-blosc2: Bump to 2.19.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-07-18 06:07:53 +02:00
parent ca233b67da
commit d35028e4df
2 changed files with 64 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST c-blosc2-2.19.0.gh.tar.gz 3300743 BLAKE2B 44ef2150bf618c1bac1ff9000f6f12ae3e6310026a82eac6efb26bc96ef4e3c7ec40d59d18c75c4e801ede5acce14c71403b230ca436b4efa0db3550902bb490 SHA512 92a92f251666238e741970b1ec7a46213d0755543e29ee160a2b20ba0b36aade7cc8971e5df7ea1aefe62c32b765efbcd60b6b20d7f697f086f6004ed65bd2a1
DIST c-blosc2-2.19.1.gh.tar.gz 3301977 BLAKE2B e57059d990d86e6cebaebf38931e6a6ad1c1d17339b5b4600484012011cd8bd4bf0f2b1a63a07d11b4080f23f45d354d656cf9b8c02d41b1ebfd7a1e2f532bfd SHA512 f57959e96a48598e00e327fdc7d4c692116870cdd57fb36b65d783ee8a6a451bff9580bb4e43a428bf17b8eed364a269b702ec610c8d0c3569d6c3af466a3ac3

View File

@@ -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
}