Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/tauola/, profiles/, sci-physics/tauola/files/
Date: Mon, 02 Dec 2013 16:20:09
Message-Id: 1385137011.2e072cd3972e514ef986aa23f0170cd487273990.jlec@gentoo
1 commit: 2e072cd3972e514ef986aa23f0170cd487273990
2 Author: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Fri Nov 22 16:16:51 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 22 16:16:51 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2e072cd3
7
8 sci-physics/tauola: new ebuild added
9
10 ---
11 profiles/package.mask | 1 +
12 sci-physics/tauola/ChangeLog | 12 ++++
13 .../tauola/files/tauola-1.1.3-makefile.patch | 12 ++++
14 .../files/tauola-1.1.3-tau-spinner-makefile.patch | 11 ++++
15 sci-physics/tauola/metadata.xml | 17 +++++
16 sci-physics/tauola/tauola-1.1.3.ebuild | 69 ++++++++++++++++++++
17 sci-physics/tauola/tauola-9999.ebuild | 75 ++++++++++++++++++++++
18 7 files changed, 197 insertions(+)
19
20 diff --git a/profiles/package.mask b/profiles/package.mask
21 index 306ba64..1fee51b 100644
22 --- a/profiles/package.mask
23 +++ b/profiles/package.mask
24 @@ -56,6 +56,7 @@
25 >=sys-cluster/nullmpi-9999
26 >=sci-physics/espresso-9999
27 >=sci-physics/espresso++-9999
28 +>=sci-physics/tauola-9999
29 ~sci-chemistry/gromacs-4.5.9999
30 ~sci-chemistry/gromacs-4.6.9999
31 ~sci-chemistry/gromacs-9999
32
33 diff --git a/sci-physics/tauola/ChangeLog b/sci-physics/tauola/ChangeLog
34 new file mode 100644
35 index 0000000..dfcbc89
36 --- /dev/null
37 +++ b/sci-physics/tauola/ChangeLog
38 @@ -0,0 +1,12 @@
39 +# ChangeLog for sci-physics/tauola
40 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
41 +# $Header: $
42 +
43 +*tauola-9999 (22 Nov 2013)
44 +*tauola-1.1.3 (22 Nov 2013)
45 +
46 + 22 Nov 2013; Jauhien Piatlicki <piatlicki@×××××.com> +tauola-1.1.3.ebuild,
47 + +tauola-9999.ebuild, +files/tauola-1.1.3-makefile.patch,
48 + +files/tauola-1.1.3-tau-spinner-makefile.patch, +metadata.xml:
49 + ebuild added
50 +
51
52 diff --git a/sci-physics/tauola/files/tauola-1.1.3-makefile.patch b/sci-physics/tauola/files/tauola-1.1.3-makefile.patch
53 new file mode 100644
54 index 0000000..5d41952
55 --- /dev/null
56 +++ b/sci-physics/tauola/files/tauola-1.1.3-makefile.patch
57 @@ -0,0 +1,12 @@
58 +--- Makefile
59 ++++ Makefile
60 +@@ -36,8 +36,7 @@
61 +
62 + install:
63 + mkdir -p $(PREFIX)/include
64 +- mkdir -p $(PREFIX)/include/Tauola
65 +- cp include/Tauola/* $(PREFIX)/include/Tauola/.
66 ++ cp -r include/* $(PREFIX)/include
67 + mkdir -p $(PREFIX)/lib
68 + cp lib/* $(PREFIX)/lib/.
69 +
70
71 diff --git a/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch b/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch
72 new file mode 100644
73 index 0000000..8b3474c
74 --- /dev/null
75 +++ b/sci-physics/tauola/files/tauola-1.1.3-tau-spinner-makefile.patch
76 @@ -0,0 +1,11 @@
77 +--- TauSpinner/Makefile
78 ++++ TauSpinner/Makefile
79 +@@ -30,7 +30,7 @@
80 +
81 + %.o: %.cxx
82 + $(CC) $(CFLAGS) -c $< -o $@ -Iinclude \
83 +- -I$(PREFIX)/include \
84 ++ -I../include \
85 + -I$(LHAPDFLOCATION)/include
86 +
87 + %.o: %.f
88
89 diff --git a/sci-physics/tauola/metadata.xml b/sci-physics/tauola/metadata.xml
90 new file mode 100644
91 index 0000000..b4f9e77
92 --- /dev/null
93 +++ b/sci-physics/tauola/metadata.xml
94 @@ -0,0 +1,17 @@
95 +<?xml version="1.0" encoding="UTF-8"?>
96 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
97 +<pkgmetadata>
98 +
99 +<herd>sci-physics</herd>
100 +<maintainer>
101 + <email>piatlicki@×××××.com</email>
102 +</maintainer>
103 +
104 +<longdescription>
105 + tau decay Monte Carlo generator
106 +</longdescription>
107 +<use>
108 + <flag name="hepmc">Compile <pkg>sci-physics/hepmc</pkg> interface</flag>
109 + <flag name="tau-spinner">Compile with TauSpinner library</flag>
110 +</use>
111 +</pkgmetadata>
112
113 diff --git a/sci-physics/tauola/tauola-1.1.3.ebuild b/sci-physics/tauola/tauola-1.1.3.ebuild
114 new file mode 100644
115 index 0000000..1abb1a4
116 --- /dev/null
117 +++ b/sci-physics/tauola/tauola-1.1.3.ebuild
118 @@ -0,0 +1,69 @@
119 +# Copyright 1999-2013 Gentoo Foundation
120 +# Distributed under the terms of the GNU General Public License v2
121 +# $Header: $
122 +
123 +EAPI=5
124 +
125 +inherit eutils
126 +
127 +MYPN=TAUOLA
128 +
129 +DESCRIPTION="tau decay Monte Carlo generator"
130 +HOMEPAGE="http://tauolapp.web.cern.ch/tauolapp/"
131 +SRC_URI="http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.${PV}/${MYPN}.${PV}.tar.gz"
132 +LICENSE="CPC GPL-2+"
133 +#HepMC interface is licensed under GPL, other code under CPC
134 +
135 +SLOT="0"
136 +KEYWORDS="~amd64 ~x86"
137 +IUSE="doc examples hepmc tau-spinner"
138 +
139 +RDEPEND="hepmc? ( sci-physics/hepmc )
140 + tau-spinner? ( sci-physics/lhapdf )
141 +"
142 +DEPEND="${RDEPEND}
143 + doc? ( app-doc/doxygen
144 + app-text/ghostscript-gpl
145 + app-text/texlive )
146 +"
147 +
148 +S="${WORKDIR}/${MYPN}"
149 +
150 +src_prepare() {
151 + epatch "${FILESDIR}/${P}-makefile.patch" "${FILESDIR}/${P}-tau-spinner-makefile.patch"
152 +}
153 +
154 +src_configure() {
155 + econf \
156 + --without-mc-tester \
157 + --without-pythia8 \
158 + $(use_with hepmc hepmc "${EPREFIX}/usr") \
159 + $(use_with tau-spinner) \
160 + $(use_with tau-spinner lhapdf "${EPREFIX}/usr")
161 +}
162 +
163 +src_compile() {
164 + emake
165 + if use doc;
166 + then
167 + cd "${S}/documentation/doxy_documentation" || die
168 + emake
169 + cd "${S}/documentation/latex_documentation" || die
170 + emake
171 + fi
172 +}
173 +
174 +src_install() {
175 + emake PREFIX="${D}/usr" install
176 +
177 + if use doc; then
178 + dohtml documentation/doxy_documentation/html/*
179 + dodoc documentation/latex_documentation/Tauola_interface_design.pdf
180 + fi
181 +
182 + if use examples;
183 + then
184 + dodoc -r examples
185 + use tau-spinner && docinto tau-spinner && dodoc -r TauSpinner/examples
186 + fi
187 +}
188
189 diff --git a/sci-physics/tauola/tauola-9999.ebuild b/sci-physics/tauola/tauola-9999.ebuild
190 new file mode 100644
191 index 0000000..67bc2b6
192 --- /dev/null
193 +++ b/sci-physics/tauola/tauola-9999.ebuild
194 @@ -0,0 +1,75 @@
195 +# Copyright 1999-2013 Gentoo Foundation
196 +# Distributed under the terms of the GNU General Public License v2
197 +# $Header: $
198 +
199 +EAPI=5
200 +
201 +inherit eutils
202 +
203 +MYPN=TAUOLA
204 +
205 +DESCRIPTION="tau decay Monte Carlo generator"
206 +HOMEPAGE="http://tauolapp.web.cern.ch/tauolapp/"
207 +SRC_URI=""
208 +LICENSE="CPC GPL-2+"
209 +#HepMC interface is licensed under GPL, other code under CPC
210 +
211 +SLOT="0"
212 +IUSE="doc examples hepmc tau-spinner"
213 +
214 +RDEPEND="hepmc? ( sci-physics/hepmc )
215 + tau-spinner? ( sci-physics/lhapdf )
216 +"
217 +DEPEND="${RDEPEND}
218 + net-misc/wget
219 + doc? ( app-doc/doxygen
220 + app-text/ghostscript-gpl
221 + app-text/texlive )
222 +"
223 +
224 +S="${WORKDIR}/${MYPN}"
225 +
226 +src_unpack() {
227 + #there is no public svn, just generated tarball, so fetch it
228 + wget "http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.development.version/${MYPN}.development.version.tar.gz" || die
229 + unpack "./${MYPN}.development.version.tar.gz"
230 +}
231 +
232 +src_prepare() {
233 + epatch "${FILESDIR}/${PN}-1.1.3-makefile.patch" "${FILESDIR}/${PN}-1.1.3-tau-spinner-makefile.patch"
234 +}
235 +
236 +src_configure() {
237 + econf \
238 + --without-mc-tester \
239 + --without-pythia8 \
240 + $(use_with hepmc hepmc "${EPREFIX}/usr") \
241 + $(use_with tau-spinner) \
242 + $(use_with tau-spinner lhapdf "${EPREFIX}/usr")
243 +}
244 +
245 +src_compile() {
246 + emake
247 + if use doc;
248 + then
249 + cd "${S}/documentation/doxy_documentation" || die
250 + emake
251 + cd "${S}/documentation/latex_documentation" || die
252 + emake
253 + fi
254 +}
255 +
256 +src_install() {
257 + emake PREFIX="${D}/usr" install
258 +
259 + if use doc; then
260 + dohtml documentation/doxy_documentation/html/*
261 + dodoc documentation/latex_documentation/Tauola_interface_design.pdf
262 + fi
263 +
264 + if use examples;
265 + then
266 + dodoc -r examples
267 + use tau-spinner && docinto tau-spinner && dodoc -r TauSpinner/examples
268 + fi
269 +}