You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.0 KiB
44 lines
1.0 KiB
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit autotools eutils multilib toolchain-funcs
|
|
|
|
DESCRIPTION="Erasure Code API library written in C with pluggable Erasure Code backends."
|
|
HOMEPAGE="https://bitbucket.org/tsg-/liberasurecode/overview"
|
|
SRC_URI="https://bitbucket.org/tsg-/${PN}/get/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
CUSTOM_VERSION="debb72493d0e"
|
|
S="${WORKDIR}/tsg--${PN}-${CUSTOM_VERSION}"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64 x86"
|
|
IUSE="doc static-libs"
|
|
|
|
RDEPEND=""
|
|
DEPEND="sys-devel/autoconf
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
src_prepare() {
|
|
sed -i -e 's/-O2\ //g' \
|
|
-e 's/mmx\ /mmx2\ /g' \
|
|
-e 's/cat\ g/#cat\ g/g' configure.ac || die
|
|
sed -i -e "s/^TARGET_DIR.*$/TARGET_DIR=\/usr\/share\/doc\/${PF}\/html/g" doc/Makefile.am || die
|
|
eautoreconf -i -v
|
|
eapply_user
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--htmldir=/usr/share/doc/${PF} \
|
|
--disable-werror \
|
|
$(use_enable doc doxygen) \
|
|
$(use_enable static-libs static)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
prune_libtool_files
|
|
}
|