looptools-2.12.ebuild 885 B

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