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: metadata.xml pythia-8.1.80.ebuild ChangeLog pythia-8.1.70.ebuild
Date: Tue, 29 Oct 2013 22:05:01
Message-Id: 20131029220454.D124720047@flycatcher.gentoo.org
1 bicatali 13/10/29 22:04:54
2
3 Modified: metadata.xml ChangeLog
4 Added: pythia-8.1.80.ebuild
5 Removed: pythia-8.1.70.ebuild
6 Log:
7 Version bump for pythiia8, reworked ebuild
8
9 (Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
10
11 Revision Changes Path
12 1.4 sci-physics/pythia/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/metadata.xml?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/metadata.xml?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/metadata.xml?r1=1.3&r2=1.4
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/metadata.xml,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- metadata.xml 16 Oct 2012 18:54:19 -0000 1.3
25 +++ metadata.xml 29 Oct 2013 22:04:54 -0000 1.4
26 @@ -1,8 +1,8 @@
27 <?xml version="1.0" encoding="UTF-8"?>
28 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 <pkgmetadata>
30 - <herd>sci-physics</herd>
31 - <longdescription lang="en">
32 +<herd>sci-physics</herd>
33 +<longdescription lang="en">
34 PYTHIA is a program for the generation of high-energy physics
35 events, i.e. for the description of collisions at high energies
36 between elementary particles such as e+, e-, p and pbar in various
37 @@ -13,8 +13,8 @@
38 but also borrows many formulae and other knowledge from the
39 literature.
40 </longdescription>
41 - <use>
42 - <flag name="hepmc">Adds support for High Energy Physics Monte Carlo
43 +<use>
44 + <flag name="hepmc">Adds support for High Energy Physics Monte Carlo
45 Generators <pkg>sci-physics/hepmc</pkg></flag>
46 - </use>
47 +</use>
48 </pkgmetadata>
49
50
51
52 1.53 sci-physics/pythia/ChangeLog
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.53&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.53&content-type=text/plain
56 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?r1=1.52&r2=1.53
57
58 Index: ChangeLog
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v
61 retrieving revision 1.52
62 retrieving revision 1.53
63 diff -u -r1.52 -r1.53
64 --- ChangeLog 29 Oct 2013 19:52:25 -0000 1.52
65 +++ ChangeLog 29 Oct 2013 22:04:54 -0000 1.53
66 @@ -1,6 +1,12 @@
67 # ChangeLog for sci-physics/pythia
68 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
69 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.52 2013/10/29 19:52:25 bicatali Exp $
70 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.53 2013/10/29 22:04:54 bicatali Exp $
71 +
72 +*pythia-8.1.80 (29 Oct 2013)
73 +
74 + 29 Oct 2013; Sébastien Fabbro <bicatali@g.o> +pythia-8.1.80.ebuild,
75 + -pythia-8.1.70.ebuild, metadata.xml:
76 + Version bump for pythiia8, reworked ebuild
77
78 *pythia-6.4.28 (29 Oct 2013)
79
80
81
82
83 1.1 sci-physics/pythia/pythia-8.1.80.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.80.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.80.ebuild?rev=1.1&content-type=text/plain
87
88 Index: pythia-8.1.80.ebuild
89 ===================================================================
90 # Copyright 1999-2013 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.80.ebuild,v 1.1 2013/10/29 22:04:54 bicatali Exp $
93
94 EAPI=5
95
96 inherit eutils versionator toolchain-funcs multilib
97
98 MV=$(get_major_version)
99 MY_P=${PN}$(replace_all_version_separators "" ${PV})
100
101 DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
102 HOMEPAGE="http://pythia8.hepforge.org/"
103 SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz"
104
105 SLOT="8"
106 LICENSE="GPL-2"
107 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
108 IUSE="doc examples gzip +hepmc static-libs"
109
110 DEPEND="
111 gzip? ( dev-libs/boost sys-libs/zlib )
112 hepmc? ( sci-physics/hepmc )"
113 RDEPEND="${DEPEND}"
114
115 S="${WORKDIR}/${MY_P}"
116
117 src_prepare() {
118 PYTHIADIR="${EPREFIX}/usr/share/pythia8"
119 # set datadir for xmldor in include file
120 sed -i \
121 -e "s:../xmldoc:${PYTHIADIR}/xmldoc:" \
122 include/Pythia8/Pythia.h || die
123 # respect libdir, prefix, flags
124 sed -i \
125 -e "s:/lib:/$(get_libdir):g" \
126 -e "s:/usr:${EPREFIX}/usr:g" \
127 -e "s:-O2::g" \
128 configure || die
129 sed -i \
130 -e "s:LIBDIR=.*:LIBDIR=$(get_libdir):" \
131 -e "s:LIBDIRARCH=.*:LIBDIRARCH=$(get_libdir):" \
132 -e "s:cp -r lib:cp -r $(get_libdir):" \
133 -e '/ln -fs/d' \
134 Makefile examples/Makefile || die
135 }
136
137 src_configure() {
138 export USRCXXFLAGS="${CXXFLAGS}"
139 export USRLDFLAGSSHARED="${LDFLAGS}"
140 tc-export CC CXX
141 # homemade configure script
142 ./configure \
143 --installdir="${EPREFIX}/usr" \
144 --datadir="${PYTHIADIR}" \
145 --enable-shared \
146 $(usex gzip "--enable-gzip=yes" "") \
147 $(usex hepmc "--with-hepmcversion=2 --with-hepmc=${EPREFIX}/usr" "") \
148 || die
149 if ! use static-libs; then
150 sed -i \
151 -e '/targets.*=$(LIBDIR.*\.a$/d' \
152 -e 's/+=\(.*libpythia8\.\)/=\1/' \
153 Makefile || die
154 sed -i \
155 -e 's:\.a:\.so:g' \
156 -e 's:$(LIBDIRARCH):$(LIBDIR):g' \
157 examples/Makefile || die
158 fi
159 }
160
161 src_test() {
162 cd examples || die
163 # use emake for parallel instead of long runmains
164 emake main0{1..9}
165 for i in main0{1..9}*.exe; do
166 LD_LIBRARY_PATH="${S}/$(get_libdir):${LD_LIBRARY_PATH}" \
167 ./${i} > ${i}.out || die "test ${i} failed"
168 done
169 if use hepmc; then
170 emake main31
171 LD_LIBRARY_PATH="${S}/$(get_libdir):${LD_LIBRARY_PATH}" \
172 ./main31.exe > main31.exe.out || die
173 fi
174 emake clean && rm main*out
175 }
176
177 src_install() {
178 emake INSTALLDIR="${ED}/usr" DATADIR="${D}/${PYTHIADIR}" install
179 rm -r "${D}"/${PYTHIADIR}/{html,php}doc || die
180 echo "PYTHIA8DATA=${PYTHIADIR}/xmldoc" >> 99pythia8
181 doenvd 99pythia8
182
183 dodoc GUIDELINES AUTHORS README
184 if use doc; then
185 dodoc worksheet.pdf
186 dohtml -r htmldoc/*
187 fi
188 if use examples; then
189 insinto /usr/share/doc/${PF}
190 doins -r examples
191 fi
192 }