commit:     f7c8f879491f1258923ffab624bb0b47ce21e552
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 29 03:36:22 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 29 04:35:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c8f879

dev-libs/c-blosc2: Bump to 2.15.2

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

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

diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 3da20037bc96..ae0b888d024f 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -1 +1,2 @@
 DIST c-blosc2-2.15.1.gh.tar.gz 3203267 BLAKE2B 
0009afc8e9357a9d9787a60ee549bb21d68e952ca076f529add0f67500f2055a43463b3d612b600197579fd640b937024070508cb92b911d77e8ff4d8c7f16e5
 SHA512 
56e7395297ce8e336b2e881bf4dae169268ef19328bae8c037aa297696f723196f65eb3f66c03728d1c6492b768e17ad586f8aae29c9033b571f736d391e9ab9
+DIST c-blosc2-2.15.2.gh.tar.gz 3174873 BLAKE2B 
f656b81689ff30c54fd977e3652c8ee4a74320f2b4d9e2b25aa909254ed6f94021cebc63c6ddc1878a0125f97b56fc6583152c3cfae445adc976149e2449d69f
 SHA512 
6208c2cfdd19eedada0b3a264229b1f17dee09280a66ce7d22dfcee80fe320a6cd68b5cc64994852316b7987f319284a5de70d043feb84f3d756b3ef30b723f7

diff --git a/dev-libs/c-blosc2/c-blosc2-2.15.2.ebuild 
b/dev-libs/c-blosc2/c-blosc2-2.15.2.ebuild
new file mode 100644
index 000000000000..e68541580ddc
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.15.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 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