diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-13 16:52:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-13 17:01:58 +0200 |
commit | 2f4df624801155faec1d8af4d8cb771a6a16d8c9 (patch) | |
tree | 6212e616b56278530c712db63899f581b14d1ac0 /dev-libs/c-blosc2 | |
parent | dev-python/sentry-sdk: Bump to 1.31.0 (diff) | |
download | gentoo-2f4df624801155faec1d8af4d8cb771a6a16d8c9.tar.gz gentoo-2f4df624801155faec1d8af4d8cb771a6a16d8c9.tar.bz2 gentoo-2f4df624801155faec1d8af4d8cb771a6a16d8c9.zip |
dev-libs/c-blosc2: Bump to 2.10.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/c-blosc2')
-rw-r--r-- | dev-libs/c-blosc2/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/c-blosc2/c-blosc2-2.10.3.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest index 3ce3b9a475a3..472e7619a9b3 100644 --- a/dev-libs/c-blosc2/Manifest +++ b/dev-libs/c-blosc2/Manifest @@ -1,2 +1,3 @@ DIST c-blosc2-2.10.2.gh.tar.gz 3142525 BLAKE2B 1bd3f4c10c9c2b9d228499d41e5f3ea2c751f6271946de0857487ef71ec32bfe2d450aaff39d27f14b1b2f4dbec4b4e545f26d99a7494e39950627f55664fe40 SHA512 2e4344a6fb905fc7c8e3de2db3a59469b2ea27d2f17777e476d08247cb3793880f3c5db786857c0afd33371868e4fcd713b6913d5502424821f20c9870e1e4bb +DIST c-blosc2-2.10.3.gh.tar.gz 3142852 BLAKE2B d1c947d5a2913929d6eb8713fb750937c50f25bc7858576831eecb7ffb996238821435e080944da332d51f55eff9a714c10571c09def8170816be67ffdb779ae SHA512 ae1d8d6aae1cb58f954491733b1667a6280384de705795d181aada9ffd9d8a922b715f22ad12bc7f0fd2799b46e70a7c21a8253de74445f3013a6d2136579ae0 DIST c-blosc2-2.9.3.gh.tar.gz 3139809 BLAKE2B 740bfbc3cd1416d0863f6939ba4b5e27b2ae7947a407838e4061ef42c005ee255abdd8bbcbecb25123b7ff50ece62493ad3b5a84d4e02a65e1791c9007cf5b5d SHA512 30e792ba982d66936813c2dc56f85ee17a1a73ec475c15d6448cc1f5ac88f917f7a823e4b7b59c1271b1a9ee1ddd1f15fb74d6c0fa61d653b16d1a05209dfde4 diff --git a/dev-libs/c-blosc2/c-blosc2-2.10.3.ebuild b/dev-libs/c-blosc2/c-blosc2-2.10.3.ebuild new file mode 100644 index 000000000000..af8b2fdc4f2c --- /dev/null +++ b/dev-libs/c-blosc2/c-blosc2-2.10.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 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 ~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} +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.9.3-no-unaligned.patch +) + +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 +} |