33 lines
686 B
Bash
33 lines
686 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="portable ISO C library for polynomial basis arithmetic"
|
|
HOMEPAGE="https://www.libtom.net/"
|
|
SRC_URI="https://github.com/libtom/libtompoly/releases/download/${PV}/ltp-${PV}.tar.bz2"
|
|
|
|
LICENSE="WTFPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ppc x86"
|
|
|
|
DEPEND="dev-libs/libtommath"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i \
|
|
-e 's:\<ar\>:$(AR):' \
|
|
-e "/^LIBPATH/s:/lib:/$(get_libdir):" \
|
|
makefile || die "Fixing makefile failed"
|
|
tc-export AR CC
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc changes.txt pb.pdf
|
|
docinto demo
|
|
dodoc demo/demo.c
|
|
}
|