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/hepmc: hepmc-2.06.05.ebuild ChangeLog
Date: Tue, 03 May 2011 16:21:16
Message-Id: 20110503162107.360DF20054@flycatcher.gentoo.org
1 bicatali 11/05/03 16:21:07
2
3 Modified: ChangeLog
4 Added: hepmc-2.06.05.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.27 sci-physics/hepmc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.27&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.27&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?r1=1.26&r2=1.27
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v
20 retrieving revision 1.26
21 retrieving revision 1.27
22 diff -u -r1.26 -r1.27
23 --- ChangeLog 14 Apr 2011 08:12:45 -0000 1.26
24 +++ ChangeLog 3 May 2011 16:21:07 -0000 1.27
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-physics/hepmc
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.26 2011/04/14 08:12:45 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.27 2011/05/03 16:21:07 bicatali Exp $
30 +
31 +*hepmc-2.06.05 (03 May 2011)
32 +
33 + 03 May 2011; Sébastien Fabbro <bicatali@g.o> +hepmc-2.06.05.ebuild:
34 + Version bump
35
36 14 Apr 2011; Justin Lecher <jlec@g.o> hepmc-2.06.03.ebuild,
37 hepmc-2.06.04.ebuild, +files/hepmc-2.06.04-gcc46.patch:
38
39
40
41 1.1 sci-physics/hepmc/hepmc-2.06.05.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/hepmc-2.06.05.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/hepmc-2.06.05.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hepmc-2.06.05.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/hepmc-2.06.05.ebuild,v 1.1 2011/05/03 16:21:07 bicatali Exp $
51
52 EAPI=4
53
54 inherit eutils
55
56 MYP=HepMC-${PV}
57
58 DESCRIPTION="Event Record for Monte Carlo Generators"
59 HOMEPAGE="https://savannah.cern.ch/projects/hepmc/"
60 SRC_URI="http://lcgapp.cern.ch/project/simu/HepMC/download/${MYP}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~x86"
65 IUSE="doc examples gev cm static-libs"
66
67 RDEPEND=""
68 DEPEND="${RDEPEND}
69 doc? ( app-doc/doxygen )"
70
71 S="${WORKDIR}/${MYP}"
72
73 src_configure() {
74 # use MeV over GeV and mm over cm
75 local length_conf="MM"
76 use cm && length_conf="CM"
77 local momentum_conf="MEV"
78 use gev && momentum_conf="GEV"
79 econf \
80 --with-length=${length_conf} \
81 --with-momentum=${momentum_conf} \
82 $(use_enable static-libs static)
83 }
84
85 src_compile() {
86 emake
87 if use doc; then
88 cd doc
89 doxygen doxygen.conf || die "doc building failed"
90 fi
91 }
92
93 src_install() {
94 emake \
95 DESTDIR="${ED}" \
96 INSTALLDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
97 doc_installdir="${EPREFIX}/usr/share/doc/${PF}" \
98 install
99
100 insinto /usr/share/doc/${PF}
101 if use doc; then
102 doins -r doc/html doc/*.pdf || die
103 else
104 rm -f "${ED}"/usr/share/doc/${PF}/*pdf
105 fi
106 use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
107 }