1 |
commit: 7f482115392c335e9c7a8ee523d3a15710a2f0b8 |
2 |
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 19 12:54:11 2018 +0000 |
4 |
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 16:25:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f482115 |
7 |
|
8 |
sci-physics/root: update live ebuild |
9 |
|
10 |
* Drop patches added upstream |
11 |
* Sync USE flags with 6.14/06 ebuild |
12 |
|
13 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
14 |
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org> |
15 |
|
16 |
sci-physics/root/root-9999.ebuild | 51 +++++++++++++++++++++++---------------- |
17 |
1 file changed, 30 insertions(+), 21 deletions(-) |
18 |
|
19 |
diff --git a/sci-physics/root/root-9999.ebuild b/sci-physics/root/root-9999.ebuild |
20 |
index 12ada06493f..3fcff6ba7bf 100644 |
21 |
--- a/sci-physics/root/root-9999.ebuild |
22 |
+++ b/sci-physics/root/root-9999.ebuild |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Copyright 1999-2018 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=6 |
29 |
@@ -26,19 +26,22 @@ fi |
30 |
DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
31 |
HOMEPAGE="https://root.cern" |
32 |
|
33 |
-IUSE="+X avahi aqua +asimage cuda +davix emacs +examples fits fftw fortran |
34 |
- +gdml graphviz +gsl http jemalloc kerberos ldap libcxx memstat |
35 |
- +minuit mysql odbc +opengl oracle postgres prefix pythia6 pythia8 |
36 |
- +python qt5 R +roofit root7 shadow sqlite +ssl table +tbb test |
37 |
- +threads +tiff +tmva +unuran vc xinetd +xml xrootd" |
38 |
+IUSE="+X avahi aqua +asimage c++11 +c++14 c++17 cuda +davix emacs |
39 |
+ +examples fits fftw fortran +gdml graphviz +gsl http jemalloc |
40 |
+ kerberos ldap libcxx memstat +minuit mysql odbc +opengl oracle |
41 |
+ postgres prefix pythia6 pythia8 +python qt5 R +roofit root7 |
42 |
+ shadow sqlite +ssl table +tbb test +threads +tiff +tmva +unuran |
43 |
+ vc xinetd +xml xrootd" |
44 |
|
45 |
LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA" |
46 |
|
47 |
REQUIRED_USE=" |
48 |
+ ^^ ( c++11 c++14 c++17 ) |
49 |
!X? ( !asimage !opengl !qt5 !tiff ) |
50 |
davix? ( ssl xml ) |
51 |
python? ( ${PYTHON_REQUIRED_USE} ) |
52 |
qt5? ( root7 ) |
53 |
+ root7? ( || ( c++14 c++17 ) ) |
54 |
tmva? ( gsl ) |
55 |
" |
56 |
|
57 |
@@ -116,23 +119,19 @@ RDEPEND="${CDEPEND} |
58 |
xinetd? ( sys-apps/xinetd )" |
59 |
|
60 |
PATCHES=( |
61 |
- "${FILESDIR}"/${PN}-6.12.04-no-ocaml.patch |
62 |
"${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch |
63 |
- "${FILESDIR}"/${PN}-6.13.02-hsimple.patch |
64 |
) |
65 |
|
66 |
pkg_setup() { |
67 |
use fortran && fortran-2_pkg_setup |
68 |
use python && python-single-r1_pkg_setup |
69 |
|
70 |
- echo |
71 |
elog "There are extra options on packages not yet in Gentoo:" |
72 |
elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite," |
73 |
elog "HDFS, Monalisa, MaxDB/SapDB, SRP, VecCore." |
74 |
- elog "You can use the env variable EXTRA_ECONF variable for this." |
75 |
+ elog "You can use the environment variable EXTRA_ECONF for this." |
76 |
elog "For example, for Chirp, you would set: " |
77 |
elog "EXTRA_ECONF=\"-Dchirp=ON\"" |
78 |
- echo |
79 |
} |
80 |
|
81 |
src_prepare() { |
82 |
@@ -146,25 +145,29 @@ src_prepare() { |
83 |
|
84 |
# Note: ROOT uses bundled clang because it is patched and API-incompatible |
85 |
# with vanilla clang. The patches enable the C++ interpreter to work. |
86 |
-# Since ROOT installs many small files into /etc (~100MB in total), |
87 |
-# we install it into another directory to avoid making /etc too big. |
88 |
+# Since ROOT installs many files into /etc (~100MB in total) that don't |
89 |
+# really belong there, we install it into another directory to avoid |
90 |
+# making /etc too big. |
91 |
|
92 |
src_configure() { |
93 |
local mycmakeargs=( |
94 |
-DCMAKE_C_FLAGS="${CFLAGS}" |
95 |
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" |
96 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
97 |
-DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/$(get_libdir)/${PN}/$(ver_cut 1-2)" |
98 |
-DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/$(get_libdir)/${PN}/$(ver_cut 1-2)/share/man" |
99 |
- -DMCAKE_INSTALL_LIBDIR=$(get_libdir) |
100 |
+ -DCMAKE_INSTALL_LIBDIR=$(get_libdir) |
101 |
-DDEFAULT_SYSROOT="${EPREFIX}" |
102 |
-DLLVM_CONFIG="${EPREFIX%/}/usr/lib/llvm/5/bin/llvm-config" |
103 |
-DCLING_BUILD_PLUGINS=OFF |
104 |
-Dexplicitlink=ON |
105 |
-Dexceptions=ON |
106 |
-Dfail-on-missing=ON |
107 |
+ -Dgnuinstall=OFF |
108 |
-Dshared=ON |
109 |
-Dsoversion=ON |
110 |
-Dbuiltin_llvm=OFF |
111 |
+ -Dbuiltin_clang=ON |
112 |
-Dbuiltin_afterimage=OFF |
113 |
-Dbuiltin_cfitsio=OFF |
114 |
-Dbuiltin_davix=OFF |
115 |
@@ -202,7 +205,9 @@ src_configure() { |
116 |
-Dcling=ON # cling=OFF is broken |
117 |
-Dcocoa=$(usex aqua) |
118 |
-Dcuda=$(usex cuda) |
119 |
- -Dcxx14=$(usex root7) |
120 |
+ -Dcxx11=$(usex c++11) |
121 |
+ -Dcxx14=$(usex c++14) |
122 |
+ -Dcxx17=$(usex c++17) |
123 |
-Dcxxmodules=OFF # requires clang, unstable |
124 |
-Ddavix=$(usex davix) |
125 |
-Ddcache=OFF |
126 |
@@ -218,7 +223,6 @@ src_configure() { |
127 |
-Dglite=OFF # not implemented |
128 |
-Dglobus=OFF |
129 |
-Dgminimal=OFF |
130 |
- -Dgnuinstall=OFF |
131 |
-Dgsl_shared=$(usex gsl) |
132 |
-Dgviz=$(usex graphviz) |
133 |
-Dhdfs=OFF |
134 |
@@ -249,8 +253,8 @@ src_configure() { |
135 |
-Droofit=$(usex roofit) |
136 |
-Droot7=$(usex root7) |
137 |
-Drootbench=OFF |
138 |
- -Droottest=$(usex test) |
139 |
- -Drpath=ON # needed for multi-slot to work |
140 |
+ -Droottest=OFF |
141 |
+ -Drpath=OFF |
142 |
-Druby=OFF # deprecated and broken |
143 |
-Druntime_cxxmodules=OFF # does not work yet |
144 |
-Dr=$(usex R) |
145 |
@@ -260,7 +264,6 @@ src_configure() { |
146 |
-Dsrp=OFF # not implemented |
147 |
-Dssl=$(usex ssl) |
148 |
-Dtable=$(usex table) |
149 |
- -Dtbb=$(usex tbb) |
150 |
-Dtcmalloc=OFF |
151 |
-Dtesting=$(usex test) |
152 |
-Dthread=$(usex threads) |
153 |
@@ -279,6 +282,12 @@ src_configure() { |
154 |
cmake-utils_src_configure |
155 |
} |
156 |
|
157 |
+src_compile() { |
158 |
+ # needed for hsimple.root |
159 |
+ addwrite /dev/random |
160 |
+ cmake-utils_src_compile |
161 |
+} |
162 |
+ |
163 |
src_install() { |
164 |
cmake-utils_src_install |
165 |
|
166 |
@@ -310,7 +319,7 @@ src_install() { |
167 |
fi |
168 |
|
169 |
if ! use examples; then |
170 |
- rm -r test tutorials || die |
171 |
+ rm -r tutorials || die |
172 |
fi |
173 |
|
174 |
if ! use tmva; then |
175 |
@@ -318,5 +327,5 @@ src_install() { |
176 |
fi |
177 |
|
178 |
# clean up unnecessary files from installation |
179 |
- rm -r bin/clang* emacs || die |
180 |
+ rm -r emacs test || die |
181 |
} |