diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/c-blosc2/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/c-blosc2/c-blosc2-2.13.1.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest index 4345d9fc3944..a92644ffb1c6 100644 --- a/dev-libs/c-blosc2/Manifest +++ b/dev-libs/c-blosc2/Manifest @@ -3,3 +3,4 @@ DIST c-blosc2-2.11.2.gh.tar.gz 3144952 BLAKE2B 312a6778a75badf687ebf0cbd8a7a4887 DIST c-blosc2-2.11.3.gh.tar.gz 3145288 BLAKE2B 140ca9693f2a779e37d324c6a631cde915b7bd7e16c5d48c779872dbc2a688773c22145bd224b8a7ac8e355b2639d08723ff1e4dc59cd57f2f4da89eea2d2c7c SHA512 51652056e646dd29496d8e7a4c3fc1c84af5f2a389b9057d0189d45fd298d64a581bf9f92f688397ff941dc18e03123cf7cd190fea91e3c127c36ad1d775bf79 DIST c-blosc2-2.12.0.gh.tar.gz 3148244 BLAKE2B 1c686994cad5df2e8e311f87df922a453ad4b111bd55bc19b9e988d93228c309835fb53ba9111213cf6e0560b172765656a1cf4c46aa1c5d709a2a92401d9072 SHA512 dafd1e08b9d556729abf8e859324c1b4724f43c5bb5829e11a8bf9653216b3afa05436d012a1cc8ca70017e158bee38c4f4aa3d86ebf18d6d7a2712e6bb26f79 DIST c-blosc2-2.13.0.gh.tar.gz 3150698 BLAKE2B 3020823fad873f13c2e38f21a20c0a40c558a28dd3e2bab86fe4ccdda946b5f2ab8a160cc619f1bca0bf7901515ebaa3a2600fad0f1387c8055fc1042828b3a5 SHA512 83280ea4aedea38167729bfb52797378a94ecf0733c2552283f07aa1fd732e2f565dce3a227e19e10acd855b9690987b90f9dc8a5f6589d208e0c3940b45ecc4 +DIST c-blosc2-2.13.1.gh.tar.gz 3150768 BLAKE2B 3d5e38aef21e4da45c930357d5d282b1fe92b89140b0390ae25371fb84e080f852e7548cd2339114e5c2752522e612e2fa49c3ab92a2223adf760257e5029b2c SHA512 61b08c2ac2ab4ceef1053673012a8dc7975ea5ca314115cd43bc4bfdcfe427007ed920336e66a0128a750f7215c9fcb2f4379b1adc558c380f6931ce5ca591b1 diff --git a/dev-libs/c-blosc2/c-blosc2-2.13.1.ebuild b/dev-libs/c-blosc2/c-blosc2-2.13.1.ebuild new file mode 100644 index 000000000000..83ec7fc645ac --- /dev/null +++ b/dev-libs/c-blosc2/c-blosc2-2.13.1.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/1" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~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 +} |