Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-physics/pythia: pythia-6.4.18.ebuild ChangeLog metadata.xml pythia-8.1.08-r1.ebuild
Date: Mon, 08 Sep 2008 23:43:24
Message-Id: E1KcqO9-0003Fv-Fl@stork.gentoo.org
1 bicatali 08/09/08 23:43:21
2
3 Modified: pythia-6.4.18.ebuild ChangeLog metadata.xml
4 Added: pythia-8.1.08-r1.ebuild
5 Log:
6 pythia:6, added more examples, some cleaning. pythia:8, added HepMC support, respect flags, better testing, cleaning.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64)
8
9 Revision Changes Path
10 1.2 sci-physics/pythia/pythia-6.4.18.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild?r1=1.1&r2=1.2
15
16 Index: pythia-6.4.18.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- pythia-6.4.18.ebuild 2 Sep 2008 08:41:08 -0000 1.1
23 +++ pythia-6.4.18.ebuild 8 Sep 2008 23:43:20 -0000 1.2
24 @@ -1,32 +1,34 @@
25 # Copyright 1999-2008 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild,v 1.1 2008/09/02 08:41:08 bicatali Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild,v 1.2 2008/09/08 23:43:20 bicatali Exp $
29
30 inherit fortran versionator autotools
31
32 MV=$(get_major_version)
33 MY_PN=${PN}${MV}
34 +DOC_PV=0613
35
36 DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
37 HOMEPAGE="http://projects.hepforge.org/pythia6/"
38
39 # pythia6 from root is needed for some files to interface pythia6 with root
40 SRC_URI="http://www.hepforge.org/archive/${MY_PN}/${P}.f.gz
41 - ftp://root.cern.ch/root/pythia6.tar.gz
42 http://www.hepforge.org/archive/${MY_PN}/update_notes-${PV}.txt
43 - doc? ( http://home.thep.lu.se/~torbjorn/pythia/lutp0613man2.pdf
44 - http://home.thep.lu.se/~torbjorn/pythia/main60.f )"
45 + ftp://root.cern.ch/root/pythia6.tar.gz
46 + doc? ( http://home.thep.lu.se/~torbjorn/pythia/lutp${DOC_PV}man2.pdf )
47 + examples? ( mirror://gentoo/${P}-examples.tar.bz2 )"
48
49 LICENSE="public-domain"
50 SLOT="6"
51 KEYWORDS="~amd64 ~sparc ~x86"
52 -IUSE="doc"
53 +IUSE="doc examples"
54 DEPEND=""
55
56 S="${WORKDIR}"
57
58 FORTRAN="gfortran ifc g77"
59
60 +S="${WORKDIR}"
61 src_unpack() {
62 unpack ${A}
63 cat > configure.ac <<-EOF
64 @@ -40,8 +42,8 @@
65 cat > Makefile.am <<-EOF
66 lib_LTLIBRARIES = lib${MY_PN}.la
67 lib${MY_PN}_la_SOURCES = ${P}.f \
68 - = pythia6/tpythia6_called_from_cc.F \
69 - = pythia6/pythia6_common_address.c
70 + pythia6/tpythia6_called_from_cc.F \
71 + pythia6/pythia6_common_address.c
72 EOF
73 eautoreconf
74 }
75 @@ -49,14 +51,11 @@
76 src_install() {
77 emake DESTDIR="${D}" install || die "emake install failed"
78 dodoc "${DISTDIR}"/update_notes-${PV}.txt
79 + insinto /usr/share/doc/${PF}/
80 if use doc; then
81 - insinto /usr/share/doc/${PF}/
82 - doins "${DISTDIR}"/{lutp0613man2.pdf,main60.f} || die
83 + doins "${DISTDIR}"/lutp${DOC_PV}man2.pdf || die
84 + fi
85 + if use examples; then
86 + doins -r examples || die
87 fi
88 -}
89 -
90 -pkg_postinst() {
91 - elog "pythia-6 ebuild is still under development."
92 - elog "Help us improve the ebuild in:"
93 - elog "http://bugs.gentoo.org/show_bug.cgi?id=231484"
94 }
95
96
97
98 1.2 sci-physics/pythia/ChangeLog
99
100 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.2&view=markup
101 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.2&content-type=text/plain
102 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?r1=1.1&r2=1.2
103
104 Index: ChangeLog
105 ===================================================================
106 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v
107 retrieving revision 1.1
108 retrieving revision 1.2
109 diff -u -r1.1 -r1.2
110 --- ChangeLog 2 Sep 2008 08:41:08 -0000 1.1
111 +++ ChangeLog 8 Sep 2008 23:43:20 -0000 1.2
112 @@ -1,6 +1,13 @@
113 # ChangeLog for sci-physics/pythia
114 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
115 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.1 2008/09/02 08:41:08 bicatali Exp $
116 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.2 2008/09/08 23:43:20 bicatali Exp $
117 +
118 +*pythia-8.1.08-r1 (07 Sep 2008)
119 +
120 + 07 Sep 2008; Sébastien Fabbro <bicatali@g.o> metadata.xml,
121 + pythia-6.4.18.ebuild, +pythia-8.1.08-r1.ebuild:
122 + pythia:6, added more examples, some cleaning. pythia:8, added HepMC
123 + support, respect flags, better testing, cleaning.
124
125 *pythia-8.1.08 (02 Sep 2008)
126 *pythia-6.4.18 (02 Sep 2008)
127
128
129
130 1.2 sci-physics/pythia/metadata.xml
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/metadata.xml?rev=1.2&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/metadata.xml?rev=1.2&content-type=text/plain
134 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/metadata.xml?r1=1.1&r2=1.2
135
136 Index: metadata.xml
137 ===================================================================
138 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/metadata.xml,v
139 retrieving revision 1.1
140 retrieving revision 1.2
141 diff -u -r1.1 -r1.2
142 --- metadata.xml 2 Sep 2008 08:41:08 -0000 1.1
143 +++ metadata.xml 8 Sep 2008 23:43:20 -0000 1.2
144 @@ -13,4 +13,8 @@
145 but also borrows many formulae and other knowledge from the
146 literature.
147 </longdescription>
148 +<use>
149 + <flag name='hepmc'>Adds support for High Energy Physics Monte Carlo
150 + Generators <pkg>sci-physics/hepmc</pkg></flag>
151 +</use>
152 </pkgmetadata>
153
154
155
156 1.1 sci-physics/pythia/pythia-8.1.08-r1.ebuild
157
158 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-8.1.08-r1.ebuild?rev=1.1&view=markup
159 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-8.1.08-r1.ebuild?rev=1.1&content-type=text/plain
160
161 Index: pythia-8.1.08-r1.ebuild
162 ===================================================================
163 # Copyright 1999-2008 Gentoo Foundation
164 # Distributed under the terms of the GNU General Public License v2
165 # $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.08-r1.ebuild,v 1.1 2008/09/08 23:43:20 bicatali Exp $
166
167 EAPI=1
168
169 inherit versionator multilib
170
171 MV=$(get_major_version)
172 MY_P=${PN}$(replace_all_version_separators "" ${PV})
173
174 DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
175 HOMEPAGE="http://home.thep.lu.se/~torbjorn/Pythia.html"
176 SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz"
177
178 LICENSE="GPL-2"
179 SLOT="8"
180 KEYWORDS="~amd64 ~sparc ~x86"
181 IUSE="doc examples +hepmc"
182
183 DEPEND="hepmc? ( sci-physics/hepmc )"
184
185 S="${WORKDIR}/${MY_P}"
186
187 src_compile() {
188 use hepmc && export HEPMCVERSION=2 HEPMCLOCATION=/usr
189 # homemade configure script creates a useless config.mk
190 rm -f config.mk && touch config.mk
191 emake SHAREDLIBS=yes || die "emake failed"
192 }
193
194 src_test() {
195 cd "${S}"/examples
196 # use emake for parallel instead of long runmains
197 emake \
198 $(ls main0{1..9}*.cc main1{0..5}*.cc | sed -e 's/.cc//') \
199 || die "emake tests failed"
200 for i in main0{1..9}*.exe main1{0..5}*.exe; do
201 ./${i} > ${i}.out || die "test ${i} failed"
202 done
203 if use hepmc; then
204 emake main31 main32 || die "emake tests for hepmc failed"
205 ./main31.exe > main31.exe.out || die
206 ./main32.exe main32.cmnd hepmcout32.dat > main32.exe.out || die
207 fi
208 emake clean && rm -f main*out
209 }
210
211 src_install() {
212 dolib.so lib/*so || die "shared lib install failed"
213 dolib.a lib/archive/* || die "static lib install failed"
214
215 insinto /usr/include/${PN}
216 doins include/* || die "headers install failed"
217
218 # xmldoc needed by root
219 insinto /usr/share/${PN}
220 doins -r xmldoc || die "xmldoc install failed"
221 echo PYTHIA8DATA=/usr/share/${PN}/xmldoc >> 99pythia8
222 doenvd 99pythia8
223
224 insinto /usr/share/doc/${PF}
225 dodoc GUIDELINES AUTHORS README
226 if use doc; then
227 doins worksheet.pdf || die "doc install failed"
228 mv htmldoc html
229 doins -r html || die "html doc install failed"
230 fi
231 if use examples; then
232 doins -r examples || die "examples install failed"
233 fi
234 }