1 |
commit: 48723b7fbd072415f642f5cbf8dd51f74168e2e9 |
2 |
Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 26 22:20:55 2015 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 26 22:22:21 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48723b7f |
7 |
|
8 |
sci-physics/herwig++: initial import from the science overlay |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
sci-physics/herwig++/Manifest | 1 + |
13 |
.../herwig++/files/herwig++-2.6.3-looptools.patch | 64 ++++++++++++++++++++++ |
14 |
sci-physics/herwig++/herwig++-2.7.1.ebuild | 59 ++++++++++++++++++++ |
15 |
sci-physics/herwig++/metadata.xml | 20 +++++++ |
16 |
4 files changed, 144 insertions(+) |
17 |
|
18 |
diff --git a/sci-physics/herwig++/Manifest b/sci-physics/herwig++/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..5f93f04 |
21 |
--- /dev/null |
22 |
+++ b/sci-physics/herwig++/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST Herwig++-2.7.1.tar.bz2 3388956 SHA256 80a189376bb65f5ec4e64f42e76c00ea9102d8224010563a424fc11e619a6ad6 SHA512 643f389f13f22b30d0adb4ca601a11c2686f6db4746af51136601954af2ec20eb0af7b45981e764d8b71cb7206bfe310beea1fee069972868955b1f024b8d5e3 WHIRLPOOL 5336136e90c4f90e4e08a24a4d753ab61d1c4b033a23228ebb5bc039175987f4d70d7162a2319b635644a3fbaf24c9bbc1b901e92abb4bcaad27884e429d472a |
25 |
|
26 |
diff --git a/sci-physics/herwig++/files/herwig++-2.6.3-looptools.patch b/sci-physics/herwig++/files/herwig++-2.6.3-looptools.patch |
27 |
new file mode 100644 |
28 |
index 0000000..0c80297 |
29 |
--- /dev/null |
30 |
+++ b/sci-physics/herwig++/files/herwig++-2.6.3-looptools.patch |
31 |
@@ -0,0 +1,64 @@ |
32 |
+--- Looptools/Makefile.am |
33 |
++++ Looptools/Makefile.am |
34 |
+@@ -1,58 +1,12 @@ |
35 |
+-noinst_LTLIBRARIES = libHwLooptoolsXFC.la libHwLooptoolsCFC.la |
36 |
+-noinst_LTLIBRARIES += libHwLooptools.la |
37 |
+- |
38 |
+-EXTRA_DIST = include/lt.h include/ftypes.h include/ff.h include/ffwarn.h \ |
39 |
+- include/fferr.h include/defs.h include/looptools.h include/ffperm5.h \ |
40 |
+- include/clooptools.h include/cexternals.h include/externals.h \ |
41 |
+- util/solve-LU.F util/solve-LU.h util/solve-Eigen.F |
42 |
+- |
43 |
+-theXFCSOURCES = \ |
44 |
+-A/A0.F A/A00.F A/ffxa0.F A/ffca0.F B/Bget.F \ |
45 |
+-B/Bcoeff.F B/BcoeffC.F B/Bcoeffa.F B/Bcoeffb.F B/ffxb0.F \ |
46 |
+-B/ffcb0.F B/ffxb1.F B/ffcb1.F B/ffxb2p.F B/ffcb2p.F \ |
47 |
+-B/ffxdb0.F B/ffcdb0.F B/ffxdb1.F B/ffdel2.F B/ffcel2.F \ |
48 |
+-C/C0.F C/C0C.F C/Cget.F C/ffxc0.F C/ffcc0.F \ |
49 |
+-C/ffxc0i.F C/ffxc0p.F C/ffxc0p0.F C/ffcc0p.F C/ffdxc0.F \ |
50 |
+-C/ffdel3.F C/ffcel3.F D/D0.F D/D0C.F D/Dget.F \ |
51 |
+-D/ffxd0.F D/ffxd0h.F D/ffxd0i.F D/ffxd0p.F D/ffxd0m0.F \ |
52 |
+-D/ffxd0tra.F D/ffxdbd.F D/ffdcc0.F D/ffdel4.F D/ffd0c.F \ |
53 |
+-D/ffTn.F D/ffT13.F D/ffS2.F D/ffS3n.F D/ffRn.F \ |
54 |
+-E/E0.F E/Eget.F E/Ecoeffa.F E/Ecoeffb.F E/ffxe0.F \ |
55 |
+-E/ffdel5.F util/ini.F util/auxCD.F util/solve.F util/Dump.F \ |
56 |
+-util/Li2.F util/ffinit.F util/ffxli2.F util/ffcli2.F util/ffxxyz.F \ |
57 |
+-util/ffcxyz.F util/ffcrr.F util/ffcxr.F util/fftran.F util/ffabcd.F \ |
58 |
+-util/ff2dl2.F util/ffcxs3.F util/ffcxs4.F util/ffdcxs.F util/ffbndc.F |
59 |
+- |
60 |
+-## the following need -DCOMPLEXPARA |
61 |
+-theCFCSOURCES = \ |
62 |
+-A/A0.F A/A00.F B/Bget.F B/Bcoeffa.F C/Cget.F D/Dget.F E/E0.F \ |
63 |
+-E/Eget.F E/Ecoeffa.F E/Ecoeffb.F util/solve.F util/Dump.F util/Li2.F |
64 |
++noinst_LTLIBRARIES = libHwLooptools.la |
65 |
+ |
66 |
+ commonCPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/include |
67 |
+ |
68 |
+-libHwLooptoolsXFC_la_SOURCES = $(theXFCSOURCES) |
69 |
+-libHwLooptoolsXFC_la_CPPFLAGS = $(commonCPPFLAGS) |
70 |
+-libHwLooptoolsXFC_la_FCFLAGS = $(AM_FCFLAGS) -ffixed-line-length-none |
71 |
+-libHwLooptoolsXFC_la_FFLAGS = $(AM_FFLAGS) -ffixed-line-length-none |
72 |
+- |
73 |
+-libHwLooptoolsCFC_la_SOURCES = $(theCFCSOURCES) |
74 |
+-libHwLooptoolsCFC_la_CPPFLAGS = $(commonCPPFLAGS) -DCOMPLEXPARA |
75 |
+-libHwLooptoolsCFC_la_FCFLAGS = $(AM_FCFLAGS) -ffixed-line-length-none |
76 |
+-libHwLooptoolsCFC_la_FFLAGS = $(AM_FFLAGS) -ffixed-line-length-none |
77 |
+- |
78 |
+-## installed already from "include/Makefile.am" |
79 |
+-## noinst_HEADERS = include/clooptools.h |
80 |
+- |
81 |
+-##if NEED_APPLE_FIXES |
82 |
+-##libHwLooptoolsXFC_la_LDFLAGS = -Wl,-single_module |
83 |
+-##libHwLooptoolsCFC_la_LDFLAGS = -Wl,-single_module |
84 |
+-##endif |
85 |
+- |
86 |
+-libHwLooptools_la_SOURCES = util/cache.c clooptools.cc |
87 |
++libHwLooptools_la_SOURCES = clooptools.cc |
88 |
+ libHwLooptools_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-strict-aliasing |
89 |
+ libHwLooptools_la_CPPFLAGS = $(commonCPPFLAGS) |
90 |
+ libHwLooptools_la_CFLAGS = $(AM_CFLAGS) -std=c99 |
91 |
+-libHwLooptools_la_LIBADD = libHwLooptoolsXFC.la libHwLooptoolsCFC.la |
92 |
++libHwLooptools_la_LIBADD = -looptools |
93 |
+ |
94 |
+ |
95 |
+ ## libHwLooptoolsHelper2_la_SOURCES = clooptools.cc |
96 |
|
97 |
diff --git a/sci-physics/herwig++/herwig++-2.7.1.ebuild b/sci-physics/herwig++/herwig++-2.7.1.ebuild |
98 |
new file mode 100644 |
99 |
index 0000000..4479a2c |
100 |
--- /dev/null |
101 |
+++ b/sci-physics/herwig++/herwig++-2.7.1.ebuild |
102 |
@@ -0,0 +1,59 @@ |
103 |
+# Copyright 1999-2015 Gentoo Foundation |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+# $Id$ |
106 |
+ |
107 |
+EAPI=5 |
108 |
+ |
109 |
+AUTOTOOLS_AUTORECONF=1 |
110 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
111 |
+ |
112 |
+inherit autotools-utils eutils flag-o-matic multilib |
113 |
+ |
114 |
+MYP=Herwig++-${PV} |
115 |
+ |
116 |
+DESCRIPTION="High-Energy Physics event generator" |
117 |
+HOMEPAGE="http://herwig.hepforge.org/" |
118 |
+SRC_URI="http://www.hepforge.org/archive/herwig/${MYP}.tar.bz2" |
119 |
+ |
120 |
+LICENSE="GPL-2" |
121 |
+ |
122 |
+SLOT="0/15" |
123 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
124 |
+IUSE="c++11 fastjet static-libs" |
125 |
+ |
126 |
+# >sci-physics/looptools-2.8 leads to misoperation |
127 |
+# and failing tests (it lacks some symbols) |
128 |
+RDEPEND=" |
129 |
+ dev-libs/boost:0= |
130 |
+ sci-libs/gsl:0= |
131 |
+ <=sci-physics/looptools-2.8:0= |
132 |
+ >=sci-physics/thepeg-1.9.2:0= |
133 |
+ fastjet? ( sci-physics/fastjet:0= )" |
134 |
+DEPEND="${RDEPEND} |
135 |
+ virtual/fortran" |
136 |
+ |
137 |
+S="${WORKDIR}/${MYP}" |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ epatch "${FILESDIR}"/${PN}-2.6.3-looptools.patch |
141 |
+ find -name 'Makefile.am' -exec \ |
142 |
+ sed -i -e '1ipkgdatadir=$(datadir)/herwig++' {} \; || die |
143 |
+ autotools-utils_src_prepare |
144 |
+} |
145 |
+ |
146 |
+src_configure() { |
147 |
+ use prefix && \ |
148 |
+ append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir)/ThePEG |
149 |
+ local myeconfargs=( |
150 |
+ --with-boost="${EPREFIX}"/usr |
151 |
+ --with-thepeg="${EPREFIX}"/usr |
152 |
+ $(use_enable c++11 stdcxx11) |
153 |
+ $(use_with fastjet fastjet "${EPREFIX}"/usr) |
154 |
+ ) |
155 |
+ autotools-utils_src_configure |
156 |
+} |
157 |
+ |
158 |
+pkg_preinst () { |
159 |
+ sed -i -e "s|${ED}||g" "${ED}"/usr/share/herwig++/defaults/PDF.in || die |
160 |
+ sed -i -e "s|${ED}||g" "${ED}"/usr/share/herwig++/HerwigDefaults.rpo || die |
161 |
+} |
162 |
|
163 |
diff --git a/sci-physics/herwig++/metadata.xml b/sci-physics/herwig++/metadata.xml |
164 |
new file mode 100644 |
165 |
index 0000000..73787df |
166 |
--- /dev/null |
167 |
+++ b/sci-physics/herwig++/metadata.xml |
168 |
@@ -0,0 +1,20 @@ |
169 |
+<?xml version="1.0" encoding="UTF-8"?> |
170 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
171 |
+<pkgmetadata> |
172 |
+<herd>sci-physics</herd> |
173 |
+<maintainer> |
174 |
+ <email>jauhien@g.o</email> |
175 |
+</maintainer> |
176 |
+<longdescription> |
177 |
+ Herwig++ is a completely new event generator, written in C++. |
178 |
+ It is built on the experience gained with the well-known |
179 |
+ event generator HERWIG. The aim is to provide a multi purpose |
180 |
+ event generator with similar or improved capabilities (like angular |
181 |
+ ordered parton evolution and the cluster hadronization model). |
182 |
+</longdescription> |
183 |
+<use> |
184 |
+ <flag name='c++11'>Build Herwig++ using the C++11 standard. |
185 |
+ Experimental feature, not for production use.</flag> |
186 |
+ <flag name='fastjet'>Adds support for <pkg>sci-physics/fastjet</pkg></flag> |
187 |
+</use> |
188 |
+</pkgmetadata> |