Gentoo Archives: gentoo-commits

From: Guilherme Amadio <amadio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/root/
Date: Thu, 27 Aug 2020 15:31:34
Message-Id: 1598542159.545502ed1b8dc81dd31c119bcee46c0ae785ec35.amadio@gentoo
1 commit: 545502ed1b8dc81dd31c119bcee46c0ae785ec35
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 09:06:42 2020 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 15:29:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=545502ed
7
8 sci-physics/root: version bump to 6.20.08
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
12
13 sci-physics/root/Manifest | 1 +
14 sci-physics/root/root-6.20.08.ebuild | 306 +++++++++++++++++++++++++++++++++++
15 2 files changed, 307 insertions(+)
16
17 diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
18 index 673df40908f..5631b64929a 100644
19 --- a/sci-physics/root/Manifest
20 +++ b/sci-physics/root/Manifest
21 @@ -2,5 +2,6 @@ DIST root_v6.16.00.source.tar.gz 164836293 BLAKE2B 9d8f02631bdc1fa1775cbdaf50dd1
22 DIST root_v6.18.04.source.tar.gz 165938450 BLAKE2B d6545dfa95817940f2bb6b5b49252eca1958df518a4bc05c4857df60a015a39d0df09ea077465533e6ebc815d04e1742da19d18b7af02b5446f9e73dc92e3c16 SHA512 cfcbdd2db4edf55845a7cd1e6ec0cdf714a7ceacb039fa6fb627d7300d6f849b3b462bab724e33b1d6b08eb22ba42c43b7d64c0c6c47dc8a3bb652f86979f2c6
23 DIST root_v6.20.04.source.tar.gz 168056076 BLAKE2B 814bf74f5a18adf2605954068962d3283504538118d221f55e030b224e09c9542a544c166a317ad981a84d4a1edc48bbfc76a57acd43aefb779d8e27270c4aeb SHA512 3cc214a4b160795c8aa53b6fdb01370c3aea628696d1668cbf47e6beac56f171674619a853a1219336d9b67ad06db1d9ecd13345bf1731f809da9e60b3d39a2c
24 DIST root_v6.20.06.source.tar.gz 168216335 BLAKE2B a0a51f11e6dcc3a6ba657a8b946507bb857088bce3102f5330a0df455fec468ee4228f5394795f3e3b1ee3434b7ddda85f08039bf603a531154c28b335ff803c SHA512 232fd5253e83eb02ad33d03941c7c83d39d5f6b0162bd42594e44a0c1c08deade42ae5793e571db767ce4fa0a582aa332b9d1869e621b825d1eb1162819c98c6
25 +DIST root_v6.20.08.source.tar.gz 168218062 BLAKE2B 79b1eb89f1003c140a60d47e9d447576ad215e66321a265ed047b069d05f008cf8f0d23df99ed35a8ee5a802e5de5a42122e8f1c075b01ef74eb11926a1b31d7 SHA512 205d5ae94a6c1b6e1a479a8631d5a9bab4a9f76c396cf3ed2c23a26c767a5a892a087b872a69853ada0f84e60a6015f732342c5f48acc696cb626528748f81fe
26 DIST root_v6.22.00.source.tar.gz 173014392 BLAKE2B a59071ee5b13466505323fca30fe656668a243006239e7f9ebc71bb21a7fe244cafe6d33ff4579b67920c9102eb36344f20415079bb627834fb8a57d9117476d SHA512 9e3c54bbc146b0abb0a2d960af380255ec59d0b3a11a4a97a2a25cb7ac567b07280c4eb48dddf99c1fa2e692881f6396a842ce125d3a253037e52f719739f01e
27 DIST root_v6.22.02.source.tar.gz 173033408 BLAKE2B c7e3719b612093386fddecbfd098c428345d3562537c2dc546e12b9da62fa6f2cc776a5314ae1257eeaaa498af29236520931ea3f6dd5ad3e03095bc117da125 SHA512 0a0ffbcee2ef971bebf32bc38a247ea981f56721314bc2eab69cfe66ae86eafb00568c475b41b2ae7db7ad25f0c8b0953e10f1841316a49cf62fbad664ccee17
28
29 diff --git a/sci-physics/root/root-6.20.08.ebuild b/sci-physics/root/root-6.20.08.ebuild
30 new file mode 100644
31 index 00000000000..4403d94be47
32 --- /dev/null
33 +++ b/sci-physics/root/root-6.20.08.ebuild
34 @@ -0,0 +1,306 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +# ninja does not work due to fortran
41 +CMAKE_MAKEFILE_GENERATOR=emake
42 +FORTRAN_NEEDED="fortran"
43 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
44 +
45 +inherit cmake cuda elisp-common fortran-2 prefix python-single-r1 toolchain-funcs
46 +
47 +DESCRIPTION="C++ data analysis framework and interpreter from CERN"
48 +HOMEPAGE="https://root.cern"
49 +SRC_URI="https://root.cern/download/${PN}_v${PV}.source.tar.gz"
50 +
51 +IUSE="+X aqua +asimage +c++11 c++14 c++17 cuda cudnn +davix debug emacs
52 + +examples fits fftw fortran +gdml graphviz +gsl http libcxx +minuit
53 + mpi mysql odbc +opengl oracle postgres prefix pythia6 pythia8 +python
54 + qt5 R +roofit root7 shadow sqlite +ssl +tbb test +tmva +unuran vc
55 + vmc +xml xrootd"
56 +RESTRICT="!test? ( test )"
57 +
58 +SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
59 +LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
60 +KEYWORDS="~amd64 ~x86"
61 +
62 +REQUIRED_USE="
63 + ^^ ( c++11 c++14 c++17 )
64 + cuda? ( tmva )
65 + cudnn? ( cuda )
66 + !X? ( !asimage !opengl !qt5 )
67 + davix? ( ssl xml )
68 + python? ( ${PYTHON_REQUIRED_USE} )
69 + qt5? ( root7 )
70 + root7? ( || ( c++14 c++17 ) )
71 + tmva? ( gsl )
72 +"
73 +
74 +CDEPEND="
75 + app-arch/lz4
76 + app-arch/zstd
77 + app-arch/xz-utils
78 + fortran? ( dev-lang/cfortran )
79 + dev-libs/libpcre:3
80 + dev-libs/xxhash
81 + media-fonts/dejavu
82 + media-libs/freetype:2
83 + media-libs/libpng:0=
84 + sys-libs/ncurses:=
85 + sys-libs/zlib
86 + X? (
87 + x11-libs/libX11:0
88 + x11-libs/libXext:0
89 + x11-libs/libXft:0
90 + x11-libs/libXpm:0
91 + opengl? (
92 + media-libs/ftgl:0=
93 + media-libs/glew:0=
94 + virtual/opengl
95 + virtual/glu
96 + x11-libs/gl2ps:0=
97 + )
98 + qt5? (
99 + dev-qt/qtcore:5
100 + dev-qt/qtgui:5
101 + dev-qt/qtwebengine:5[widgets]
102 + )
103 + )
104 + asimage? ( media-libs/libafterimage[gif,jpeg,png,tiff] )
105 + cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
106 + cudnn? ( dev-libs/cudnn )
107 + davix? ( net-libs/davix )
108 + emacs? ( >=app-editors/emacs-23.1:* )
109 + fftw? ( sci-libs/fftw:3.0= )
110 + fits? ( sci-libs/cfitsio:0= )
111 + graphviz? ( media-gfx/graphviz )
112 + gsl? ( sci-libs/gsl:= )
113 + http? ( dev-libs/fcgi:0= )
114 + libcxx? ( sys-libs/libcxx )
115 + unuran? ( sci-mathematics/unuran:0= )
116 + minuit? ( !sci-libs/minuit )
117 + mpi? ( virtual/mpi )
118 + mysql? ( dev-db/mysql-connector-c )
119 + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
120 + oracle? ( dev-db/oracle-instantclient-basic )
121 + postgres? ( dev-db/postgresql:= )
122 + pythia6? ( sci-physics/pythia:6 )
123 + pythia8? ( sci-physics/pythia:8 )
124 + python? ( ${PYTHON_DEPS} )
125 + R? ( dev-lang/R )
126 + shadow? ( sys-apps/shadow )
127 + sqlite? ( dev-db/sqlite:3 )
128 + ssl? ( dev-libs/openssl:0= )
129 + tbb? ( >=dev-cpp/tbb-2018 )
130 + tmva? (
131 + $(python_gen_cond_dep '
132 + dev-python/numpy[${PYTHON_MULTI_USEDEP}]
133 + ')
134 + )
135 + vc? ( dev-libs/vc:= )
136 + xml? ( dev-libs/libxml2:2= )
137 + xrootd? ( <net-libs/xrootd-5:0= )
138 +"
139 +
140 +DEPEND="${CDEPEND}
141 + virtual/pkgconfig"
142 +
143 +RDEPEND="${CDEPEND}"
144 +
145 +PATCHES=(
146 + "${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch
147 +)
148 +
149 +pkg_setup() {
150 + use fortran && fortran-2_pkg_setup
151 + use python && python-single-r1_pkg_setup
152 +
153 + elog "There are extra options on packages not available in Gentoo."
154 + elog "You can use the environment variable EXTRA_ECONF to enable"
155 + elog "these packages. For example, for Vdt you would set:"
156 + elog "EXTRA_ECONF=\"-Dbuiltin_vdt=ON -Dvdt=ON\""
157 +}
158 +
159 +src_prepare() {
160 + use cuda && cuda_src_prepare
161 +
162 + cmake_src_prepare
163 +
164 + sed -i "/CLING_BUILD_PLUGINS/d" interpreter/CMakeLists.txt || die
165 +
166 + # CSS should use local images
167 + sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
168 +
169 + eapply_user
170 +}
171 +
172 +# Note: ROOT uses bundled clang because it is patched and API-incompatible
173 +# with vanilla clang. The patches enable the C++ interpreter to work.
174 +# Since ROOT installs many files into /etc (>100MB in total) that don't
175 +# really belong there, we install it into another directory to avoid
176 +# making /etc too big.
177 +
178 +src_configure() {
179 + local mycmakeargs=(
180 + -DCMAKE_C_COMPILER=$(tc-getCC)
181 + -DCMAKE_CXX_COMPILER=$(tc-getCXX)
182 + -DCMAKE_CUDA_HOST_COMPILER=$(tc-getCXX)
183 + -DCMAKE_C_FLAGS="${CFLAGS}"
184 + -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
185 + -DCMAKE_CXX_STANDARD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
186 + -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}"
187 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2)"
188 + -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2)/share/man"
189 + -DCMAKE_INSTALL_LIBDIR="lib"
190 + -DDEFAULT_SYSROOT="${EPREFIX}"
191 + -DCLING_BUILD_PLUGINS=OFF
192 + -Dexceptions=ON
193 + -Dfail-on-missing=ON
194 + -Dgnuinstall=OFF
195 + -Dshared=ON
196 + -Dsoversion=ON
197 + -Dbuiltin_llvm=ON
198 + -Dbuiltin_clang=ON
199 + -Dbuiltin_afterimage=OFF
200 + -Dbuiltin_cfitsio=OFF
201 + -Dbuiltin_davix=OFF
202 + -Dbuiltin_fftw3=OFF
203 + -Dbuiltin_freetype=OFF
204 + -Dbuiltin_ftgl=OFF
205 + -Dbuiltin_gl2ps=OFF
206 + -Dbuiltin_glew=OFF
207 + -Dbuiltin_gsl=OFF
208 + -Dbuiltin_lz4=OFF
209 + -Dbuiltin_lzma=OFF
210 + -Dbuiltin_openssl=OFF
211 + -Dbuiltin_pcre=OFF
212 + -Dbuiltin_tbb=OFF
213 + -Dbuiltin_unuran=OFF
214 + -Dbuiltin_vc=OFF
215 + -Dbuiltin_vdt=OFF
216 + -Dbuiltin_veccore=OFF
217 + -Dbuiltin_xrootd=OFF
218 + -Dbuiltin_xxhash=OFF
219 + -Dbuiltin_zlib=OFF
220 + -Dbuiltin_zstd=OFF
221 + -Dalien=OFF
222 + -Darrow=OFF
223 + -Dasimage=$(usex asimage)
224 + -Dccache=OFF # use ccache via portage
225 + -Dcefweb=OFF
226 + -Dclad=OFF
227 + -Dcocoa=$(usex aqua)
228 + -Dcuda=$(usex cuda)
229 + -Dcudnn=$(usex cudnn)
230 + -Dcxxmodules=OFF # requires clang, unstable
231 + -Ddataframe=ON
232 + -Ddavix=$(usex davix)
233 + -Ddcache=OFF
234 + -Dfcgi=$(usex http)
235 + -Dfftw3=$(usex fftw)
236 + -Dfitsio=$(usex fits)
237 + -Dfortran=$(usex fortran)
238 + -Dgdml=$(usex gdml)
239 + -Dgfal=OFF
240 + -Dgminimal=OFF
241 + -Dgsl_shared=$(usex gsl)
242 + -Dgviz=$(usex graphviz)
243 + -Dhttp=$(usex http)
244 + -Dimt=$(usex tbb)
245 + -Dlibcxx=$(usex libcxx)
246 + -Dmathmore=$(usex gsl)
247 + -Dmemstat=OFF # deprecated
248 + -Dminimal=OFF
249 + -Dminuit2=$(usex minuit)
250 + -Dminuit=$(usex minuit)
251 + -Dmlp=$(usex tmva)
252 + -Dmonalisa=OFF
253 + -Dmpi=$(usex mpi)
254 + -Dmysql=$(usex mysql)
255 + -Dodbc=$(usex odbc)
256 + -Dopengl=$(usex opengl)
257 + -Doracle=$(usex oracle)
258 + -Dpgsql=$(usex postgres)
259 + -Dpyroot=$(usex python) # python was renamed to pyroot
260 + -Dpyroot_experimental=OFF # use standard PyROOT for now
261 + -Dpythia6=$(usex pythia6)
262 + -Dpythia8=$(usex pythia8)
263 + -Dqt5web=$(usex qt5)
264 + -Dr=$(usex R)
265 + -Droofit=$(usex roofit)
266 + -Droot7=$(usex root7)
267 + -Drootbench=OFF
268 + -Droottest=OFF
269 + -Drpath=OFF
270 + -Druntime_cxxmodules=OFF
271 + -Dshadowpw=$(usex shadow)
272 + -Dspectrum=ON
273 + -Dsqlite=$(usex sqlite)
274 + -Dssl=$(usex ssl)
275 + -Dtcmalloc=OFF
276 + -Dtesting=$(usex test)
277 + -Dtmva=$(usex tmva)
278 + -Dtmva-cpu=$(usex tmva)
279 + -Dtmva-gpu=$(usex cuda)
280 + -Dtmva-pymva=$(usex tmva)
281 + -Dtmva-rmva=$(usex R)
282 + -Dunuran=$(usex unuran)
283 + -Dvc=$(usex vc)
284 + -Dvdt=OFF
285 + -Dveccore=OFF
286 + -Dvecgeom=OFF
287 + -Dvmc=$(usex vmc)
288 + -Dx11=$(usex X)
289 + -Dxml=$(usex xml)
290 + -Dxrootd=$(usex xrootd)
291 + ${EXTRA_ECONF}
292 + )
293 +
294 + CMAKE_BUILD_TYPE=$(usex debug Debug Release) \
295 + cmake_src_configure
296 +}
297 +
298 +src_compile() {
299 + # needed for hsimple.root
300 + addwrite /dev/random
301 + cmake_src_compile
302 +}
303 +
304 +src_install() {
305 + cmake_src_install
306 +
307 + ROOTSYS=${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2)
308 + ROOTENV="$((9999 - $(ver_cut 2)))${PN}-$(ver_cut 1-2)"
309 +
310 + cat > ${ROOTENV} <<- EOF || die
311 + MANPATH="${ROOTSYS}/share/man"
312 + PATH="${ROOTSYS}/bin"
313 + ROOTPATH="${ROOTSYS}/bin"
314 + LDPATH="${ROOTSYS}/lib"
315 + EOF
316 +
317 + if use python; then
318 + echo "PYTHONPATH=\"${ROOTSYS}/lib\"" >> ${ROOTENV} || die
319 + fi
320 +
321 + doenvd ${ROOTENV}
322 +
323 + if use emacs; then
324 + elisp-install ${PN}-$(ver_cut 1-2) "${BUILD_DIR}"/root-help.el
325 + fi
326 +
327 + pushd "${D}/${ROOTSYS}" > /dev/null
328 +
329 + rm -r emacs bin/*.{csh,sh,fish} || die
330 +
331 + if ! use examples; then
332 + rm -r tutorials || die
333 + fi
334 +
335 + # create versioned symlinks for binaries
336 + cd bin;
337 + for exe in *; do
338 + dosym "${exe}" "/usr/lib/${PN}/$(ver_cut 1-2)/bin/${exe}-$(ver_cut 1-2)"
339 + done
340 +}