Gentoo Archives: gentoo-commits

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