1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils fortran-2 multilib
10 DESCRIPTION="Tools for evaluation of scalar and tensor one-loop integrals"
11 HOMEPAGE="http://www.feynarts.de/looptools"
12 SRC_URI="http://www.feynarts.de/looptools/${MYP}.tar.gz"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc static-libs"
23 epatch "${FILESDIR}"/${P}-makefile.patch
25 # necessary fix for prefix
26 sed -i "s/lib\$(LIBDIRSUFFIX)/$(get_libdir)/" makefile.in || die
31 # another one of these package building archive with pic
32 # no: ooptools is not a typo
33 if use static-libs; then
34 rm "${ED}"/usr/$(get_libdir)/libooptools.a || die
36 use doc && dodoc manual/*.pdf