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: ChangeLog hepmc-2.05.01.ebuild hepmc-2.04.00.ebuild hepmc-2.04.01.ebuild
Date: Fri, 08 Jan 2010 03:38:37
Message-Id: E1NT5gH-0001MX-WB@stork.gentoo.org
1 bicatali 10/01/08 03:38:33
2
3 Modified: ChangeLog
4 Added: hepmc-2.05.01.ebuild
5 Removed: hepmc-2.04.00.ebuild hepmc-2.04.01.ebuild
6 Log:
7 Version bump and skip the buggy tests in the case when MeV and cm are chosen units
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.12 sci-physics/hepmc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/hepmc/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 28 Dec 2009 18:54:23 -0000 1.11
24 +++ ChangeLog 8 Jan 2010 03:38:33 -0000 1.12
25 @@ -1,6 +1,17 @@
26 # ChangeLog for sci-physics/hepmc
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.11 2009/12/28 18:54:23 armin76 Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.12 2010/01/08 03:38:33 bicatali Exp $
31 +
32 + 08 Jan 2010; Sébastien Fabbro <bicatali@g.o>
33 + -hepmc-2.04.00.ebuild, -hepmc-2.04.01.ebuild, +hepmc-2.05.01.ebuild:
34 + Version bump and skip the buggy tests in the case when MeV and cm are
35 + chosen units
36 +
37 +*hepmc-2.05.01 (08 Jan 2010)
38 +
39 + 08 Jan 2010; Sébastien Fabbro <bicatali@g.o>
40 + -hepmc-2.04.00.ebuild, -hepmc-2.04.01.ebuild, +hepmc-2.05.01.ebuild:
41 + Version bump
42
43 28 Dec 2009; Raúl Porcel <armin76@g.o> hepmc-2.05.00.ebuild:
44 sparc stable wrt #294444
45
46
47
48 1.1 sci-physics/hepmc/hepmc-2.05.01.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/hepmc/hepmc-2.05.01.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/hepmc/hepmc-2.05.01.ebuild?rev=1.1&content-type=text/plain
52
53 Index: hepmc-2.05.01.ebuild
54 ===================================================================
55 # Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/hepmc-2.05.01.ebuild,v 1.1 2010/01/08 03:38:33 bicatali Exp $
58
59 EAPI=2
60
61 MYP=HepMC-${PV}
62
63 DESCRIPTION="Event Record for Monte Carlo Generators"
64 HOMEPAGE="https://savannah.cern.ch/projects/hepmc/"
65 SRC_URI="http://lcgapp.cern.ch/project/simu/HepMC/download/${MYP}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
70 IUSE="doc examples gev cm"
71
72 RDEPEND=""
73 DEPEND="${RDEPEND}"
74
75 S="${WORKDIR}/${MYP}"
76
77 src_configure() {
78 # use MeV over GeV and mm over cm
79 local length_conf="MM"
80 use cm && length_conf="CM"
81 local momentum_conf="MEV"
82 use gev && momentum_conf="GEV"
83 econf \
84 --with-length=${length_conf} \
85 --with-momentum=${momentum_conf}
86 }
87
88 src_test() {
89 # hack to skip buggy tests with MeV:
90 # https://savannah.cern.ch/support/index.php?108390
91 if use gev && ! use cm; then
92 emake check || die "emake check failed"
93 fi
94 }
95
96 src_install() {
97 emake \
98 DESTDIR="${D}" \
99 INSTALLDIR=/usr/share/doc/${PF}/examples \
100 doc_installdir=/usr/share/doc/${PF} \
101 install || die "emake install failed"
102
103 dodoc README AUTHORS ChangeLog
104 insinto /usr/share/doc/${PF}
105 if use doc; then
106 doins -r doc/html || die
107 else
108 rm -f "${D}"/usr/share/doc/${PF}/*pdf
109 fi
110 use examples || rm -rf "${D}"/usr/share/doc/${PF}/examples
111 }