1 |
commit: 9b87b95a8cb2b3f3f8c2a795ea1f3b7a973d2b17 |
2 |
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 3 09:04:08 2020 +0000 |
4 |
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 3 09:06:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b87b95a |
7 |
|
8 |
sci-physics/root: version bump to 6.20.00 |
9 |
|
10 |
Package-Manager: Portage-2.3.91, Repoman-2.3.20 |
11 |
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org> |
12 |
|
13 |
sci-physics/root/Manifest | 1 + |
14 |
sci-physics/root/root-6.20.00.ebuild | 290 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 291 insertions(+) |
16 |
|
17 |
diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest |
18 |
index f2df4a34027..2647cb1cf94 100644 |
19 |
--- a/sci-physics/root/Manifest |
20 |
+++ b/sci-physics/root/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST root_v6.12.06.source.tar.gz 162284452 BLAKE2B 944b5e899677bab40842d7ec969ff |
22 |
DIST root_v6.14.08.source.tar.gz 162474562 BLAKE2B f8bfdabb4d91bbdfbab0b17626fff1f8aa265292996d857025cbd1543306f3ec540a1afb080788bfc7149ea835932b59d7c54dcd802354e31294ba2e5e9d2366 SHA512 827e39efbf3c69429a0a256127ca9f87550d9084c34c715bddccbf87a8c111c367b9a0ac6882aac747c9b48f4a3effb3747b4df567429910c93ee64dfe35df5b |
23 |
DIST root_v6.16.00.source.tar.gz 164836293 BLAKE2B 9d8f02631bdc1fa1775cbdaf50dd1feacd9b3c86b81d679ba6f0ca3c5787cd1d22ef7c33358b608361a01ad4f0aff3e8c749649d24773a35c52ce87f808d08f5 SHA512 17e5b9815973773e30ff83c2f4028e9e93691c1ecb824c162c8b3e02d1f6666fb8e0b72a5d0652a90032af146d92d271cbffcd634fb6fe6a63bdf46d672789bf |
24 |
DIST root_v6.18.04.source.tar.gz 165938450 BLAKE2B d6545dfa95817940f2bb6b5b49252eca1958df518a4bc05c4857df60a015a39d0df09ea077465533e6ebc815d04e1742da19d18b7af02b5446f9e73dc92e3c16 SHA512 cfcbdd2db4edf55845a7cd1e6ec0cdf714a7ceacb039fa6fb627d7300d6f849b3b462bab724e33b1d6b08eb22ba42c43b7d64c0c6c47dc8a3bb652f86979f2c6 |
25 |
+DIST root_v6.20.00.source.tar.gz 168051568 BLAKE2B 6d0b037cc769a186885c61d3ed9eb3bbb4b0dbc357d2ede8383d4491781ef642d19c5ff3c354aec49abc36cb7da0aac9ba346cd0896ed9b54b03080486031804 SHA512 a6e068430bfdc01922a7f6a4b14fd0b183185d8ef41862c6846b410c814914292573170ab58166e827b706726e27f95ce8ff389f43bc8a76a715992b7d6d32f9 |
26 |
|
27 |
diff --git a/sci-physics/root/root-6.20.00.ebuild b/sci-physics/root/root-6.20.00.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..6d626559fe0 |
30 |
--- /dev/null |
31 |
+++ b/sci-physics/root/root-6.20.00.ebuild |
32 |
@@ -0,0 +1,290 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
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} ) |
42 |
+ |
43 |
+inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \ |
44 |
+ prefix python-single-r1 toolchain-funcs |
45 |
+ |
46 |
+DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
47 |
+HOMEPAGE="https://root.cern" |
48 |
+SRC_URI="https://root.cern/download/${PN}_v${PV}.source.tar.gz" |
49 |
+ |
50 |
+IUSE="+X aqua +asimage +c++11 c++14 c++17 cuda +davix debug emacs |
51 |
+ +examples fits fftw fortran +gdml graphviz +gsl http libcxx +minuit |
52 |
+ mysql odbc +opengl oracle postgres prefix pythia6 pythia8 +python |
53 |
+ qt5 R +roofit root7 shadow sqlite +ssl +tbb test +tmva +unuran vc |
54 |
+ vmc +xml xrootd" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+SLOT="$(ver_cut 1-2)/$(ver_cut 3)" |
58 |
+LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA" |
59 |
+KEYWORDS="~amd64 ~x86" |
60 |
+ |
61 |
+REQUIRED_USE=" |
62 |
+ ^^ ( c++11 c++14 c++17 ) |
63 |
+ cuda? ( tmva !c++17 ) |
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 |
+ davix? ( net-libs/davix ) |
105 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
106 |
+ fftw? ( sci-libs/fftw:3.0= ) |
107 |
+ fits? ( sci-libs/cfitsio:0= ) |
108 |
+ graphviz? ( media-gfx/graphviz ) |
109 |
+ gsl? ( sci-libs/gsl:= ) |
110 |
+ http? ( dev-libs/fcgi:0= ) |
111 |
+ libcxx? ( sys-libs/libcxx ) |
112 |
+ unuran? ( sci-mathematics/unuran:0= ) |
113 |
+ minuit? ( !sci-libs/minuit ) |
114 |
+ mysql? ( dev-db/mysql-connector-c ) |
115 |
+ odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) |
116 |
+ oracle? ( dev-db/oracle-instantclient-basic ) |
117 |
+ postgres? ( dev-db/postgresql:= ) |
118 |
+ pythia6? ( sci-physics/pythia:6 ) |
119 |
+ pythia8? ( sci-physics/pythia:8 ) |
120 |
+ python? ( ${PYTHON_DEPS} ) |
121 |
+ R? ( dev-lang/R ) |
122 |
+ shadow? ( virtual/shadow ) |
123 |
+ sqlite? ( dev-db/sqlite:3 ) |
124 |
+ ssl? ( dev-libs/openssl:0= ) |
125 |
+ tbb? ( >=dev-cpp/tbb-2018 ) |
126 |
+ tmva? ( |
127 |
+ $(python_gen_cond_dep ' |
128 |
+ dev-python/numpy[${PYTHON_MULTI_USEDEP}] |
129 |
+ ') |
130 |
+ ) |
131 |
+ vc? ( dev-libs/vc:= ) |
132 |
+ xml? ( dev-libs/libxml2:2= ) |
133 |
+ xrootd? ( net-libs/xrootd:0= ) |
134 |
+" |
135 |
+ |
136 |
+DEPEND="${CDEPEND} |
137 |
+ virtual/pkgconfig" |
138 |
+ |
139 |
+RDEPEND="${CDEPEND}" |
140 |
+ |
141 |
+PATCHES=( |
142 |
+ "${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch |
143 |
+) |
144 |
+ |
145 |
+pkg_setup() { |
146 |
+ use fortran && fortran-2_pkg_setup |
147 |
+ use python && python-single-r1_pkg_setup |
148 |
+ |
149 |
+ elog "There are extra options on packages not available in Gentoo." |
150 |
+ elog "You can use the environment variable EXTRA_ECONF to enable" |
151 |
+ elog "these packages. For example, for Vdt you would set:" |
152 |
+ elog "EXTRA_ECONF=\"-Dbuiltin_vdt=ON -Dvdt=ON\"" |
153 |
+} |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ cmake-utils_src_prepare |
157 |
+ |
158 |
+ sed -i "/CLING_BUILD_PLUGINS/d" interpreter/CMakeLists.txt || die |
159 |
+ |
160 |
+ # CSS should use local images |
161 |
+ sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed" |
162 |
+} |
163 |
+ |
164 |
+# Note: ROOT uses bundled clang because it is patched and API-incompatible |
165 |
+# with vanilla clang. The patches enable the C++ interpreter to work. |
166 |
+# Since ROOT installs many files into /etc (>100MB in total) that don't |
167 |
+# really belong there, we install it into another directory to avoid |
168 |
+# making /etc too big. |
169 |
+ |
170 |
+src_configure() { |
171 |
+ local mycmakeargs=( |
172 |
+ -DCMAKE_C_FLAGS="${CFLAGS}" |
173 |
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS}" |
174 |
+ -DCMAKE_CXX_STANDARD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-) |
175 |
+ -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}" |
176 |
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2)" |
177 |
+ -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2)/share/man" |
178 |
+ -DCMAKE_INSTALL_LIBDIR="lib" |
179 |
+ -DDEFAULT_SYSROOT="${EPREFIX}" |
180 |
+ -DCLING_BUILD_PLUGINS=OFF |
181 |
+ -Dexplicitlink=ON |
182 |
+ -Dexceptions=ON |
183 |
+ -Dfail-on-missing=ON |
184 |
+ -Dgnuinstall=OFF |
185 |
+ -Dshared=ON |
186 |
+ -Dsoversion=ON |
187 |
+ -Dbuiltin_llvm=ON |
188 |
+ -Dbuiltin_clang=ON |
189 |
+ -Dbuiltin_afterimage=OFF |
190 |
+ -Dbuiltin_cfitsio=OFF |
191 |
+ -Dbuiltin_davix=OFF |
192 |
+ -Dbuiltin_fftw3=OFF |
193 |
+ -Dbuiltin_freetype=OFF |
194 |
+ -Dbuiltin_ftgl=OFF |
195 |
+ -Dbuiltin_gl2ps=OFF |
196 |
+ -Dbuiltin_glew=OFF |
197 |
+ -Dbuiltin_gsl=OFF |
198 |
+ -Dbuiltin_lz4=OFF |
199 |
+ -Dbuiltin_lzma=OFF |
200 |
+ -Dbuiltin_openssl=OFF |
201 |
+ -Dbuiltin_pcre=OFF |
202 |
+ -Dbuiltin_tbb=OFF |
203 |
+ -Dbuiltin_unuran=OFF |
204 |
+ -Dbuiltin_vc=OFF |
205 |
+ -Dbuiltin_vdt=OFF |
206 |
+ -Dbuiltin_veccore=OFF |
207 |
+ -Dbuiltin_xrootd=OFF |
208 |
+ -Dbuiltin_xxhash=OFF |
209 |
+ -Dbuiltin_zlib=OFF |
210 |
+ -Dx11=$(usex X) |
211 |
+ -Dalien=OFF |
212 |
+ -Darrow=OFF |
213 |
+ -Dasimage=$(usex asimage) |
214 |
+ -Dlibcxx=$(usex libcxx) |
215 |
+ -Dccache=OFF # use ccache via portage |
216 |
+ -Dcefweb=OFF |
217 |
+ -Dclad=OFF |
218 |
+ -Dcocoa=$(usex aqua) |
219 |
+ -Dcuda=$(usex cuda) |
220 |
+ -Dcxxmodules=OFF # requires clang, unstable |
221 |
+ -Ddavix=$(usex davix) |
222 |
+ -Ddcache=OFF |
223 |
+ -Dfftw3=$(usex fftw) |
224 |
+ -Dfitsio=$(usex fits) |
225 |
+ -Dfortran=$(usex fortran) |
226 |
+ -Dftgl=$(usex opengl) |
227 |
+ -Dgdml=$(usex gdml) |
228 |
+ -Dgfal=OFF |
229 |
+ -Dgl2ps=$(usex opengl) |
230 |
+ -Dgminimal=OFF |
231 |
+ -Dgsl_shared=$(usex gsl) |
232 |
+ -Dgviz=$(usex graphviz) |
233 |
+ -Dhttp=$(usex http) |
234 |
+ -Dimt=$(usex tbb) |
235 |
+ -Dmathmore=$(usex gsl) |
236 |
+ -Dmemstat=OFF # deprecated |
237 |
+ -Dminimal=OFF |
238 |
+ -Dminuit2=$(usex minuit) |
239 |
+ -Dminuit=$(usex minuit) |
240 |
+ -Dmlp=$(usex tmva) |
241 |
+ -Dmonalisa=OFF |
242 |
+ -Dmysql=$(usex mysql) |
243 |
+ -Dodbc=$(usex odbc) |
244 |
+ -Dopengl=$(usex opengl) |
245 |
+ -Doracle=$(usex oracle) |
246 |
+ -Dpgsql=$(usex postgres) |
247 |
+ -Dpythia6=$(usex pythia6) |
248 |
+ -Dpythia8=$(usex pythia8) |
249 |
+ -Dpython=$(usex python) |
250 |
+ -Dqt5web=$(usex qt5) |
251 |
+ -Droofit=$(usex roofit) |
252 |
+ -Droot7=$(usex root7) |
253 |
+ -Drootbench=OFF |
254 |
+ -Droottest=OFF |
255 |
+ -Drpath=OFF |
256 |
+ -Druntime_cxxmodules=OFF # does not work yet |
257 |
+ -Dr=$(usex R) |
258 |
+ -Dshadowpw=$(usex shadow) |
259 |
+ -Dsqlite=$(usex sqlite) |
260 |
+ -Dssl=$(usex ssl) |
261 |
+ -Dtcmalloc=OFF |
262 |
+ -Dtesting=$(usex test) |
263 |
+ -Dtmva=$(usex tmva) |
264 |
+ -Dtmva-cpu=$(usex tmva) |
265 |
+ -Dtmva-gpu=$(usex cuda) |
266 |
+ -Dunuran=$(usex unuran) |
267 |
+ -Dvc=$(usex vc) |
268 |
+ -Dvmc=$(usex vmc) |
269 |
+ -Dvdt=OFF |
270 |
+ -Dveccore=OFF |
271 |
+ -Dxml=$(usex xml) |
272 |
+ -Dxrootd=$(usex xrootd) |
273 |
+ ${EXTRA_ECONF} |
274 |
+ ) |
275 |
+ |
276 |
+ CMAKE_BUILD_TYPE=$(usex debug Debug Release) \ |
277 |
+ cmake-utils_src_configure |
278 |
+} |
279 |
+ |
280 |
+src_compile() { |
281 |
+ # needed for hsimple.root |
282 |
+ addwrite /dev/random |
283 |
+ cmake-utils_src_compile |
284 |
+} |
285 |
+ |
286 |
+src_install() { |
287 |
+ cmake-utils_src_install |
288 |
+ |
289 |
+ ROOTSYS=${EPREFIX}/usr/lib/${PN}/$(ver_cut 1-2) |
290 |
+ ROOTENV="$((9999 - $(ver_cut 2)))${PN}-$(ver_cut 1-2)" |
291 |
+ |
292 |
+ cat > ${ROOTENV} <<- EOF || die |
293 |
+ MANPATH="${ROOTSYS}/share/man" |
294 |
+ PATH="${ROOTSYS}/bin" |
295 |
+ ROOTPATH="${ROOTSYS}/bin" |
296 |
+ LDPATH="${ROOTSYS}/lib" |
297 |
+ EOF |
298 |
+ |
299 |
+ if use python; then |
300 |
+ echo "PYTHONPATH=\"${ROOTSYS}/lib\"" >> ${ROOTENV} || die |
301 |
+ fi |
302 |
+ |
303 |
+ doenvd ${ROOTENV} |
304 |
+ |
305 |
+ if use emacs; then |
306 |
+ elisp-install ${PN}-$(ver_cut 1-2) "${BUILD_DIR}"/root-help.el |
307 |
+ fi |
308 |
+ |
309 |
+ pushd "${D}/${ROOTSYS}" > /dev/null |
310 |
+ |
311 |
+ rm -r emacs bin/*.{csh,sh,fish} || die |
312 |
+ |
313 |
+ if ! use examples; then |
314 |
+ rm -r tutorials || die |
315 |
+ fi |
316 |
+ |
317 |
+ # create versioned symlinks for binaries |
318 |
+ cd bin; |
319 |
+ for exe in *; do |
320 |
+ dosym "${exe}" "/usr/lib/${PN}/$(ver_cut 1-2)/bin/${exe}-$(ver_cut 1-2)" |
321 |
+ done |
322 |
+} |