Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/vgm/, sci-physics/geant-vmc/
Date: Sat, 06 Aug 2016 06:46:35
Message-Id: 1470465699.dc4a79d21bc0c4c18499f9a7b401546fa302b12a.jlec@gentoo
1 commit: dc4a79d21bc0c4c18499f9a7b401546fa302b12a
2 Author: olifre <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat Aug 6 06:41:39 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 6 06:41:39 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=dc4a79d2
7
8 Version bumps for sci-physics/geant-vmc and sci-physics/vgm (#655)
9
10 * sci-physics/vgm: Bump to 4.3, update to EAPI 6.
11
12 Package-Manager: portage-2.3.0
13
14 * sci-physics/geant-vmc: Bump to geant-vmc-4.3.3, adapt to changed upstream SRC URI, bump all geant-4 packages to EAPI 6.
15
16 Package-Manager: portage-2.3.0
17
18 sci-physics/geant-vmc/geant-vmc-3.1.15a.ebuild | 4 +--
19 sci-physics/geant-vmc/geant-vmc-4.2.15a.ebuild | 4 +--
20 ...eant-vmc-9999.ebuild => geant-vmc-4.3.3.ebuild} | 22 ++++++++--------
21 sci-physics/geant-vmc/geant-vmc-9999.ebuild | 22 ++++++++--------
22 .../vgm/{vgm-9999.ebuild => vgm-4.3.ebuild} | 30 ++++++++++++----------
23 sci-physics/vgm/vgm-9999.ebuild | 30 ++++++++++++----------
24 6 files changed, 60 insertions(+), 52 deletions(-)
25
26 diff --git a/sci-physics/geant-vmc/geant-vmc-3.1.15a.ebuild b/sci-physics/geant-vmc/geant-vmc-3.1.15a.ebuild
27 index 15738c0..767c759 100644
28 --- a/sci-physics/geant-vmc/geant-vmc-3.1.15a.ebuild
29 +++ b/sci-physics/geant-vmc/geant-vmc-3.1.15a.ebuild
30 @@ -1,4 +1,4 @@
31 -# Copyright 1999-2014 Gentoo Foundation
32 +# Copyright 1999-2016 Gentoo Foundation
33 # Distributed under the terms of the GNU General Public License v2
34 # $Id$
35
36 @@ -10,7 +10,7 @@ MPV=$(get_version_component_range 2-)
37
38 DESCRIPTION="Virtual Monte Carlo Geant3 implementation"
39 HOMEPAGE="http://root.cern.ch/root/vmc/VirtualMC.html"
40 -SRC_URI="ftp://root.cern.ch/root/vmc/geant321+_vmc.${MPV}.tar.gz"
41 +SRC_URI="http://root.cern.ch/download/vmc/geant321+_vmc.${MPV}.tar.gz"
42
43 LICENSE="GPL-2"
44 SLOT="3"
45
46 diff --git a/sci-physics/geant-vmc/geant-vmc-4.2.15a.ebuild b/sci-physics/geant-vmc/geant-vmc-4.2.15a.ebuild
47 index c00fbca..efd9a00 100644
48 --- a/sci-physics/geant-vmc/geant-vmc-4.2.15a.ebuild
49 +++ b/sci-physics/geant-vmc/geant-vmc-4.2.15a.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2014 Gentoo Foundation
52 +# Copyright 1999-2016 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Id$
55
56 @@ -10,7 +10,7 @@ MPV=$(get_version_component_range 2-)
57
58 DESCRIPTION="Virtual Monte Carlo Geant4 implementation"
59 HOMEPAGE="http://root.cern.ch/root/vmc/VirtualMC.html"
60 -SRC_URI="ftp://root.cern.ch/root/vmc/geant4_vmc.${MPV}.tar.gz"
61 +SRC_URI="http://root.cern.ch/download/vmc/geant4_vmc.${MPV}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="4"
65
66 diff --git a/sci-physics/geant-vmc/geant-vmc-9999.ebuild b/sci-physics/geant-vmc/geant-vmc-4.3.3.ebuild
67 similarity index 72%
68 copy from sci-physics/geant-vmc/geant-vmc-9999.ebuild
69 copy to sci-physics/geant-vmc/geant-vmc-4.3.3.ebuild
70 index deaf458..2e5507d 100644
71 --- a/sci-physics/geant-vmc/geant-vmc-9999.ebuild
72 +++ b/sci-physics/geant-vmc/geant-vmc-4.3.3.ebuild
73 @@ -1,17 +1,19 @@
74 -# Copyright 1999-2015 Gentoo Foundation
75 +# Copyright 1999-2016 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Id$
78
79 -EAPI=5
80 +EAPI=6
81
82 -inherit cmake-utils versionator git-r3
83 +inherit cmake-utils versionator
84
85 if [[ ${PV} == *9999* ]]; then
86 + inherit git-r3
87 EGIT_REPO_URI=" http://root.cern.ch/git/geant4_vmc.git"
88 KEYWORDS=""
89 else
90 MPV=$(get_version_component_range 2-)
91 - SRC_URI="ftp://root.cern.ch/root/vmc/geant4_vmc.${MPV}.tar.gz"
92 + SRC_URI="http://root.cern.ch/download/vmc/geant4_vmc.${MPV}.tar.gz"
93 + S="${WORKDIR}/geant4_vmc.${MPV}"
94 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
95 fi
96
97 @@ -31,12 +33,12 @@ DEPEND="${RDEPEND}
98
99 src_configure() {
100 local mycmakeargs=(
101 - $(cmake-utils_use vgm Geant4VMC_USE_VGM)
102 - $(cmake-utils_use geant3 Geant4VMC_USE_GEANT4_G3TOG4)
103 - $(cmake-utils_use g4root Geant4VMC_USE_G4Root)
104 - $(cmake-utils_use mtroot Geant4VMC_USE_MTRoot)
105 - $(cmake-utils_use test Geant4VMC_BUILD_EXAMPLES)
106 - $(cmake-utils_use examples Geant4VMC_INSTALL_EXAMPLES)
107 + -DGeant4VMC_USE_VGM="$(usex vgm)"
108 + -DGeant4VMC_USE_GEANT4_G3TOG4="$(usex geant3)"
109 + -DGeant4VMC_USE_G4Root="$(usex g4root)"
110 + -DGeant4VMC_USE_MTRoot="$(usex mtroot)"
111 + -DGeant4VMC_BUILD_EXAMPLES="$(usex test)"
112 + -DGeant4VMC_INSTALL_EXAMPLES="$(usex examples)"
113 )
114 cmake-utils_src_configure
115 }
116
117 diff --git a/sci-physics/geant-vmc/geant-vmc-9999.ebuild b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
118 index deaf458..2e5507d 100644
119 --- a/sci-physics/geant-vmc/geant-vmc-9999.ebuild
120 +++ b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
121 @@ -1,17 +1,19 @@
122 -# Copyright 1999-2015 Gentoo Foundation
123 +# Copyright 1999-2016 Gentoo Foundation
124 # Distributed under the terms of the GNU General Public License v2
125 # $Id$
126
127 -EAPI=5
128 +EAPI=6
129
130 -inherit cmake-utils versionator git-r3
131 +inherit cmake-utils versionator
132
133 if [[ ${PV} == *9999* ]]; then
134 + inherit git-r3
135 EGIT_REPO_URI=" http://root.cern.ch/git/geant4_vmc.git"
136 KEYWORDS=""
137 else
138 MPV=$(get_version_component_range 2-)
139 - SRC_URI="ftp://root.cern.ch/root/vmc/geant4_vmc.${MPV}.tar.gz"
140 + SRC_URI="http://root.cern.ch/download/vmc/geant4_vmc.${MPV}.tar.gz"
141 + S="${WORKDIR}/geant4_vmc.${MPV}"
142 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
143 fi
144
145 @@ -31,12 +33,12 @@ DEPEND="${RDEPEND}
146
147 src_configure() {
148 local mycmakeargs=(
149 - $(cmake-utils_use vgm Geant4VMC_USE_VGM)
150 - $(cmake-utils_use geant3 Geant4VMC_USE_GEANT4_G3TOG4)
151 - $(cmake-utils_use g4root Geant4VMC_USE_G4Root)
152 - $(cmake-utils_use mtroot Geant4VMC_USE_MTRoot)
153 - $(cmake-utils_use test Geant4VMC_BUILD_EXAMPLES)
154 - $(cmake-utils_use examples Geant4VMC_INSTALL_EXAMPLES)
155 + -DGeant4VMC_USE_VGM="$(usex vgm)"
156 + -DGeant4VMC_USE_GEANT4_G3TOG4="$(usex geant3)"
157 + -DGeant4VMC_USE_G4Root="$(usex g4root)"
158 + -DGeant4VMC_USE_MTRoot="$(usex mtroot)"
159 + -DGeant4VMC_BUILD_EXAMPLES="$(usex test)"
160 + -DGeant4VMC_INSTALL_EXAMPLES="$(usex examples)"
161 )
162 cmake-utils_src_configure
163 }
164
165 diff --git a/sci-physics/vgm/vgm-9999.ebuild b/sci-physics/vgm/vgm-4.3.ebuild
166 similarity index 63%
167 copy from sci-physics/vgm/vgm-9999.ebuild
168 copy to sci-physics/vgm/vgm-4.3.ebuild
169 index 169184f..c1f05af 100644
170 --- a/sci-physics/vgm/vgm-9999.ebuild
171 +++ b/sci-physics/vgm/vgm-4.3.ebuild
172 @@ -1,20 +1,18 @@
173 -# Copyright 1999-2014 Gentoo Foundation
174 +# Copyright 1999-2016 Gentoo Foundation
175 # Distributed under the terms of the GNU General Public License v2
176 # $Id$
177
178 -EAPI=5
179 +EAPI=6
180
181 -inherit cmake-utils versionator subversion
182 +inherit cmake-utils versionator
183
184 if [[ ${PV} == *9999* ]]; then
185 + inherit subversion
186 ESVN_REPO_URI="svn://svn.code.sf.net/p/vgm/code/trunk/vgm"
187 KEYWORDS=""
188 else
189 - # .zip-snapshot can be recreated by visiting
190 - # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-')
191 - TAG_VER="${PN}-code-731-tags-v$(replace_all_version_separators '-')"
192 - SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip"
193 - S=${WORKDIR}/${TAG_VER}/${PN}
194 + SRC_URI="http://ivana.home.cern.ch/ivana/${PN}.${PV}.tar.gz"
195 + S="${WORKDIR}/${PN}.${PV}"
196 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
197 fi
198
199 @@ -34,15 +32,19 @@ DEPEND="${RDEPEND}
200 doc? ( app-doc/doxygen[dot] )
201 test? ( geant4? ( xml? ( >=sci-physics/geant-4.9.6[gdml] ) ) )"
202
203 +src_prepare() {
204 + default
205 +}
206 +
207 src_configure() {
208 local mycmakeargs=(
209 -DCLHEP_DIR="${EROOT}usr"
210 - $(cmake-utils_use_with examples)
211 - $(cmake-utils_use examples VGM_INSTALL_EXAMPLES)
212 - $(cmake-utils_use_with geant4)
213 - $(cmake-utils_use_with root)
214 - $(cmake-utils_use_with test)
215 - $(cmake-utils_use_with xml xercesc)
216 + -Dexamples="$(usex examples)"
217 + -DVGM_INSTALL_EXAMPLES="$(usex examples)"
218 + -Dgeant4="$(usex geant4)"
219 + -Droot="$(usex root)"
220 + -Dtest="$(usex test)"
221 + -Dxercesc="$(usex xml)"
222 )
223 cmake-utils_src_configure
224 }
225
226 diff --git a/sci-physics/vgm/vgm-9999.ebuild b/sci-physics/vgm/vgm-9999.ebuild
227 index 169184f..c1f05af 100644
228 --- a/sci-physics/vgm/vgm-9999.ebuild
229 +++ b/sci-physics/vgm/vgm-9999.ebuild
230 @@ -1,20 +1,18 @@
231 -# Copyright 1999-2014 Gentoo Foundation
232 +# Copyright 1999-2016 Gentoo Foundation
233 # Distributed under the terms of the GNU General Public License v2
234 # $Id$
235
236 -EAPI=5
237 +EAPI=6
238
239 -inherit cmake-utils versionator subversion
240 +inherit cmake-utils versionator
241
242 if [[ ${PV} == *9999* ]]; then
243 + inherit subversion
244 ESVN_REPO_URI="svn://svn.code.sf.net/p/vgm/code/trunk/vgm"
245 KEYWORDS=""
246 else
247 - # .zip-snapshot can be recreated by visiting
248 - # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-')
249 - TAG_VER="${PN}-code-731-tags-v$(replace_all_version_separators '-')"
250 - SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip"
251 - S=${WORKDIR}/${TAG_VER}/${PN}
252 + SRC_URI="http://ivana.home.cern.ch/ivana/${PN}.${PV}.tar.gz"
253 + S="${WORKDIR}/${PN}.${PV}"
254 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
255 fi
256
257 @@ -34,15 +32,19 @@ DEPEND="${RDEPEND}
258 doc? ( app-doc/doxygen[dot] )
259 test? ( geant4? ( xml? ( >=sci-physics/geant-4.9.6[gdml] ) ) )"
260
261 +src_prepare() {
262 + default
263 +}
264 +
265 src_configure() {
266 local mycmakeargs=(
267 -DCLHEP_DIR="${EROOT}usr"
268 - $(cmake-utils_use_with examples)
269 - $(cmake-utils_use examples VGM_INSTALL_EXAMPLES)
270 - $(cmake-utils_use_with geant4)
271 - $(cmake-utils_use_with root)
272 - $(cmake-utils_use_with test)
273 - $(cmake-utils_use_with xml xercesc)
274 + -Dexamples="$(usex examples)"
275 + -DVGM_INSTALL_EXAMPLES="$(usex examples)"
276 + -Dgeant4="$(usex geant4)"
277 + -Droot="$(usex root)"
278 + -Dtest="$(usex test)"
279 + -Dxercesc="$(usex xml)"
280 )
281 cmake-utils_src_configure
282 }