summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-19 05:55:02 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-19 05:55:02 +0200
commit36ad11dbab84b96f5eb91b153d9265e89c08956d (patch)
tree16c32d2524a6e7ee06af615806fe647348965e65 /dev-libs
parentdev-python/tldextract: Bump to 3.4.3 (diff)
downloadgentoo-36ad11dbab84b96f5eb91b153d9265e89c08956d.tar.gz
gentoo-36ad11dbab84b96f5eb91b153d9265e89c08956d.tar.bz2
gentoo-36ad11dbab84b96f5eb91b153d9265e89c08956d.zip
dev-libs/c-blosc2: Bump to 2.9.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.9.2.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/c-blosc2/Manifest b/dev-libs/c-blosc2/Manifest
index 9d859413554f..10231529e8b2 100644
--- a/dev-libs/c-blosc2/Manifest
+++ b/dev-libs/c-blosc2/Manifest
@@ -1,2 +1,3 @@
DIST c-blosc2-2.6.1.gh.tar.gz 2365300 BLAKE2B a3fdc8798eb70e97791b7b708ef872142d38b9c4fdb8efc6d5da2010149fa61f4115f27af630a43edd5f351cb8693fbb79457f19ccf1a518f057902b93196b3d SHA512 9f5daa59d5191784ee91deb18ed15a3b36504b05061ca8b1532eaf8e402c793944059894b277843e8da19f00af05615e0865d9fdb80decd83aa07867b0e661a0
DIST c-blosc2-2.9.1.gh.tar.gz 2793299 BLAKE2B 1853611566f081f5c6236ade1882b07aa6d596f65bb303823f418faaf0e971c1850e3e78ca501650880d4611110200c302896e81a5b13cdf05bc43c81b81dd3a SHA512 9430c026f9d7a98e38915e3d308402989073aa6fa1e8e1d5b9bdb155c70c5cc24ca118cdb5b3584647f72ae80a13be0a8467250af7ef336a1ac72eb8ec8a67f5
+DIST c-blosc2-2.9.2.gh.tar.gz 2790821 BLAKE2B c47c59b7db8c3fbe04e6f63a2474ad325d7c59f5508c42dfc005a690a3020c6479927d5884f909ad106ff4c2aa04523786133a407ec8a54ee92887b24a214428 SHA512 f44346bf3ce8824dbe23d33b688d6b2063406011c066cc14ea3319537c17ecc5c1250c30d77e50696aad9932e0dd10fc95ab4f2c295208808446525636314522
diff --git a/dev-libs/c-blosc2/c-blosc2-2.9.2.ebuild b/dev-libs/c-blosc2/c-blosc2-2.9.2.ebuild
new file mode 100644
index 000000000000..1a7c40ef0f55
--- /dev/null
+++ b/dev-libs/c-blosc2/c-blosc2-2.9.2.ebuild
@@ -0,0 +1,60 @@
+# 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
+
+ # 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
+}