1 |
bicatali 14/02/23 02:28:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pythia-8.1.83.ebuild |
5 |
Removed: pythia-8.1.76.ebuild pythia-6.4.27.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
|
9 |
(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
10 |
|
11 |
Revision Changes Path |
12 |
1.54 sci-physics/pythia/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.54&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.54&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?r1=1.53&r2=1.54 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v |
21 |
retrieving revision 1.53 |
22 |
retrieving revision 1.54 |
23 |
diff -u -r1.53 -r1.54 |
24 |
--- ChangeLog 29 Oct 2013 22:04:54 -0000 1.53 |
25 |
+++ ChangeLog 23 Feb 2014 02:28:10 -0000 1.54 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-physics/pythia |
28 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.53 2013/10/29 22:04:54 bicatali Exp $ |
30 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.54 2014/02/23 02:28:10 bicatali Exp $ |
32 |
+ |
33 |
+*pythia-8.1.83 (23 Feb 2014) |
34 |
+ |
35 |
+ 23 Feb 2014; Sébastien Fabbro <bicatali@g.o> +pythia-8.1.83.ebuild, |
36 |
+ -pythia-6.4.27.ebuild, -pythia-8.1.76.ebuild: |
37 |
+ Version bump |
38 |
|
39 |
*pythia-8.1.80 (29 Oct 2013) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-physics/pythia/pythia-8.1.83.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.83.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.83.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pythia-8.1.83.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.83.ebuild,v 1.1 2014/02/23 02:28:10 bicatali Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit eutils versionator toolchain-funcs multilib |
58 |
|
59 |
MV=$(get_major_version) |
60 |
MY_P=${PN}$(replace_all_version_separators "" ${PV}) |
61 |
|
62 |
DESCRIPTION="Lund Monte Carlo high-energy physics event generator" |
63 |
HOMEPAGE="http://pythia8.hepforge.org/" |
64 |
SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz" |
65 |
|
66 |
SLOT="8" |
67 |
LICENSE="GPL-2" |
68 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
69 |
IUSE="doc examples gzip +hepmc static-libs" |
70 |
|
71 |
DEPEND=" |
72 |
gzip? ( dev-libs/boost sys-libs/zlib ) |
73 |
hepmc? ( sci-physics/hepmc )" |
74 |
RDEPEND="${DEPEND}" |
75 |
|
76 |
S="${WORKDIR}/${MY_P}" |
77 |
|
78 |
src_prepare() { |
79 |
PYTHIADIR="${EPREFIX}/usr/share/pythia8" |
80 |
# set datadir for xmldor in include file |
81 |
sed -i \ |
82 |
-e "s:../xmldoc:${PYTHIADIR}/xmldoc:" \ |
83 |
include/Pythia8/Pythia.h || die |
84 |
# respect libdir, prefix, flags |
85 |
sed -i \ |
86 |
-e "s:/lib:/$(get_libdir):g" \ |
87 |
-e "s:/usr:${EPREFIX}/usr:g" \ |
88 |
-e "s:-O2::g" \ |
89 |
configure || die |
90 |
sed -i \ |
91 |
-e "s:LIBDIR=.*:LIBDIR=$(get_libdir):" \ |
92 |
-e "s:LIBDIRARCH=.*:LIBDIRARCH=$(get_libdir):" \ |
93 |
-e "s:cp -r lib:cp -r $(get_libdir):" \ |
94 |
-e '/ln -fs/d' \ |
95 |
Makefile examples/Makefile || die |
96 |
} |
97 |
|
98 |
src_configure() { |
99 |
export USRCXXFLAGS="${CXXFLAGS}" |
100 |
export USRLDFLAGSSHARED="${LDFLAGS}" |
101 |
tc-export CC CXX |
102 |
# homemade configure script |
103 |
./configure \ |
104 |
--installdir="${EPREFIX}/usr" \ |
105 |
--datadir="${PYTHIADIR}" \ |
106 |
--enable-shared \ |
107 |
$(usex gzip "--enable-gzip=yes" "") \ |
108 |
$(usex hepmc "--with-hepmcversion=2 --with-hepmc=${EPREFIX}/usr" "") \ |
109 |
|| die |
110 |
if ! use static-libs; then |
111 |
sed -i \ |
112 |
-e '/targets.*=$(LIBDIR.*\.a$/d' \ |
113 |
-e 's/+=\(.*libpythia8\.\)/=\1/' \ |
114 |
Makefile || die |
115 |
sed -i \ |
116 |
-e 's:\.a:\.so:g' \ |
117 |
-e 's:$(LIBDIRARCH):$(LIBDIR):g' \ |
118 |
examples/Makefile || die |
119 |
fi |
120 |
} |
121 |
|
122 |
src_test() { |
123 |
cd examples || die |
124 |
# use emake for parallel instead of long runmains |
125 |
local tests="$(echo main0{1..8})" t |
126 |
use hepmc && tests="${tests} main31" |
127 |
emake ${tests} |
128 |
for t in ${tests}; do |
129 |
LD_LIBRARY_PATH="${S}/$(get_libdir):${LD_LIBRARY_PATH}" \ |
130 |
bin/${t}.exe > ${t}.out || die "test ${t} failed" |
131 |
done |
132 |
emake clean && rm main*out |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
emake INSTALLDIR="${ED}/usr" DATADIR="${D}/${PYTHIADIR}" install |
137 |
rm -r "${D}"/${PYTHIADIR}/{html,php}doc || die |
138 |
echo "PYTHIA8DATA=${PYTHIADIR}/xmldoc" >> 99pythia8 |
139 |
doenvd 99pythia8 |
140 |
|
141 |
dodoc GUIDELINES AUTHORS README |
142 |
if use doc; then |
143 |
dodoc worksheet.pdf |
144 |
dohtml -r htmldoc/* |
145 |
fi |
146 |
if use examples; then |
147 |
insinto /usr/share/doc/${PF} |
148 |
doins -r examples |
149 |
fi |
150 |
} |