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.06.08.ebuild |
Date: | Fri, 02 Mar 2012 05:26:13 |
Message-Id: | 20120302052602.B28BD2004B@flycatcher.gentoo.org |
1 | bicatali 12/03/02 05:26:02 |
2 | |
3 | Modified: ChangeLog |
4 | Added: hepmc-2.06.08.ebuild |
5 | Log: |
6 | Version bump |
7 | |
8 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.31 sci-physics/hepmc/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.31&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?rev=1.31&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/ChangeLog?r1=1.30&r2=1.31 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v |
20 | retrieving revision 1.30 |
21 | retrieving revision 1.31 |
22 | diff -u -r1.30 -r1.31 |
23 | --- ChangeLog 19 Jan 2012 23:28:40 -0000 1.30 |
24 | +++ ChangeLog 2 Mar 2012 05:26:02 -0000 1.31 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sci-physics/hepmc |
27 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.30 2012/01/19 23:28:40 bicatali Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sci-physics/hepmc/ChangeLog,v 1.31 2012/03/02 05:26:02 bicatali Exp $ |
30 | + |
31 | +*hepmc-2.06.08 (02 Mar 2012) |
32 | + |
33 | + 02 Mar 2012; Sébastien Fabbro <bicatali@g.o> +hepmc-2.06.08.ebuild: |
34 | + Version bump |
35 | |
36 | *hepmc-2.06.07 (19 Jan 2012) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 sci-physics/hepmc/hepmc-2.06.08.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/hepmc-2.06.08.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/hepmc/hepmc-2.06.08.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: hepmc-2.06.08.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2012 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.08.ebuild,v 1.1 2012/03/02 05:26:02 bicatali Exp $ |
51 | |
52 | EAPI=4 |
53 | |
54 | inherit cmake-utils |
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 ~x86" |
65 | IUSE="cm doc examples gev static-libs test" |
66 | |
67 | RDEPEND="" |
68 | DEPEND="${RDEPEND} |
69 | doc? ( app-doc/doxygen dev-tex/floatflt )" |
70 | |
71 | S="${WORKDIR}/${MYP}" |
72 | |
73 | DOCS=( ChangeLog AUTHORS ) |
74 | |
75 | src_prepare() { |
76 | sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt |
77 | # CMake doc building broken |
78 | # gentoo doc directory |
79 | #sed -i \ |
80 | # -e "s:share/HepMC/doc:share/doc/${PF}:" \ |
81 | # doc/CMakeLists.txt || die |
82 | |
83 | # gentoo examples directory |
84 | sed -i \ |
85 | -e "s:share/HepMC:share/doc/${PF}:" \ |
86 | $(find examples -name CMakeLists.txt) || die |
87 | |
88 | # respect user's flags |
89 | sed -i \ |
90 | -e "s/-O -ansi -pedantic -Wall//g" \ |
91 | cmake/Modules/HepMCVariables.cmake || die |
92 | |
93 | # gentoo libdir love |
94 | sed -i \ |
95 | -e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \ |
96 | {src,fio}/CMakeLists.txt || die |
97 | |
98 | # remove targets if use flags not set |
99 | use examples || sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt |
100 | use test || sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt |
101 | if ! use static-libs; then |
102 | sed -i \ |
103 | -e '/(HepMC\(fio\|\)S/d' \ |
104 | -e '/TARGETS/s/HepMC\(fio\|\)S//' \ |
105 | {src,fio}/CMakeLists.txt || die |
106 | fi |
107 | } |
108 | |
109 | src_configure() { |
110 | # use MeV over GeV and mm over cm |
111 | local length_conf="MM" |
112 | use cm && length_conf="CM" |
113 | local momentum_conf="MEV" |
114 | use gev && momentum_conf="GEV" |
115 | mycmakeargs+=( |
116 | -Dlength=${length_conf} |
117 | -Dmomentum=${momentum_conf} |
118 | ) |
119 | cmake-utils_src_configure |
120 | } |
121 | |
122 | src_compile() { |
123 | cmake-utils_src_compile |
124 | if use doc; then |
125 | cd doc |
126 | ./buildDoc.sh || die |
127 | ./buildDoxygen.sh || die |
128 | fi |
129 | } |
130 | |
131 | src_install() { |
132 | cmake-utils_src_install |
133 | use doc && dodoc doc/*.pdf && dohtml -r doc/html/* |
134 | } |