dev-libs/liberasurecode: add 1.6.5

* Add optional backends as optfeatures & test dependencies
* Run the testsuite ('check' just builds the tests)
* Don't pass '-march=native'-like flags automagically
* Drop USE=static-libs as nothing uses it

Closes: https://bugs.gentoo.org/874009
Closes: https://bugs.gentoo.org/883417
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-07-27 07:45:48 +01:00
parent 8d88e9a74f
commit 614f0167e7
2 changed files with 57 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST liberasurecode-1.6.3.tar.gz 210599 BLAKE2B d0e9ec0a28d99e109d7dd130283bf986d3fb2f2b0960567ca91b1380ce9c2a12eb14dee683cb2f994f5b3b4820b449c65f5b206f123101b4c2ed7f8910a44627 SHA512 d5daa962324ef19fd195cfa842ec375d9dd5e62e3391b4a1cbf49a850b852b18cfc9be929ab18786d6b839139f6260d5cb4c88a0ba440c06b0e54e04ffb1bee1
DIST liberasurecode-1.6.5.tar.gz 214964 BLAKE2B fb811612645f6736ada0ba0178d30adbf217d00bc4b08e6cab253f33b5f7814595321096160bb6d39357f670eeff81c2800ad755c995ec0907025daf03f39883 SHA512 e28be20e5a3712543bf71e4fbc25b4065d5bf2234b3731ca30bcf9a18c379967d0decc83177759d7901e05cd2e8f4ee6fd20562152dea9ae78eda3bad4103fa6

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools optfeature
DESCRIPTION="Erasure Code API library written in C with pluggable Erasure Code backends"
HOMEPAGE="https://opendev.org/openstack/liberasurecode"
SRC_URI="https://github.com/openstack/liberasurecode/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
BDEPEND="
doc? ( app-text/doxygen )
test? (
dev-libs/isa-l
dev-libs/jerasure
)
"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
# Don't use '-march=native'
--disable-mmi
--disable-werror
$(use_enable doc doxygen)
)
econf "${myeconfargs[@]}"
}
src_test() {
# 'check' just builds the tests
emake test
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
pkg_postinst() {
optfeature_header "Install optional pluggable Erasure Code backeds:"
optfeature "Intel Storage Acceleration Library - SIMD accelerated backend" dev-libs/isa-l
optfeature "Erasure Coding library that supports Reed-Solomon, Cauchy backends" dev-libs/jerasure
}