1 |
commit: 674d27c66a39b9483bcf34699f17d4cdcabf1558 |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Mon Jul 15 17:50:19 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 18 18:00:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=674d27c6 |
7 |
|
8 |
sci-physics/vgm: Version bump to 4.5. |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/12449 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
sci-physics/vgm/Manifest | 1 + |
16 |
sci-physics/vgm/vgm-4.5.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 83 insertions(+) |
18 |
|
19 |
diff --git a/sci-physics/vgm/Manifest b/sci-physics/vgm/Manifest |
20 |
index ea44ee2059a..0ff4444fb7a 100644 |
21 |
--- a/sci-physics/vgm/Manifest |
22 |
+++ b/sci-physics/vgm/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST vgm.4.4.tar.gz 3064087 BLAKE2B 845d04fa3ebaaa07f90ef7f216cac10e5ca4129ebbd6161e3fecce39663379b2575026186fe2b88ae8bf08f71bed6d8afcbbd5d7aa9922d37b3f9ed900d35a33 SHA512 500ae0e2ac66b580bbc26b6cd1a8bd6d6e3127c99e6fe6babe5825406e576d72da5cd76d22d0d1b82d7df9eb74ddddf084ee9a96b544c97af5b12cbf948d3406 |
25 |
+DIST vgm.4.5.tar.gz 9602541 BLAKE2B 183c8ed91546e5421c4f1a873a48285e9d2ab6bf4bb6a7bb7b46ab2c3c80a5dfc50cd5f97890c3994ada67014067349726e9f4d65cda1e1e4f1ae9484a4249ef SHA512 a873e24ed2c6cfc09d1828b60af9059a0bee341410e5cb77c9312aa72f1650a913779a0ff929d98910f01fcc5a3e6a04b352dd1a780a8bf60b1fa925b1985491 |
26 |
|
27 |
diff --git a/sci-physics/vgm/vgm-4.5.ebuild b/sci-physics/vgm/vgm-4.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7053d1d2a92 |
30 |
--- /dev/null |
31 |
+++ b/sci-physics/vgm/vgm-4.5.ebuild |
32 |
@@ -0,0 +1,82 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit cmake-utils |
39 |
+ |
40 |
+if [[ ${PV} == *9999* ]]; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/vmc-project/${PN}.git" |
43 |
+else |
44 |
+ SRC_URI="http://ivana.home.cern.ch/ivana/${PN}.${PV}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
46 |
+ S="${WORKDIR}/${PN}" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Virtual Geometry Model for High Energy Physics Experiments" |
50 |
+HOMEPAGE="http://ivana.home.cern.ch/ivana/VGM.html" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="doc examples +geant4 +root test" |
55 |
+ |
56 |
+# sci-physics/root[c++11] required to match sci-physics/geant |
57 |
+RDEPEND=" |
58 |
+ sci-physics/clhep:= |
59 |
+ root? ( sci-physics/root:=[c++11] ) |
60 |
+ geant4? ( >=sci-physics/geant-4.10.03 )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ doc? ( app-doc/doxygen[dot] ) |
63 |
+ test? ( sci-physics/geant-vmc[g4root] )" |
64 |
+RESTRICT=" |
65 |
+ !geant4? ( test ) |
66 |
+ !root? ( test ) |
67 |
+ !test? ( test )" |
68 |
+ |
69 |
+DOCS=( |
70 |
+ doc/README |
71 |
+ doc/todo.txt |
72 |
+ doc/VGMhistory.txt |
73 |
+ doc/VGM.html |
74 |
+ doc/VGMversions.html |
75 |
+) |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/"${PN}-fix-FindCLHEP.patch" |
78 |
+) |
79 |
+ |
80 |
+src_configure() { |
81 |
+ local mycmakeargs=( |
82 |
+ -DCLHEP_DIR="${EROOT}usr" |
83 |
+ -DWITH_EXAMPLES="$(usex examples)" |
84 |
+ -DINSTALL_EXAMPLES="$(usex examples)" |
85 |
+ -DWITH_GEANT4="$(usex geant4)" |
86 |
+ -DWITH_ROOT="$(usex root)" |
87 |
+ -DWITH_TEST="$(usex test)" |
88 |
+ ) |
89 |
+ if use test && use root && use geant4; then |
90 |
+ mycmakeargs+=( -DWITH_G4ROOT=yes ) |
91 |
+ else |
92 |
+ mycmakeargs+=( -DWITH_G4ROOT=no ) |
93 |
+ fi |
94 |
+ cmake-utils_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ cmake-utils_src_compile |
99 |
+ if use doc; then |
100 |
+ cd packages |
101 |
+ doxygen || die |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+src_test() { |
106 |
+ cd "${BUILD_DIR}"/test || die |
107 |
+ ./test_suite.sh || die |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ cmake-utils_src_install |
112 |
+ use doc && local HTML_DOCS=( doc/html/. ) |
113 |
+ einstalldocs |
114 |
+} |