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