summaryrefslogtreecommitdiff
path: root/dev-libs/jerasure/jerasure-2.0.0_p20170410.ebuild
blob: 0d6ed607d95daa2dd3918b212abf6bf987ec4495 (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

JERASURE_COMMIT="de1739cc8483696506829b52e7fda4f6bb195e6a"
DESCRIPTION="Library in C facilitating Erasure Coding for storage applications"
HOMEPAGE="http://jerasure.org https://web.eecs.utk.edu/~jplank/plank/www/software.html"
SRC_URI="https://github.com/ceph/jerasure/archive/${JERASURE_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${JERASURE_COMMIT}

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="dev-libs/gf-complete"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-libs/gf-complete )"

DOCS=( Manual.pdf README )

src_prepare() {
	default
	# Avoid adding '-march=native'-like flags
	sed -i -e 's/ $(SIMD_FLAGS)//g' src/Makefile.am Examples/Makefile.am || die
	eautoreconf
}

src_test() {
	emake GF_COMPLETE_DIR="${BROOT}"/usr/bin check
}

src_install() {
	default
	find "${D}" -name '*.la' -delete || die
}