gentoo-ebuilds/dev-libs/jerasure/jerasure-2.0.0_p20170410.ebuild
Arthur Zamarin cd34965074
dev-libs/jerasure: Stabilize 2.0.0_p20170410 x86, #962411
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-09-06 20:38:40 +03:00

40 lines
1,013 B
Bash

# 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
}