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