blob: 343f04461399d2ebd42d3ea24d8af6c5702c0cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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
)
"
PATCHES=(
"${FILESDIR}"/${PN}-1.6.5-no-werror.patch
)
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
}
|