summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <jauhien@gentoo.org>2015-08-26 21:38:11 +0200
committerJauhien Piatlicki <jauhien@gentoo.org>2015-08-26 21:39:28 +0200
commit5ae9ae96d2cbe08c5613599aaf528c09cfc65610 (patch)
treebd4b486e091ee3877ed87fc8496a5e3b69b3a102 /sci-physics
parentapp-text/pdf2djvu: Version bump (diff)
downloadgentoo-5ae9ae96d2cbe08c5613599aaf528c09cfc65610.tar.gz
gentoo-5ae9ae96d2cbe08c5613599aaf528c09cfc65610.tar.bz2
gentoo-5ae9ae96d2cbe08c5613599aaf528c09cfc65610.zip
sci-physics/looptools: add version 2.8 needed for sci-physics/herwig++
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/looptools/Manifest1
-rw-r--r--sci-physics/looptools/files/looptools-2.8-makefile.patch96
-rw-r--r--sci-physics/looptools/looptools-2.8.ebuild39
3 files changed, 136 insertions, 0 deletions
diff --git a/sci-physics/looptools/Manifest b/sci-physics/looptools/Manifest
index 10b8ddaa6716..5a941a51244a 100644
--- a/sci-physics/looptools/Manifest
+++ b/sci-physics/looptools/Manifest
@@ -1 +1,2 @@
DIST LoopTools-2.12.tar.gz 545153 SHA256 df04d944de15ec73665edaf76f655d1db797cbc02b54baa7664ac761ecfa2f70 SHA512 70726493bd138fb80b85a46955fbe28b7f1432d9b67a100fe3ff74c2fa22232a07e461a6742745b0ead81793bb64b81cc4265d09b91fa048e7bdd32cf6956b27 WHIRLPOOL af3abaf31a4a868e0f65bdb0b21405c413c470063e4c8130e31b2a9e05a4f0e65e9999323e3cdf0b4277e48e84d767288852e984d486468abab3aaa664f66879
+DIST LoopTools-2.8.tar.gz 546810 SHA256 2395518d0eac9b0883a2c249b9a5ba80df443929c520c45e60f5a4284166eb42 SHA512 32211669fd092d2d5bb38e26a6471a95df0647d9e7ea0cc4e99ff4fd7c3e3fee107f6432ed9075e3102224f0041fac6f7075b1f0a91f7744ec3890b4b36d276e WHIRLPOOL c8dff8030d7ea1bfc6b65bef3370c5acfec69fa73f223a63b7424163b81a3bdf788eb3ffecd07e9bf61a31a63138b1fd126b6442a298c8fad1f4b04b69663a47
diff --git a/sci-physics/looptools/files/looptools-2.8-makefile.patch b/sci-physics/looptools/files/looptools-2.8-makefile.patch
new file mode 100644
index 000000000000..5252c1de60c0
--- /dev/null
+++ b/sci-physics/looptools/files/looptools-2.8-makefile.patch
@@ -0,0 +1,96 @@
+--- makefile.in
++++ makefile.in
+@@ -1,14 +1,17 @@
+ BLD = build$(QUADSUFFIX)
+
+-LIBDIR = $(PREFIX)/lib$(LIBDIRSUFFIX)
+-INCLUDEDIR = $(PREFIX)/include
+-BINDIR = $(PREFIX)/bin
++LIBDIR = $(DESTDIR)/$(PREFIX)/lib$(LIBDIRSUFFIX)
++INCLUDEDIR = $(DESTDIR)/$(PREFIX)/include
++BINDIR = $(DESTDIR)/$(PREFIX)/bin
+
+ LIB = libooptools$(QUADSUFFIX).a
+ FE = lt$(QUADSUFFIX)$(EXE)
+ MFE = LoopTools$(QUADSUFFIX)$(EXE)
+ INCLUDE = $(BLD)/looptools.h $(BLD)/clooptools.h
+
++LIBRARY=libooptools.so
++REALNAME=$(LIBRARY).$(VER)
++
+ ARGS = $(PARALLEL) \
+ LIB="$(LIB)" \
+ FE="$(FE)" \
+@@ -16,12 +19,12 @@
+ EXE="$(EXE)" \
+ DEF="$(DEF)" \
+ NOUNDERSCORE="$(NOUNDERSCORE)" \
+- XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I." \
++ XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I. -fPIC" \
+ F90="$(F90)" \
+ CC="$(CC)" \
+- CFLAGS="$(CFLAGS) $(CFLAGS-quad)" \
++ CFLAGS="$(CFLAGS) $(CFLAGS-quad) -fPIC" \
+ CXX="$(CXX)" \
+- CXXFLAGS="$(CXXFLAGS)" \
++ CXXFLAGS="$(CXXFLAGS) -fPIC" \
+ ML="$(ML)" \
+ MCC="$(MCC)" \
+ MCFLAGS="$(MCFLAGS)" \
+@@ -31,20 +34,22 @@
+ DLLTOOL="$(DLLTOOL)" \
+ LDFLAGS="$(LDFLAGS)" \
+ LIBPATH="$(LIBPATH)" \
+- OBJS-quad="$(OBJS-quad)"
++ OBJS-quad="$(OBJS-quad)" \
++ REALNAME="$(REALNAME)"
+
+
+-default all lib frontend mma: force
++default all lib solib frontend mma: force
+ cd $(BLD) && $(MAKE) $(ARGS) $@
+
+-install: lib frontend
+- -mkdir $(PREFIX)
++install: lib solib frontend
++ -mkdir $(DESTDIR)$(PREFIX)
+ -mkdir $(LIBDIR) $(BINDIR) $(INCLUDEDIR)
+ cp -p $(BLD)/$(LIB) $(LIBDIR)
+ cp -p $(INCLUDE$(QUADSUFFIX)) $(INCLUDEDIR)
+- strip $(BLD)/$(FE)
+ cp -p $(BLD)/fcc $(BLD)/$(FE) $(BINDIR)
+- test ! -f $(BLD)/$(MFE) || { strip $(BLD)/$(MFE) ; cp -p $(BLD)/$(MFE) $(BINDIR); }
++ test ! -f $(BLD)/$(MFE) || { cp -p $(BLD)/$(MFE) $(BINDIR); }
++ cp -p $(BLD)/$(REALNAME) $(LIBDIR)
++ cd $(LIBDIR) && ln -s $(REALNAME) $(LIBRARY)
+
+ force: $(BLD)/timestamp
+
+--- src/makefile
++++ src/makefile
+@@ -1,6 +1,6 @@
+-default: frontend mma$(ML)
++default: frontend mma$(ML) solib
+
+-all: frontend mma1
++all: frontend mma1 solib
+
+ frontend: lib $(FE)
+
+@@ -8,6 +8,7 @@
+
+ mma0 lib: $(LIB) clooptools.h fcc
+
++solib: $(REALNAME) fcc
+
+ .SUFFIXES:
+
+@@ -247,6 +248,8 @@
+ $(AR) cru $(LIB) $?
+ -$(RANLIB) $(LIB)
+
++$(REALNAME): $(OBJS)
++ $(XFC) $(LDFLAGS) -shared -Wl,--soname,$(REALNAME) -o $@ $?
+
+ $(FE): lt.F $(LTINC) $(LIB)
+ $(XFC) -o $(FE) lt.F $(LIB)
diff --git a/sci-physics/looptools/looptools-2.8.ebuild b/sci-physics/looptools/looptools-2.8.ebuild
new file mode 100644
index 000000000000..efe91666b47f
--- /dev/null
+++ b/sci-physics/looptools/looptools-2.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+
+DEPEND="virtual/fortran"
+RDEPEND="${DEPEND}"
+
+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
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/libooptools.a
+ use doc && dodoc manual/*.pdf
+}