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/geant-vmc/
Date: Mon, 07 Jul 2014 06:36:53
Message-Id: 1404678525.713b71262098ac50a7be419cf485718858e77174.jlec@gentoo
1 commit: 713b71262098ac50a7be419cf485718858e77174
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sun Jul 6 20:28:45 2014 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 6 20:28:45 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=713b7126
7
8 New live ebuild, using cmake-buildsystem (upstream switches to cmake for next release), add flags for g4root and mtroot. Adapt to upstream's fixes concerning install paths, we don't need to do manually installation anymore.
9 I will skip geant-vmc-3.00b01 from packaging, it does not include those fixes yet.
10
11 ---
12 sci-physics/geant-vmc/ChangeLog | 8 +++
13 sci-physics/geant-vmc/geant-vmc-9999.ebuild | 79 +++++++++++++++++++++++++++++
14 sci-physics/geant-vmc/metadata.xml | 3 ++
15 3 files changed, 90 insertions(+)
16
17 diff --git a/sci-physics/geant-vmc/ChangeLog b/sci-physics/geant-vmc/ChangeLog
18 index 353b841..807b464 100644
19 --- a/sci-physics/geant-vmc/ChangeLog
20 +++ b/sci-physics/geant-vmc/ChangeLog
21 @@ -2,6 +2,14 @@
22 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*geant-vmc-9999 (06 Jul 2014)
26 +
27 + 06 Jul 2014; Oliver Freyermuth <o.freyermuth@××××××××××.com>
28 + +geant-vmc-9999.ebuild, metadata.xml:
29 + New live ebuild, using cmake-buildsystem (upstream switches to cmake for next
30 + release), add flags for g4root and mtroot. Adapt to upstream's fixes
31 + concerning install paths, we don't need to do manually installation anymore.
32 +
33 31 Mar 2014; Oliver Freyermuth <o.freyermuth@××××××××××.com>
34 geant-vmc-3.1.15a.ebuild:
35 Fix syntax bug in dependency atom
36
37 diff --git a/sci-physics/geant-vmc/geant-vmc-9999.ebuild b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
38 new file mode 100644
39 index 0000000..fa8fa55
40 --- /dev/null
41 +++ b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
42 @@ -0,0 +1,79 @@
43 +# Copyright 1999-2014 Gentoo Foundation
44 +# Distributed under the terms of the GNU General Public License v2
45 +# $Header: $
46 +
47 +EAPI=5
48 +
49 +inherit cmake-utils versionator git-r3
50 +
51 +if [[ ${PV} == *9999* ]]; then
52 + EGIT_REPO_URI=" http://root.cern.ch/git/geant4_vmc.git"
53 + KEYWORDS=""
54 +else
55 + MPV=$(get_version_component_range 2-)
56 + SRC_URI="ftp://root.cern.ch/root/vmc/geant4_vmc.${MPV}.tar.gz"
57 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
58 +fi
59 +
60 +DESCRIPTION="Virtual Monte Carlo Geant4 implementation"
61 +HOMEPAGE="http://root.cern.ch/root/vmc/VirtualMC.html"
62 +
63 +LICENSE="GPL-2"
64 +SLOT="4"
65 +IUSE="doc examples geant3 +g4root +mtroot vgm"
66 +
67 +RDEPEND="
68 + sci-physics/root:=
69 + >=sci-physics/geant-4.9.6[opengl,geant3?]
70 + vgm? ( >=sci-physics/vgm-4.00 )"
71 +DEPEND="${RDEPEND}
72 + doc? ( app-doc/doxygen )"
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + $(cmake-utils_use vgm Geant4VMC_USE_VGM)
77 + $(cmake-utils_use geant3 Geant4VMC_USE_GEANT4_G3TOG4)
78 + $(cmake-utils_use g4root Geant4VMC_USE_G4Root)
79 + $(cmake-utils_use mtroot Geant4VMC_USE_MTRoot)
80 + $(cmake-utils_use examples Geant4VMC_INSTALL_EXAMPLES)
81 + )
82 + cmake-utils_src_configure
83 +}
84 +
85 +src_compile() {
86 + cmake-utils_src_compile
87 + local dirs="g4root mtroot source"
88 + use g4root && dirs+=" g4root "
89 + use mtroot && dirs+=" mtroot "
90 + use examples && dirs+=" examples "
91 + local d
92 + for d in ${dirs}; do
93 + pushd ${d} > /dev/null || die
94 + if use doc; then
95 + doxygen || die
96 + fi
97 + popd > /dev/null
98 + done
99 +}
100 +
101 +src_test() {
102 + cd examples || die
103 + local origDir=${CMAKE_USE_DIR}
104 + CMAKE_USE_DIR=${CMAKE_USE_DIR}/examples
105 + CMAKE_IN_SOURCE_BUILD=1
106 + CMAKE_MODULE_PATH=../cmake
107 + local mycmakeargs=(
108 + -DCMAKE_MODULE_PATH=${origDir}/cmake
109 + )
110 + cmake-utils_src_configure
111 + cmake-utils_src_compile
112 + ./run_suite.sh || die
113 + CMAKE_IN_SOURCE_BUILD=0
114 + CMAKE_USE_DIR=$origDir
115 +}
116 +
117 +src_install() {
118 + cmake-utils_src_install
119 + dodoc README history version_number
120 + use doc && dohtml -r Geant4VMC.html doc/*
121 +}
122
123 diff --git a/sci-physics/geant-vmc/metadata.xml b/sci-physics/geant-vmc/metadata.xml
124 index 1bbc127..828e045 100644
125 --- a/sci-physics/geant-vmc/metadata.xml
126 +++ b/sci-physics/geant-vmc/metadata.xml
127 @@ -15,5 +15,8 @@
128 </longdescription>
129 <use>
130 <flag name="vgm">Enable the Virtual Geometry Model (<pkg>sci-physics/vgm</pkg>)</flag>
131 + <flag name="g4root">Build G4Root (interface for GEANT4 simulation with a ROOT geometry)</flag>
132 + <flag name="geant3">Build with Geant4 G3toG4 library</flag>
133 + <flag name="mtroot">Build MTRoot (provides ROOT IO manager classes with multi-threading support)</flag>
134 </use>
135 </pkgmetadata>