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: ChangeLog pythia-8.1.25.ebuild
Date: Wed, 24 Jun 2009 04:14:01
Message-Id: E1MJJry-0004H3-TR@stork.gentoo.org
1 bicatali 09/06/24 04:13:58
2
3 Modified: ChangeLog
4 Added: pythia-8.1.25.ebuild
5 Log:
6 Version bump, thanks Ben Bannier for testing, closing bug #274969
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.12 sci-physics/pythia/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 5 May 2009 19:42:02 -0000 1.11
23 +++ ChangeLog 24 Jun 2009 04:13:58 -0000 1.12
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-physics/pythia
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.11 2009/05/05 19:42:02 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.12 2009/06/24 04:13:58 bicatali Exp $
29 +
30 +*pythia-8.1.25 (24 Jun 2009)
31 +
32 + 24 Jun 2009; Sébastien Fabbro <bicatali@g.o>
33 + +pythia-8.1.25.ebuild:
34 + Version bump, thanks Ben Bannier for testing, closing bug #274969
35
36 05 May 2009; Christian Faulhammer <fauli@g.o>
37 pythia-8.1.08-r1.ebuild:
38
39
40
41 1.1 sci-physics/pythia/pythia-8.1.25.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-8.1.25.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/pythia/pythia-8.1.25.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pythia-8.1.25.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.25.ebuild,v 1.1 2009/06/24 04:13:58 bicatali Exp $
51
52 EAPI=1
53
54 inherit eutils versionator
55
56 MV=$(get_major_version)
57 MY_P=${PN}$(replace_all_version_separators "" ${PV})
58
59 DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
60 HOMEPAGE="http://home.thep.lu.se/~torbjorn/Pythia.html"
61 SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz"
62
63 LICENSE="GPL-2"
64 SLOT="8"
65 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
66 IUSE="doc examples +hepmc"
67
68 DEPEND="hepmc? ( sci-physics/hepmc )"
69 RDEPEND="${DEPEND}"
70
71 S="${WORKDIR}/${MY_P}"
72
73 src_compile() {
74 use hepmc && export HEPMCVERSION=2 HEPMCLOCATION=/usr
75 # homemade configure script creates a useless config.mk
76 rm -f config.mk && touch config.mk
77 emake SHAREDLIBS=yes LDFLAGSSHARED="${LDFLAGS}" || die "emake failed"
78 }
79
80 src_test() {
81 cd "${S}"/examples
82 # use emake for parallel instead of long runmains
83 emake \
84 $(ls main0{1..9}*.cc main1{0..5}*.cc | sed -e 's/.cc//') \
85 || die "emake tests failed"
86 for i in main0{1..9}*.exe main1{0..5}*.exe; do
87 ./${i} > ${i}.out || die "test ${i} failed"
88 done
89 if use hepmc; then
90 emake main31 main32 || die "emake tests for hepmc failed"
91 ./main31.exe > main31.exe.out || die
92 ./main32.exe main32.cmnd hepmcout32.dat > main32.exe.out || die
93 fi
94 emake clean && rm -f main*out
95 }
96
97 src_install() {
98 dolib.so lib/*so || die "shared lib install failed"
99 dolib.a lib/archive/* || die "static lib install failed"
100
101 insinto /usr/include/${PN}
102 doins include/* || die "headers install failed"
103
104 # xmldoc needed by root
105 insinto /usr/share/${PN}
106 doins -r xmldoc || die "xmldoc install failed"
107 echo PYTHIA8DATA=/usr/share/${PN}/xmldoc >> 99pythia8
108 doenvd 99pythia8
109
110 insinto /usr/share/doc/${PF}
111 dodoc GUIDELINES AUTHORS README
112 if use doc; then
113 doins worksheet.pdf || die "doc install failed"
114 mv htmldoc html
115 doins -r html || die "html doc install failed"
116 fi
117 if use examples; then
118 doins -r examples || die "examples install failed"
119 fi
120 }