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: Tue, 05 Feb 2019 09:51:40
Message-Id: 1549360149.05ef4cae5065cbf82803130b8a74c49795a864a1.amadio@gentoo
1 commit: 05ef4cae5065cbf82803130b8a74c49795a864a1
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 5 09:06:55 2019 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 09:49:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05ef4cae
7
8 sci-physics/root: drop old 6.14/06 version
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
12
13 sci-physics/root/Manifest | 1 -
14 sci-physics/root/root-6.14.06-r2.ebuild | 323 --------------------------------
15 2 files changed, 324 deletions(-)
16
17 diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
18 index 867a78a85d5..ba7896daa5b 100644
19 --- a/sci-physics/root/Manifest
20 +++ b/sci-physics/root/Manifest
21 @@ -1,4 +1,3 @@
22 DIST root_v6.12.06.source.tar.gz 162284452 BLAKE2B 944b5e899677bab40842d7ec969ff08cfa470e63be9a02b948a49ae088e8da72ce433a5071d9196bfd98f71e6861b1bda285354012620eee6c61cffcee71a0c8 SHA512 3d44749ccfc3d40a2f516ae53ef40fb244ed785eee0dbc18ff822bbb811a15b943039d30282ef5358a283d485e62531880c877ec77a86089503b06d6f37e42e1
23 -DIST root_v6.14.06.source.tar.gz 162462837 BLAKE2B a6904b67d1f5964768fa884bd2b5c648390d0b3626b5be8f39ff0e311bf14690d2aff7eb9d6047fa8d5a9de894935067ea8c033592b9795fc34b61aa5f65fcdb SHA512 83698e1213ae9bd4a87ef3160b459c962199585bed7378efc0cfefdc352e6651a17286a11cd925dbcb5d04e1b832d47a3a69849d048731ea9d0d84f9b0f996a4
24 DIST root_v6.14.08.source.tar.gz 162474562 BLAKE2B f8bfdabb4d91bbdfbab0b17626fff1f8aa265292996d857025cbd1543306f3ec540a1afb080788bfc7149ea835932b59d7c54dcd802354e31294ba2e5e9d2366 SHA512 827e39efbf3c69429a0a256127ca9f87550d9084c34c715bddccbf87a8c111c367b9a0ac6882aac747c9b48f4a3effb3747b4df567429910c93ee64dfe35df5b
25 DIST root_v6.16.00.source.tar.gz 164836293 BLAKE2B 9d8f02631bdc1fa1775cbdaf50dd1feacd9b3c86b81d679ba6f0ca3c5787cd1d22ef7c33358b608361a01ad4f0aff3e8c749649d24773a35c52ce87f808d08f5 SHA512 17e5b9815973773e30ff83c2f4028e9e93691c1ecb824c162c8b3e02d1f6666fb8e0b72a5d0652a90032af146d92d271cbffcd634fb6fe6a63bdf46d672789bf
26
27 diff --git a/sci-physics/root/root-6.14.06-r2.ebuild b/sci-physics/root/root-6.14.06-r2.ebuild
28 deleted file mode 100644
29 index 7dcecbbc924..00000000000
30 --- a/sci-physics/root/root-6.14.06-r2.ebuild
31 +++ /dev/null
32 @@ -1,323 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -CMAKE_BUILD_TYPE=Release
39 -# ninja does not work due to fortran
40 -CMAKE_MAKEFILE_GENERATOR=emake
41 -FORTRAN_NEEDED="fortran"
42 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
43 -
44 -inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
45 - 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 +davix emacs +examples
52 - fits fftw fortran +gdml graphviz +gsl http jemalloc kerberos ldap
53 - libcxx memstat +minuit mysql odbc +opengl oracle postgres prefix
54 - pythia6 pythia8 +python qt5 R +roofit root7 shadow sqlite +ssl
55 - table +tbb test +threads +tiff +tmva +unuran vc xinetd +xml xrootd
56 - zeroconf"
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 - !X? ( !asimage !opengl !qt5 !tiff )
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/xz-utils
75 - fortran? ( dev-lang/cfortran )
76 - dev-libs/libpcre:3=
77 - dev-libs/xxhash
78 - media-fonts/dejavu
79 - media-libs/freetype:2=
80 - media-libs/libpng:0=
81 - sys-libs/ncurses:=
82 - sys-libs/zlib
83 - X? (
84 - x11-libs/libX11:0=
85 - x11-libs/libXext:0=
86 - x11-libs/libXft:0=
87 - x11-libs/libXpm:0=
88 - opengl? (
89 - media-libs/ftgl:0=
90 - media-libs/glew:0=
91 - virtual/opengl
92 - virtual/glu
93 - x11-libs/gl2ps:0=
94 - )
95 - qt5? (
96 - dev-qt/qtcore:5
97 - dev-qt/qtgui:5
98 - dev-qt/qtwebengine:5[widgets]
99 - )
100 - )
101 - asimage? ( || (
102 - media-libs/libafterimage[gif,jpeg,png,tiff?]
103 - >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff?]
104 - ) )
105 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
106 - cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
107 - davix? ( net-libs/davix )
108 - emacs? ( virtual/emacs )
109 - fftw? ( sci-libs/fftw:3.0= )
110 - fits? ( sci-libs/cfitsio:0= )
111 - graphviz? ( media-gfx/graphviz:0= )
112 - gsl? ( sci-libs/gsl )
113 - http? ( dev-libs/fcgi:0= )
114 - jemalloc? ( dev-libs/jemalloc )
115 - kerberos? ( virtual/krb5 )
116 - ldap? ( net-nds/openldap:0= )
117 - libcxx? ( sys-libs/libcxx )
118 - unuran? ( sci-mathematics/unuran:0= )
119 - minuit? ( !sci-libs/minuit )
120 - mysql? ( dev-db/mysql-connector-c )
121 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
122 - oracle? ( dev-db/oracle-instantclient-basic )
123 - postgres? ( dev-db/postgresql:= )
124 - pythia6? ( sci-physics/pythia:6= )
125 - pythia8? ( sci-physics/pythia:8= )
126 - python? ( ${PYTHON_DEPS} )
127 - R? ( dev-lang/R )
128 - shadow? ( virtual/shadow )
129 - sqlite? ( dev-db/sqlite:3 )
130 - ssl? ( dev-libs/openssl:0= )
131 - tbb? ( dev-cpp/tbb )
132 - tmva? ( dev-python/numpy[${PYTHON_USEDEP}] )
133 - vc? ( dev-libs/vc )
134 - xml? ( dev-libs/libxml2:2= )
135 - xrootd? ( net-libs/xrootd:0= )
136 -"
137 -
138 -DEPEND="${CDEPEND}
139 - virtual/pkgconfig"
140 -
141 -RDEPEND="${CDEPEND}
142 - xinetd? ( sys-apps/xinetd )"
143 -
144 -PATCHES=(
145 - "${FILESDIR}"/${PN}-6.12.04-no-ocaml.patch
146 - "${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch
147 - "${FILESDIR}"/${PN}-6.14.06-oracle.patch
148 -)
149 -
150 -pkg_setup() {
151 - use fortran && fortran-2_pkg_setup
152 - use python && python-single-r1_pkg_setup
153 -
154 - elog "There are extra options on packages not yet in Gentoo:"
155 - elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
156 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP, VecCore."
157 - elog "You can use the environment variable EXTRA_ECONF for this."
158 - elog "For example, for Chirp, you would set: "
159 - elog "EXTRA_ECONF=\"-Dchirp=ON\""
160 -}
161 -
162 -src_prepare() {
163 - cmake-utils_src_prepare
164 -
165 - sed -i "/CLING_BUILD_PLUGINS/d" interpreter/CMakeLists.txt || die
166 -
167 - # CSS should use local images
168 - sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
169 -}
170 -
171 -# Note: ROOT uses bundled clang because it is patched and API-incompatible
172 -# with vanilla clang. The patches enable the C++ interpreter to work.
173 -# Since ROOT installs many files into /etc (~100MB in total) that don't
174 -# really belong there, we install it into another directory to avoid
175 -# making /etc too big.
176 -
177 -src_configure() {
178 - local mycmakeargs=(
179 - -DCMAKE_C_FLAGS="${CFLAGS}"
180 - -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
181 - -DPYTHON_EXECUTABLE="${PYTHON}"
182 - -DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/$(get_libdir)/${PN}/$(ver_cut 1-2)"
183 - -DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/$(get_libdir)/${PN}/$(ver_cut 1-2)/share/man"
184 - -DCMAKE_INSTALL_LIBDIR=$(get_libdir)
185 - -DDEFAULT_SYSROOT="${EPREFIX}"
186 - -DCLING_BUILD_PLUGINS=OFF
187 - -Dexplicitlink=ON
188 - -Dexceptions=ON
189 - -Dfail-on-missing=ON
190 - -Dgnuinstall=OFF
191 - -Dshared=ON
192 - -Dsoversion=ON
193 - -Dbuiltin_llvm=ON
194 - -Dbuiltin_clang=ON
195 - -Dbuiltin_afterimage=OFF
196 - -Dbuiltin_cfitsio=OFF
197 - -Dbuiltin_davix=OFF
198 - -Dbuiltin_fftw3=OFF
199 - -Dbuiltin_freetype=OFF
200 - -Dbuiltin_ftgl=OFF
201 - -Dbuiltin_gl2ps=OFF
202 - -Dbuiltin_glew=OFF
203 - -Dbuiltin_gsl=OFF
204 - -Dbuiltin_lz4=OFF
205 - -Dbuiltin_lzma=OFF
206 - -Dbuiltin_openssl=OFF
207 - -Dbuiltin_pcre=OFF
208 - -Dbuiltin_tbb=OFF
209 - -Dbuiltin_unuran=OFF
210 - -Dbuiltin_vc=OFF
211 - -Dbuiltin_vdt=OFF
212 - -Dbuiltin_veccore=OFF
213 - -Dbuiltin_xrootd=OFF
214 - -Dbuiltin_xxhash=OFF
215 - -Dbuiltin_zlib=OFF
216 - -Dx11=$(usex X)
217 - -Dxft=$(usex X)
218 - -Dafdsmgrd=OFF
219 - -Dafs=OFF # not implemented
220 - -Dalien=OFF
221 - -Dasimage=$(usex asimage)
222 - -Dastiff=$(usex tiff)
223 - -Dbonjour=$(usex zeroconf)
224 - -Dlibcxx=$(usex libcxx)
225 - -Dccache=OFF # use ccache via portage
226 - -Dcastor=OFF
227 - -Dchirp=OFF
228 - -Dclad=OFF
229 - -Dcling=ON # cling=OFF is broken
230 - -Dcocoa=$(usex aqua)
231 - -Dcuda=$(usex cuda)
232 - -Dcxx11=$(usex c++11)
233 - -Dcxx14=$(usex c++14)
234 - -Dcxx17=$(usex c++17)
235 - -Dcxxmodules=OFF # requires clang, unstable
236 - -Ddavix=$(usex davix)
237 - -Ddcache=OFF
238 - -Dfftw3=$(usex fftw)
239 - -Dfitsio=$(usex fits)
240 - -Dfortran=$(usex fortran)
241 - -Dftgl=$(usex opengl)
242 - -Dgdml=$(usex gdml)
243 - -Dgenvector=ON # genvector=OFF ignored
244 - -Dgeocad=OFF
245 - -Dgfal=OFF
246 - -Dgl2ps=$(usex opengl)
247 - -Dglite=OFF # not implemented
248 - -Dglobus=OFF
249 - -Dgminimal=OFF
250 - -Dgsl_shared=$(usex gsl)
251 - -Dgviz=$(usex graphviz)
252 - -Dhdfs=OFF
253 - -Dhttp=$(usex http)
254 - -Dimt=$(usex tbb)
255 - -Djemalloc=$(usex jemalloc)
256 - -Dkrb5=$(usex kerberos)
257 - -Dldap=$(usex ldap)
258 - -Dmathmore=$(usex gsl)
259 - -Dmemstat=$(usex memstat)
260 - -Dminimal=OFF
261 - -Dminuit2=$(usex minuit)
262 - -Dminuit=$(usex minuit)
263 - -Dmonalisa=OFF
264 - -Dmysql=$(usex mysql)
265 - -Dodbc=$(usex odbc)
266 - -Dopengl=$(usex opengl)
267 - -Doracle=$(usex oracle)
268 - -Dpch=ON # pch=OFF is broken
269 - -Dpgsql=$(usex postgres)
270 - -Dpythia6=$(usex pythia6)
271 - -Dpythia8=$(usex pythia8)
272 - -Dpython=$(usex python)
273 - -Dqt5web=$(usex qt5)
274 - -Dqtgsi=OFF
275 - -Dqt=OFF
276 - -Drfio=OFF
277 - -Droofit=$(usex roofit)
278 - -Droot7=$(usex root7)
279 - -Drootbench=OFF
280 - -Droottest=OFF
281 - -Drpath=OFF
282 - -Druby=OFF # deprecated and broken
283 - -Druntime_cxxmodules=OFF # does not work yet
284 - -Dr=$(usex R)
285 - -Dsapdb=OFF # not implemented
286 - -Dshadowpw=$(usex shadow)
287 - -Dsqlite=$(usex sqlite)
288 - -Dsrp=OFF # not implemented
289 - -Dssl=$(usex ssl)
290 - -Dtable=$(usex table)
291 - -Dtcmalloc=OFF
292 - -Dtesting=$(usex test)
293 - -Dthread=$(usex threads)
294 - -Dtmva=$(usex tmva)
295 - -Dtmva-cpu=$(usex tmva)
296 - -Dtmva-gpu=$(usex cuda)
297 - -Dunuran=$(usex unuran)
298 - -Dvc=$(usex vc)
299 - -Dvdt=OFF
300 - -Dveccore=OFF
301 - -Dxml=$(usex xml)
302 - -Dxrootd=$(usex xrootd)
303 - ${EXTRA_ECONF}
304 - )
305 -
306 - cmake-utils_src_configure
307 -}
308 -
309 -src_compile() {
310 - # needed for hsimple.root
311 - addwrite /dev/random
312 - cmake-utils_src_compile
313 -}
314 -
315 -src_install() {
316 - cmake-utils_src_install
317 -
318 - ROOTSYS=${EPREFIX%/}/usr/$(get_libdir)/${PN}/$(ver_cut 1-2)
319 - ROOTENV=$((9999 - $(ver_cut 2)))${PN}-$(ver_cut 1-2)
320 -
321 - # ROOT fails without this symlink because it only looks in lib
322 - if [[ ! -d ${D}/${ROOTSYS}/lib ]]; then
323 - dosym $(get_libdir) /usr/$(get_libdir)/${PN}/$(ver_cut 1-2)/lib
324 - fi
325 -
326 - cat > ${ROOTENV} <<- EOF || die
327 - MANPATH="${ROOTSYS}/share/man"
328 - PATH="${ROOTSYS}/bin"
329 - ROOTPATH="${ROOTSYS}/bin"
330 - LDPATH="${ROOTSYS}/$(get_libdir)"
331 - EOF
332 -
333 - if use python; then
334 - echo "PYTHONPATH=${ROOTSYS}/$(get_libdir)" >> ${ROOTENV} || die
335 - fi
336 -
337 - doenvd ${ROOTENV}
338 -
339 - pushd "${D}/${ROOTSYS}" > /dev/null
340 -
341 - if use emacs; then
342 - elisp-install ${PN}-$(ver_cut 1-2) "${BUILD_DIR}"/root-help.el
343 - fi
344 -
345 - if ! use examples; then
346 - rm -r tutorials || die
347 - fi
348 -
349 - if ! use tmva; then
350 - rm -r tmva || die
351 - fi
352 -
353 - # clean up unnecessary files from installation
354 - rm -r emacs test || die
355 -}