summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-07 20:08:31 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-07 20:22:43 +0100
commita2002d71325681680eb4e30f80c42b30ab144fca (patch)
tree331b8e024947edbcffd1d12a3630a769a23e60b2 /dev-libs
parentdev-python/braintree: Bump to 4.24.0 (diff)
downloadgentoo-a2002d71325681680eb4e30f80c42b30ab144fca.tar.gz
gentoo-a2002d71325681680eb4e30f80c42b30ab144fca.tar.bz2
gentoo-a2002d71325681680eb4e30f80c42b30ab144fca.zip
dev-libs/c-blosc2: Bump to 2.11.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/c-blosc2/Manifest1
-rw-r--r--dev-libs/c-blosc2/c-blosc2-2.11.2.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 9a798c33dba3..0d4dc95b60c0 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -4,4 +4,5 @@ DIST c-blosc2-2.10.4.gh.tar.gz 3142948 BLAKE2B 3c25ed6540b080c385e383c36dab6d4a7
DIST c-blosc2-2.10.5.gh.tar.gz 3144174 BLAKE2B a680def405f2383636185ab1b71a42e042dd0c71025bfc898b48f148f4a6bf27cbd38f29512caae9ff5b58f70cb35289b609c84b132c0795915d1fe6c71b3feb SHA512 bc004fe2132a8e36963437d5279506c2f79dcbf11ee1a768954c20d1265d120dc85e67952b567e716105c5716922da8ee8cffd0a5d44bc67093a4cab3075e322
DIST c-blosc2-2.11.0.gh.tar.gz 3145115 BLAKE2B f2c375d303efe732dbb101c671560e40c584cdd546f481159b7317af775964f3c7fbdb540f86355ac1c6d345d7a494cfa0b9f1afcab2b04f7b96b127491cac3a SHA512 df88b00a234b3753d97483169931a3ad9d1cc833bb13ec6f766e610ae2601577501ba824a4256bd35d4a50b3730afaa519bb24594707fedd8de6cbe9133e9799
DIST c-blosc2-2.11.1.gh.tar.gz 3145212 BLAKE2B 3c82b4758ce6395a2332971d5381855820596f7f95bee0c9f16b87cde43848ed2116483294132e4e8cadf3a40e01b98eb351a5707589d0bebbb8bfdebf9e49d6 SHA512 041e429b48b6563f6ff344ff532b2edc36087dd5c5707e4911d573c863995eb4e8d6245cba477747885824b707367114b3afa6c4b4b887458a42cf9fb90ec047
+DIST c-blosc2-2.11.2.gh.tar.gz 3144952 BLAKE2B 312a6778a75badf687ebf0cbd8a7a4887ea183c4ed189f5d58007baf81154fb8de5269ec1066c5d1f75bd8855404915338f012e348f9aa26f10ada7823f68b4f SHA512 667fc69fd99cc792bc3439246b9e89b823e9c7e0fc497775c1aaa1d12c6368582dac2db93770a8cd732f29c1e93b082e108b641f221b3dae614e9b8a644718b0
DIST c-blosc2-2.9.3.gh.tar.gz 3139809 BLAKE2B 740bfbc3cd1416d0863f6939ba4b5e27b2ae7947a407838e4061ef42c005ee255abdd8bbcbecb25123b7ff50ece62493ad3b5a84d4e02a65e1791c9007cf5b5d SHA512 30e792ba982d66936813c2dc56f85ee17a1a73ec475c15d6448cc1f5ac88f917f7a823e4b7b59c1271b1a9ee1ddd1f15fb74d6c0fa61d653b16d1a05209dfde4
diff --git a/dev-libs/c-blosc2/c-blosc2-2.11.2.ebuild b/dev-libs/c-blosc2/c-blosc2-2.11.2.ebuild
new file mode 100644
index 000000000000..15ee45b69056
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.11.2.ebuild
@@ -0,0 +1,63 @@
+# 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}
+"
+
+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
+}