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.
gentoo-overlay/sci-physics/looptools/looptools-2.8.ebuild

38 lines
879 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils fortran-2 multilib
MYP=LoopTools-${PV}
DESCRIPTION="Tools for evaluation of scalar and tensor one-loop integrals"
HOMEPAGE="http://www.feynarts.de/looptools"
SRC_URI="http://www.feynarts.de/looptools/${MYP}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc static-libs"
S="${WORKDIR}/${MYP}"
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
export VER="${PV}"
# necessary fix for prefix
sed -i "s/lib\$(LIBDIRSUFFIX)/$(get_libdir)/" makefile.in || die
}
src_install() {
default
# another one of these package building archive with pic
# no: ooptools is not a typo
if use static-libs; then
rm "${ED}"/usr/$(get_libdir)/libooptools.a || die
fi
use doc && dodoc manual/*.pdf
}