1 |
commit: 33403928ce4bb3883689270dfebbbdff4a9ea4ac |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 29 12:29:56 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 30 03:56:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33403928 |
7 |
|
8 |
sci-physics/geant: version bump. |
9 |
|
10 |
Adopt eapi7-ver. |
11 |
|
12 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
13 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
14 |
|
15 |
sci-physics/geant/Manifest | 1 + |
16 |
sci-physics/geant/geant-4.10.05_p01.ebuild | 97 ++++++++++++++++++++++++++++++ |
17 |
2 files changed, 98 insertions(+) |
18 |
|
19 |
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest |
20 |
index 80ea674df07..7fde0b416a8 100644 |
21 |
--- a/sci-physics/geant/Manifest |
22 |
+++ b/sci-physics/geant/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST geant4.10.03.tar.gz 33143770 BLAKE2B f84c4dc680c45bc5728485e3e38852de90ae0f89dfe4cf65677aa86f6d90b4cbe5d2ffec812b08d05c88f8abb73f006f3a5319bcfd48c20872299ccfd91c7e39 SHA512 61d67e57f1576ab10562f2309995897008b4be1aa60f7e471b4f5efc2d852788d5faf60e64ea7024a4af4035d98c04c0be23df8593a4ed3a510af6b476013c56 |
25 |
+DIST geant4.10.05.p01.tar.gz 34413415 BLAKE2B d98a9308e37f166dccf8f9640a54ee74ab2b1d07275609666aec6d929b0193269a18075762cebaa154abcad5c8359a128b6629ff973cb6cdc8f54535151997a3 SHA512 ace2097251ee4cdda3511c3dd8191c97e1001f73d421797e3cd517ed41fa5adc73efcddfb2c8b6fb75231e5af8ddb4bd63a402ccb99b40ce2c140588d328b582 |
26 |
|
27 |
diff --git a/sci-physics/geant/geant-4.10.05_p01.ebuild b/sci-physics/geant/geant-4.10.05_p01.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..80ee3ae7420 |
30 |
--- /dev/null |
31 |
+++ b/sci-physics/geant/geant-4.10.05_p01.ebuild |
32 |
@@ -0,0 +1,97 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit cmake-utils eapi7-ver |
39 |
+ |
40 |
+MY_P=${PN}${PV/_/.} |
41 |
+SPV="$(ver_cut 1-2).$(printf %1d $(ver_cut 3))" |
42 |
+ |
43 |
+DESCRIPTION="Toolkit for simulation of passage of particles through matter" |
44 |
+HOMEPAGE="http://geant4.cern.ch/" |
45 |
+SRC_URI="http://geant4.cern.ch/support/source/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="geant4" |
48 |
+SLOT="4" |
49 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="+data dawn doc examples gdml geant3 inventor motif opengl |
51 |
+ qt5 raytracerx static-libs threads vrml zlib" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-libs/expat |
55 |
+ >=sci-physics/clhep-2.3.3.0:2= |
56 |
+ dawn? ( media-gfx/dawn ) |
57 |
+ gdml? ( dev-libs/xerces-c ) |
58 |
+ inventor? ( media-libs/SoXt ) |
59 |
+ motif? ( x11-libs/motif:0 ) |
60 |
+ opengl? ( virtual/opengl ) |
61 |
+ qt5? ( |
62 |
+ dev-qt/qtcore:5 |
63 |
+ dev-qt/qtgui:5 |
64 |
+ dev-qt/qtprintsupport:5 |
65 |
+ dev-qt/qtwidgets:5 |
66 |
+ opengl? ( dev-qt/qtopengl:5 ) |
67 |
+ ) |
68 |
+ raytracerx? ( |
69 |
+ x11-libs/libX11 |
70 |
+ x11-libs/libXmu |
71 |
+ ) |
72 |
+ zlib? ( sys-libs/zlib )" |
73 |
+DEPEND="${RDEPEND} prefix? ( app-shells/tcsh )" |
74 |
+PDEPEND=" |
75 |
+ data? ( ~sci-physics/geant-data-${PV/_p*/} ) |
76 |
+ doc? ( ~app-doc/geant-docs-${PV/_p*/} )" |
77 |
+ |
78 |
+HTML_DOCS=( ReleaseNotes/ReleaseNotes${SPV}.html ) |
79 |
+ |
80 |
+S="${WORKDIR}/${MY_P}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ cmake-utils_src_prepare |
84 |
+ |
85 |
+ if ! use examples; then |
86 |
+ sed -i '/install(DIRECTORY examples/,/)/d' CMakeLists.txt || die |
87 |
+ fi |
88 |
+} |
89 |
+ |
90 |
+src_configure() { |
91 |
+ local mycmakeargs=( |
92 |
+ -DGEANT4_USE_SYSTEM_CLHEP=ON |
93 |
+ -DGEANT4_INSTALL_DATA=OFF |
94 |
+ -DGEANT4_BUILD_MULTITHREADED=$(usex threads) |
95 |
+ -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec) |
96 |
+ -DGEANT4_USE_NETWORKDAWN=$(usex dawn) |
97 |
+ -DGEANT4_USE_GDML=$(usex gdml) |
98 |
+ -DGEANT4_USE_G3TOG4=$(usex geant3) |
99 |
+ -DGEANT4_USE_XM=$(usex motif) |
100 |
+ -DGEANT4_USE_OPENGL_X11=$(usex opengl) |
101 |
+ -DGEANT4_USE_INVENTOR=$(usex inventor) |
102 |
+ -DGEANT4_USE_QT=$(usex qt5) |
103 |
+ -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx) |
104 |
+ -DGEANT4_USE_NETWORKVRML=$(usex vrml) |
105 |
+ -DGEANT4_USE_SYSTEM_ZLIB=$(usex zlib) |
106 |
+ -DBUILD_STATIC_LIBS=$(usex static-libs) |
107 |
+ ) |
108 |
+ if use inventor; then |
109 |
+ mycmakeargs+=( |
110 |
+ -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)" |
111 |
+ -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)" |
112 |
+ ) |
113 |
+ fi |
114 |
+ cmake-utils_src_configure |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ # adjust clhep linking flags for system clhep |
119 |
+ # binmake.gmk is only useful for legacy build systems |
120 |
+ sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die |
121 |
+ cmake-utils_src_install |
122 |
+ [[ -f ReleaseNotes/Patch${SPV}-1.txt ]] && DOCS+=( ReleaseNotes/Patch${SPV}-*.txt ) |
123 |
+ einstalldocs |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ elog "The following scripts are provided for backward compatibility:" |
128 |
+ elog "$(ls -1 ${EROOT%/}/usr/share/${PN^}${SPV}.*/geant4make/*sh)" |
129 |
+} |