Gentoo Archives: gentoo-commits

From: Justin Bronder <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/files/, sci-physics/root/
Date: Fri, 06 Jul 2018 14:06:59
Message-Id: 1530885984.854e59ed4c4d28e6e165da84022274fb7675d401.jsbronder@gentoo
1 commit: 854e59ed4c4d28e6e165da84022274fb7675d401
2 Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 6 14:06:24 2018 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 14:06:24 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=854e59ed
7
8 sci-physics/root: in main tree
9
10 Removal per https://bugs.gentoo.org/573264
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13 RepoMan-Options: --force
14
15 sci-physics/root/files/proofd.confd | 12 -
16 sci-physics/root/files/proofd.initd | 25 --
17 .../root/files/root-5.28.00b-glibc212.patch | 11 -
18 sci-physics/root/files/root-5.32.00-afs.patch | 33 --
19 sci-physics/root/files/root-5.32.00-cfitsio.patch | 13 -
20 sci-physics/root/files/root-5.32.00-chklib64.patch | 24 --
21 sci-physics/root/files/root-5.34.13-unuran.patch | 40 --
22 sci-physics/root/files/root-6.00.01-dotfont.patch | 58 ---
23 sci-physics/root/files/root-6.00.01-llvm.patch | 13 -
24 .../root/files/root-6.06.00-nobyte-compile.patch | 39 --
25 sci-physics/root/files/rootd.confd | 8 -
26 sci-physics/root/files/rootd.initd | 27 --
27 sci-physics/root/metadata.xml | 29 --
28 sci-physics/root/root-9999.ebuild | 444 ---------------------
29 14 files changed, 776 deletions(-)
30
31 diff --git a/sci-physics/root/files/proofd.confd b/sci-physics/root/files/proofd.confd
32 deleted file mode 100644
33 index 81720a7eb..000000000
34 --- a/sci-physics/root/files/proofd.confd
35 +++ /dev/null
36 @@ -1,12 +0,0 @@
37 -# conf.d file for proof daemon
38 -#
39 -# Please refer to the proofd(1) man(1) page for more information on
40 -# command line parameters.
41 -#
42 -PROOFD_OPTS=
43 -
44 -# Specify your base of your PROOF directory here. If left blank, it
45 -# will use the system default (e.g., /usr/share/root/proof).
46 -# Note, however, that ROOT recommends that this directory is shared (via
47 -# NFS or similar) among all the nodes of the cluster.
48 -PROOF_DIR=
49
50 diff --git a/sci-physics/root/files/proofd.initd b/sci-physics/root/files/proofd.initd
51 deleted file mode 100644
52 index b0839466b..000000000
53 --- a/sci-physics/root/files/proofd.initd
54 +++ /dev/null
55 @@ -1,25 +0,0 @@
56 -#!/sbin/openrc-run
57 -# Copyright 1999-2017 Gentoo Foundation
58 -# Distributed under the terms of the GNU General Public License v2
59 -
60 -depend() {
61 - need root-file-server
62 - use logger
63 -}
64 -
65 -start() {
66 - ebegin "Starting parallel ROOT facility server"
67 - start-stop-daemon --start --quiet \
68 - --pidfile /var/run/proofd.pid \
69 - --exec /usr/bin/proofd -- ${PROOFD_OPTS} ${PROOF_DIR}
70 - pidof /usr/bin/proofd > /var/run/proofd.pid
71 - eend $?
72 -}
73 -
74 -stop() {
75 - ebegin "Stopping parallel ROOT facility server"
76 - start-stop-daemon --stop --quiet \
77 - --pidfile /var/run/proofd.pid \
78 - --exec /usr/bin/proofd
79 - eend $?
80 -}
81
82 diff --git a/sci-physics/root/files/root-5.28.00b-glibc212.patch b/sci-physics/root/files/root-5.28.00b-glibc212.patch
83 deleted file mode 100644
84 index a36543139..000000000
85 --- a/sci-physics/root/files/root-5.28.00b-glibc212.patch
86 +++ /dev/null
87 @@ -1,11 +0,0 @@
88 ---- root.orig/net/auth/src/TAFS.cxx 2010-09-14 03:22:22.647915854 +0400
89 -+++ root/net/auth/src/TAFS.cxx 2010-09-14 03:22:39.034599899 +0400
90 -@@ -11,6 +11,7 @@
91 -
92 - #ifndef WIN32
93 - # include <unistd.h>
94 -+# include <sys/stat.h>
95 - #else
96 - # define ssize_t int
97 - # include <io.h>
98 -
99
100 diff --git a/sci-physics/root/files/root-5.32.00-afs.patch b/sci-physics/root/files/root-5.32.00-afs.patch
101 deleted file mode 100644
102 index 2bf31798e..000000000
103 --- a/sci-physics/root/files/root-5.32.00-afs.patch
104 +++ /dev/null
105 @@ -1,33 +0,0 @@
106 ---- root/net/auth/src/TAFS.cxx.orig 2011-12-04 00:56:29.405007770 +0400
107 -+++ root/net/auth/src/TAFS.cxx 2011-12-04 00:56:35.534709259 +0400
108 -@@ -138,7 +138,7 @@
109 - } else {
110 - if (isatty(0) != 0 && isatty(1) != 0) {
111 - Gl_config("noecho", 1);
112 -- pw = Getline((char *) prompt.Data());
113 -+ pw = const_cast<char *>( Getline((char *) prompt.Data()) );
114 - Gl_config("noecho", 0);
115 - } else {
116 - Warning("TAFS", "not tty: cannot prompt for passwd: failure");
117 ---- root/core/clib/src/strlcat.c.orig 2011-12-04 01:49:26.495179487 +0400
118 -+++ root/core/clib/src/strlcat.c 2011-12-04 01:50:41.407524763 +0400
119 -@@ -38,7 +38,7 @@
120 - * Returns strlen(src) + MIN(siz, strlen(initial dst)).
121 - * If retval >= siz, truncation occurred.
122 - */
123 --size_t
124 -+size_t __attribute__((weak))
125 - strlcat(char *dst, const char *src, size_t siz)
126 - {
127 - register char *d = dst;
128 ---- root/core/clib/src/strlcpy.c.orig 2011-12-04 01:49:34.329797251 +0400
129 -+++ root/core/clib/src/strlcpy.c 2011-12-04 01:50:49.051151843 +0400
130 -@@ -36,7 +36,7 @@
131 - * will be copied. Always NUL terminates (unless siz == 0).
132 - * Returns strlen(src); if retval >= siz, truncation occurred.
133 - */
134 --size_t
135 -+size_t __attribute__((weak))
136 - strlcpy(char *dst, const char *src, size_t siz)
137 - {
138 - register char *d = dst;
139
140 diff --git a/sci-physics/root/files/root-5.32.00-cfitsio.patch b/sci-physics/root/files/root-5.32.00-cfitsio.patch
141 deleted file mode 100644
142 index 853c3f39f..000000000
143 --- a/sci-physics/root/files/root-5.32.00-cfitsio.patch
144 +++ /dev/null
145 @@ -1,13 +0,0 @@
146 ---- configure.orig 2012-01-19 23:44:44.127607638 +0100
147 -+++ configure 2012-01-20 00:19:20.420652913 +0100
148 -@@ -3435,9 +3435,7 @@
149 - cfitsioinc=$found_hdr
150 - cfitsioincdir=$found_dir
151 -
152 -- # At this time, libcfitsio.a should always be prefered over .so,
153 -- # to avoid forcing users to install cfitsio.
154 -- check_library "libcfitsio cfitsio" "no" "$cfitsiolibdir" \
155 -+ check_library "libcfitsio cfitsio" "yes" "$cfitsiolibdir" \
156 - $CFITSIO ${CFITSIO:+$CFITSIO/lib} ${CFITSIO:+$CFITSIO/.libs} \
157 - ${finkdir:+$finkdir/lib} \
158 - /usr/local/lib /usr/lib /opt/cfitsio/lib
159
160 diff --git a/sci-physics/root/files/root-5.32.00-chklib64.patch b/sci-physics/root/files/root-5.32.00-chklib64.patch
161 deleted file mode 100644
162 index 979220f02..000000000
163 --- a/sci-physics/root/files/root-5.32.00-chklib64.patch
164 +++ /dev/null
165 @@ -1,24 +0,0 @@
166 -bug fix for #406817
167 ---- configure.orig 2012-02-29 19:46:41.000000000 +0400
168 -+++ configure 2012-03-22 03:28:43.458968696 +0400
169 -@@ -441,14 +441,13 @@
170 - fi
171 - else
172 - if file $filearg $chklib64 | grep 'ASCII' > /dev/null 2>& 1 ; then
173 -- check_link $chklib64
174 -- ret=$link_result
175 -- else
176 -- logmsg " file $filearg $chklib64 | grep '64-bit'"
177 -- if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then
178 -- ret=1
179 -- fi
180 -+ # get real binary .so name from .so ld script
181 -+ chklib64=$(gawk '($1 == "GROUP") { print $3 }' $chklib64)
182 - fi
183 -+ logmsg " file $filearg $chklib64 | grep '64-bit'"
184 -+ if file $filearg $chklib64 | grep '64-bit' > /dev/null 2>& 1 ; then
185 -+ ret=1
186 -+ fi
187 - fi
188 - logmsg " result: $ret"
189 - if test $ret -eq 1 ; then
190
191 diff --git a/sci-physics/root/files/root-5.34.13-unuran.patch b/sci-physics/root/files/root-5.34.13-unuran.patch
192 deleted file mode 100644
193 index 826231318..000000000
194 --- a/sci-physics/root/files/root-5.34.13-unuran.patch
195 +++ /dev/null
196 @@ -1,40 +0,0 @@
197 -diff --git a/math/unuran/Module.mk b/math/unuran/Module.mk
198 -index 00a530b..7cd22dc 100644
199 ---- a/math/unuran/Module.mk
200 -+++ b/math/unuran/Module.mk
201 -@@ -31,7 +31,7 @@ UNRS := $(wildcard $(UNRDIRS)/src/utils/*.c) \
202 - $(wildcard $(UNRDIRS)/src/uniform/*.c) \
203 - $(wildcard $(UNRDIRS)/src/urng/*.c)
204 - else
205 --UNRTARCONTENT:=$(subst $(UNRVERS),$(UNRDIRS),$(shell mkdir -p $(UNRDIR); cd $(UNRDIR); gunzip -c $(UNRSRCS) | tar tf -))
206 -+UNRTARCONTENT:=
207 - UNRS := $(filter %.c, \
208 - $(filter $(UNRDIRS)/src/utils/%,$(UNRTARCONTENT)) \
209 - $(filter $(UNRDIRS)/src/methods/%,$(UNRTARCONTENT)) \
210 -@@ -81,10 +81,9 @@ INCLUDEFILES += $(UNURANDEP)
211 - ##### local rules #####
212 - .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
213 -
214 --include/%.h: $(UNURANDIRI)/%.h $(UNURANETAG)
215 -+include/%.h: $(UNURANDIRI)/%.h
216 - cp $< $@
217 -
218 --$(UNURANDEP): $(UNRCFG)
219 - $(UNRS): $(UNURANETAG)
220 -
221 - $(UNURANETAG): $(UNRSRCS)
222 -@@ -137,12 +136,12 @@ $(UNRCFG): $(UNURANETAG)
223 - GNUMAKE=$(MAKE) ./configure CC="$$ACC" \
224 - CFLAGS="$$ACFLAGS");
225 -
226 --$(UNURANLIB): $(UNRCFG) $(UNRO) $(UNURANO) $(UNURANDO) $(ORDER_) \
227 -+$(UNURANLIB): $(UNURANO) $(UNURANDO) $(ORDER_) \
228 - $(MAINLIBS) $(UNURANLIBDEP)
229 - @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
230 - "$(SOFLAGS)" libUnuran.$(SOEXT) $@ \
231 - "$(UNURANO) $(UNURANDO)" \
232 -- "$(UNURANLIBEXTRA) $(UNRO)"
233 -+ "$(UNURANLIBEXTRA) -lunuran"
234 -
235 - $(UNURANDS): $(UNRINIT) $(UNURANDH1) $(UNURANL) $(ROOTCINTTMPDEP)
236 - $(MAKEDIR)
237
238 diff --git a/sci-physics/root/files/root-6.00.01-dotfont.patch b/sci-physics/root/files/root-6.00.01-dotfont.patch
239 deleted file mode 100644
240 index 6c765f75a..000000000
241 --- a/sci-physics/root/files/root-6.00.01-dotfont.patch
242 +++ /dev/null
243 @@ -1,58 +0,0 @@
244 ---- root/html/src/TClassDocOutput.cxx.orig 2012-06-08 02:13:51.000000000 +0400
245 -+++ root/html/src/TClassDocOutput.cxx 2012-06-08 02:34:45.705436577 +0400
246 -@@ -625,7 +625,7 @@
247 - << "size=\"8,10\";" << std::endl
248 - << "ratio=auto;" << std::endl
249 - << "margin=0;" << std::endl
250 -- << "node [shape=plaintext,fontsize=40,width=4,height=0.75];" << std::endl
251 -+ << "node [shape=plaintext,fontsize=40,width=4,height=0.75,fontname=\"DejaVu Serif\"];" << std::endl
252 - << "\"" << fCurrentClass->GetName() << "\" [shape=ellipse];" << std::endl;
253 -
254 - std::stringstream ssDep;
255 -@@ -704,7 +704,7 @@
256 - outdot << ";" << std::endl;
257 - } else if (writeAndMoreFor) {
258 - outdot << " \"...andmore" << writeAndMoreFor->GetName()
259 -- << "\" [label=\"...and more\",fontname=\"Times-Italic\",fillcolor=lightgrey,style=filled];" << std::endl;
260 -+ << "\" [label=\"...and more\",fontname=\"DejaVu Serif Italic\",fillcolor=lightgrey,style=filled];" << std::endl;
261 - }
262 - }
263 - if (!levelExists) break;
264 -@@ -733,7 +733,7 @@
265 - << "ranksep=0.1;" << std::endl
266 - << "nodesep=0;" << std::endl
267 - << "margin=0;" << std::endl;
268 -- outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10];" << std::endl;
269 -+ outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10,fontname=\"DejaVu Serif\"];" << std::endl;
270 -
271 - std::stringstream ssDep;
272 - const int numColumns = 3;
273 -@@ -939,7 +939,7 @@
274 - << "ranksep=0;" << std::endl
275 - << "nodesep=0;" << std::endl
276 - << "size=\"8,10\";" << std::endl
277 -- << "node [fontsize=20,shape=plaintext];" << std::endl;
278 -+ << "node [fontsize=20,shape=plaintext,fontname=\"DejaVu Serif\"];" << std::endl;
279 -
280 - for (std::list<std::string>::iterator iFile = listFilesToParse.begin();
281 - iFile != listFilesToParse.end(); ++iFile) {
282 -@@ -999,7 +999,8 @@
283 - << "ranksep=0.7;" << std::endl
284 - << "nodesep=0.3;" << std::endl
285 - << "size=\"8,8\";" << std::endl
286 -- << "ratio=compress;" << std::endl;
287 -+ << "ratio=compress;" << std::endl
288 -+ << "node [fontname=\"DejaVu Serif\"];" << std::endl;
289 -
290 - TString libs(fCurrentClass->GetSharedLibs());
291 - outdot << "\"All Libraries\" [URL=\"LibraryDependencies.html\",shape=box,rank=max,fillcolor=lightgray,style=filled];" << std::endl;
292 -@@ -1109,7 +1110,8 @@
293 -
294 - dotout << "digraph G {" << std::endl
295 - << "ratio=auto;" << std::endl
296 -- << "rankdir=RL;" << std::endl;
297 -+ << "rankdir=RL;" << std::endl
298 -+ << "node [fontname=\"DejaVu Serif\"];" << std::endl;
299 -
300 - // loop on all classes
301 - TClassDocInfo* cdi = 0;
302
303 diff --git a/sci-physics/root/files/root-6.00.01-llvm.patch b/sci-physics/root/files/root-6.00.01-llvm.patch
304 deleted file mode 100644
305 index c6abb353e..000000000
306 --- a/sci-physics/root/files/root-6.00.01-llvm.patch
307 +++ /dev/null
308 @@ -1,13 +0,0 @@
309 -diff --git a/interpreter/llvm/src/Makefile.config.in b/interpreter/llvm/src/Makefile.config.in
310 -index 7633be2..c8756b1 100644
311 ---- a/interpreter/llvm/src/Makefile.config.in
312 -+++ b/interpreter/llvm/src/Makefile.config.in
313 -@@ -170,6 +170,8 @@ CXXFLAGS += @CXXFLAGS@
314 -
315 - # Linker flags.
316 - LDFLAGS += @LDFLAGS@
317 -+NOUNDEF := -Wl,--no-undefined
318 -+LDFLAGS := $(filter-out $(NOUNDEF),$(LDFLAGS))
319 -
320 - # Path to the library archiver program.
321 - AR_PATH = @AR@
322
323 diff --git a/sci-physics/root/files/root-6.06.00-nobyte-compile.patch b/sci-physics/root/files/root-6.06.00-nobyte-compile.patch
324 deleted file mode 100644
325 index 61ffef7ac..000000000
326 --- a/sci-physics/root/files/root-6.06.00-nobyte-compile.patch
327 +++ /dev/null
328 @@ -1,39 +0,0 @@
329 -diff --git a/bindings/pyroot/Module.mk b/bindings/pyroot/Module.mk
330 -index 8c2782d..f41e0aa 100644
331 ---- a/bindings/pyroot/Module.mk
332 -+++ b/bindings/pyroot/Module.mk
333 -@@ -65,10 +65,6 @@ $(LPATH)/ROOTaaS/%: $(MODDIR)/ROOTaaS/%
334 - @[ -d $(dir $@) ] || mkdir -p $(dir $@)
335 - cp -R $< $@
336 - endif
337 --ROOTPYC := $(ROOTPY:.py=.pyc)
338 --ROOTPYO := $(ROOTPY:.py=.pyo)
339 --ROOTAASC := $(ROOTAAS:.py=.pyc)
340 --ROOTAASO := $(ROOTAAS:.py=.pyo)
341 -
342 - # used in the main Makefile
343 - ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
344 -@@ -87,12 +83,9 @@ INCLUDEFILES += $(PYROOTDEP)
345 - include/%.h: $(PYROOTDIRI)/%.h
346 - cp $< $@
347 -
348 --%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
349 --%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
350 --
351 --$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
352 -+$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
353 - $(ROOTLIBSDEP) $(PYTHONLIBDEP) \
354 -- $(ROOTAAS) $(ROOTAASC) $(ROOTAASO)
355 -+ $(ROOTAAS)
356 -
357 - @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
358 - "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
359 -@@ -138,7 +131,7 @@ clean:: clean-$(MODNAME)
360 -
361 - distclean-$(MODNAME): clean-$(MODNAME)
362 - @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
363 -- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
364 -+ $(ROOTPY) $(PYROOTMAP) \
365 - $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
366 - @rm -rf $(LPATH)/ROOTaaS bin/ROOTaaS
367 -
368
369 diff --git a/sci-physics/root/files/rootd.confd b/sci-physics/root/files/rootd.confd
370 deleted file mode 100644
371 index 7516b8c9b..000000000
372 --- a/sci-physics/root/files/rootd.confd
373 +++ /dev/null
374 @@ -1,8 +0,0 @@
375 -# conf.d file for root daemon
376 -
377 -# User to run as (default is `rootd')
378 -ROOTD_USER="rootd"
379 -
380 -# Please refer to the rootd(1) man(1) page for more information on
381 -# command line parameters.
382 -ROOTD_OPTS=""
383
384 diff --git a/sci-physics/root/files/rootd.initd b/sci-physics/root/files/rootd.initd
385 deleted file mode 100644
386 index b79d7bbed..000000000
387 --- a/sci-physics/root/files/rootd.initd
388 +++ /dev/null
389 @@ -1,27 +0,0 @@
390 -#!/sbin/openrc-run
391 -# Copyright 1999-2017 Gentoo Foundation
392 -# Distributed under the terms of the GNU General Public License v2
393 -
394 -depend() {
395 - need net
396 - use logger
397 - provide root-file-server
398 -}
399 -
400 -start() {
401 - ebegin "Starting ROOT file server"
402 - pid=$(start-stop-daemon --start --quiet --user ${ROOTD_USER} \
403 - --pidfile /var/run/rootd.pid \
404 - --exec /usr/bin/rootd -- ${ROOTD_OPTS})
405 - retval=$?
406 - echo ${ROOTD_PID} > /var/run/rootd.pid
407 - eend ${retval}
408 -}
409 -
410 -stop() {
411 - ebegin "Stopping ROOT file server"
412 - start-stop-daemon --stop --quiet \
413 - --pidfile /var/run/rootd.pid \
414 - --exec /usr/bin/rootd
415 - eend $?
416 -}
417
418 diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
419 deleted file mode 100644
420 index 6c223c096..000000000
421 --- a/sci-physics/root/metadata.xml
422 +++ /dev/null
423 @@ -1,29 +0,0 @@
424 -<?xml version="1.0" encoding="UTF-8"?>
425 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
426 -<pkgmetadata>
427 - <maintainer type="person">
428 - <email>bircoph@g.o</email>
429 - <name>Andrew Savchenko</name>
430 - </maintainer>
431 - <maintainer type="project">
432 - <email>sci-physics@g.o</email>
433 - <name>Gentoo Physics Project</name>
434 - </maintainer>
435 - <longdescription lang="en">
436 -ROOT Object Oriented Technologies is an object oriented data
437 -analysis framework written in C++ by the CERN. Widely used in
438 -high energy physics, but also in other data analysis applications. It
439 -contains the CINT C/C++ interpreter and many classes such as
440 -statistics, serialization, optimization, linear algebra, graphics,
441 -GUI toolkit, and a complete visualization framework.
442 -</longdescription>
443 - <use>
444 - <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
445 - <flag name="geocad">Enable ROOT-CAD interface using <pkg>sci-libs/opencascade</pkg></flag>
446 - <flag name="http">Enable http server support including but not limited to fastcgi support</flag>
447 - <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
448 - <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
449 - <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
450 - <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
451 - </use>
452 -</pkgmetadata>
453
454 diff --git a/sci-physics/root/root-9999.ebuild b/sci-physics/root/root-9999.ebuild
455 deleted file mode 100644
456 index bb5692c84..000000000
457 --- a/sci-physics/root/root-9999.ebuild
458 +++ /dev/null
459 @@ -1,444 +0,0 @@
460 -# Copyright 1999-2017 Gentoo Foundation
461 -# Distributed under the terms of the GNU General Public License v2
462 -
463 -EAPI=6
464 -
465 -if [[ ${PV} == "9999" ]] ; then
466 - inherit git-r3
467 - EGIT_REPO_URI="http://root.cern.ch/git/root.git"
468 - KEYWORDS=""
469 -else
470 - SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz"
471 - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
472 - S="${WORKDIR}/${PN}"
473 -fi
474 -
475 -PYTHON_COMPAT=( python2_7 )
476 -
477 -inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \
478 - toolchain-funcs user versionator
479 -
480 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
481 -HOMEPAGE="http://root.cern.ch/"
482 -DOC_URI="ftp://root.cern.ch/${PN}/doc"
483 -
484 -SLOT="0/$(get_version_component_range 1-3 ${PV})"
485 -LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
486 -IUSE="+X afs avahi doc emacs examples fits fftw geocad graphviz
487 - http kerberos ldap +math minimal mpi mysql odbc +opengl openmp
488 - oracle postgres prefix pythia6 pythia8 python qt4 sqlite ssl
489 - xinetd xml xrootd"
490 -
491 -# TODO: add support for: davix
492 -# TODO: ROOT-6 supports x32 ABI, but half of its dependencies doesn't
493 -# TODO: unbundle: cling, vdt
494 -
495 -REQUIRED_USE="
496 - mpi? ( math !openmp )
497 - opengl? ( X )
498 - openmp? ( math !mpi )
499 - python? ( ${PYTHON_REQUIRED_USE} )
500 - qt4? ( X )
501 -"
502 -
503 -CDEPEND="
504 - app-arch/xz-utils:0=
505 - >=dev-lang/cfortran-4.4-r2
506 - dev-libs/libpcre:3=
507 - media-fonts/dejavu
508 - media-libs/freetype:2=
509 - media-libs/giflib:0=
510 - media-libs/libpng:0=
511 - media-libs/tiff:0=
512 - >=sys-devel/clang-3.4:=
513 - sys-libs/zlib:0=
514 - virtual/jpeg:0
515 - virtual/shadow
516 - X? (
517 - media-libs/ftgl:0=
518 - media-libs/glew:0=
519 - x11-libs/libX11:0=
520 - x11-libs/libXext:0=
521 - x11-libs/libXpm:0=
522 - !minimal? (
523 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps:0= )
524 - qt4? (
525 - dev-qt/qtgui:4=
526 - dev-qt/qtopengl:4=
527 - dev-qt/qt3support:4=
528 - dev-qt/qtsvg:4=
529 - dev-qt/qtwebkit:4=
530 - dev-qt/qtxmlpatterns:4=
531 - )
532 - x11-libs/libXft:0=
533 - )
534 - )
535 - !minimal? (
536 - afs? ( net-fs/openafs )
537 - avahi? ( net-dns/avahi:0= )
538 - emacs? ( virtual/emacs )
539 - fits? ( sci-libs/cfitsio:0= )
540 - fftw? ( sci-libs/fftw:3.0= )
541 - geocad? ( sci-libs/opencascade:= )
542 - graphviz? ( media-gfx/graphviz:0= )
543 - http? ( dev-libs/fcgi:0= )
544 - kerberos? ( virtual/krb5 )
545 - ldap? ( net-nds/openldap:0= )
546 - math? (
547 - sci-libs/gsl:0=
548 - sci-mathematics/unuran:0=
549 - mpi? ( virtual/mpi )
550 - )
551 - mysql? ( virtual/mysql )
552 - odbc? ( || ( dev-db/libiodbc:0 dev-db/unixODBC:0 ) )
553 - oracle? ( dev-db/oracle-instantclient-basic:0= )
554 - postgres? ( dev-db/postgresql:= )
555 - pythia6? ( sci-physics/pythia:6= )
556 - pythia8? ( >=sci-physics/pythia-8.1.80:8= )
557 - python? ( ${PYTHON_DEPS} )
558 - sqlite? ( dev-db/sqlite:3= )
559 - ssl? ( dev-libs/openssl:0= )
560 - xml? ( dev-libs/libxml2:2= )
561 - xrootd? ( >=net-libs/xrootd-3.3.5:0= )
562 - )"
563 -
564 -# TODO: ruby is not yet ported to ROOT-6, reenable when (if?) ready
565 -# ruby? (
566 -# dev-lang/ruby
567 -# dev-ruby/rubygems
568 -# )
569 -#
570 -# TODO: root-6.00.01 crashes with system libafterimage
571 -# || (
572 -# media-libs/libafterimage:0=[gif,jpeg,png,tiff]
573 -# >=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff]
574 -# )
575 -# --disable-builtin-afterimage
576 -
577 -DEPEND="${CDEPEND}
578 - virtual/pkgconfig"
579 -
580 -RDEPEND="${CDEPEND}
581 - xinetd? ( sys-apps/xinetd )"
582 -
583 -PDEPEND="doc? ( ~app-doc/root-docs-${PV}[http=,math=] )"
584 -
585 -# install stuff in ${P} and not ${PF} for easier tracking in root-docs
586 -DOC_DIR="/usr/share/doc/${P}"
587 -
588 -die_compiler() {
589 - die "Need one of the following C++11 capable compilers:"\
590 - " >=sys-devel/gcc[cxx]-4.8"\
591 - " >=sys-devel/clang-3.4"\
592 - " >=dev-lang/icc-13"
593 -}
594 -
595 -pkg_setup() {
596 - fortran-2_pkg_setup
597 - use python && python-single-r1_pkg_setup
598 - echo
599 - elog "There are extra options on packages not yet in Gentoo:"
600 - elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
601 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
602 - elog "You can use the env variable EXTRA_ECONF variable for this."
603 - elog "For example, for SRP, you would set: "
604 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\""
605 - echo
606 -
607 - enewgroup rootd
608 - enewuser rootd -1 -1 /var/spool/rootd rootd
609 -
610 - use minimal && return
611 -
612 - if use math; then
613 - if use openmp; then
614 - if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then
615 - ewarn "You are using a g++ without OpenMP capabilities"
616 - die "Need an OpenMP capable compiler"
617 - else
618 - export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
619 - fi
620 - elif use mpi; then
621 - export USE_MPI=1 USE_PARALLEL_MINUIT2=1
622 - fi
623 - fi
624 -
625 - # check for supported compilers
626 - case $(tc-getCXX) in
627 - *g++*)
628 - if ! version_is_at_least "4.8" "$(gcc-version)"; then
629 - eerror "You are using a g++ without C++11 capabilities"
630 - die_compiler
631 - fi
632 - ;;
633 - *clang++*)
634 - # >=clang-3.4 is already in DEPEND
635 - ;;
636 - *icc*|*icpc*)
637 - if ! version_is_at_least "13" "$(has_version dev-lang/icc)"; then
638 - eerror "You are using an icc without C++11 capabilities"
639 - die_compiler
640 - fi
641 - ;;
642 - *)
643 - ewarn "You are using an unsupported compiler."
644 - ewarn "Please report any issues upstream."
645 - ;;
646 - esac
647 -}
648 -
649 -src_prepare() {
650 - epatch \
651 - "${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \
652 - "${FILESDIR}"/${PN}-5.32.00-afs.patch \
653 - "${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \
654 - "${FILESDIR}"/${PN}-5.32.00-chklib64.patch \
655 - "${FILESDIR}"/${PN}-5.34.13-unuran.patch \
656 - "${FILESDIR}"/${PN}-6.00.01-dotfont.patch \
657 - "${FILESDIR}"/${PN}-6.06.00-nobyte-compile.patch \
658 - "${FILESDIR}"/${PN}-6.00.01-llvm.patch
659 -
660 - # make sure we use system libs and headers
661 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
662 - #rm -r graf2d/asimage/src/libAfterImage || die
663 - rm -r graf3d/ftgl/{inc,src} || die
664 - rm -r graf2d/freetype/src || die
665 - rm -r graf3d/glew/{inc,src} || die
666 - rm -r core/pcre/src || die
667 - rm -r math/unuran/src/unuran-*.tar.gz || die
668 - LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \
669 - xargs -0 rm || die
670 - rm -r core/lzma/src/*.tar.gz || die
671 - rm graf3d/gl/src/gl2ps.* || die
672 - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \
673 - graf3d/gl/Module.mk || die
674 -
675 - # In Gentoo, libPythia6 is called libpythia6
676 - # iodbc is in /usr/include/iodbc
677 - # pg_config.h is checked instead of libpq-fe.h
678 - sed -i \
679 - -e 's:libPythia6:libpythia6:g' \
680 - -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
681 - -e 's:libpq-fe.h:pg_config.h:' \
682 - configure || die "adjusting configure for Gentoo failed"
683 -
684 - # prefixify the configure script
685 - sed -i \
686 - -e 's:/usr:${EPREFIX}/usr:g' \
687 - configure || die "prefixify configure failed"
688 -
689 - # CSS should use local images
690 - sed -i -e 's,http://.*/images/,,' etc/html/ROOT.css || die "html sed failed"
691 -}
692 -
693 -# NB: ROOT uses bundled LLVM, because it is patched and API-incompatible with
694 -# system LLVM.
695 -# NB: As of 6.00.0.1 cmake is not ready as it can't fully replace configure,
696 -# e.g. for afs and geocad.
697 -
698 -src_configure() {
699 - local -a myconf
700 - # Some compilers need special care
701 - case $(tc-getCXX) in
702 - *clang++*)
703 - myconf=(
704 - --with-clang
705 - --with-f77="$(tc-getFC)"
706 - )
707 - ;;
708 - *icc*|*icpc*)
709 - # For icc we need to provide architecture manually
710 - # and not to tamper with tc-get*
711 - use x86 && myconf=( linuxicc )
712 - use amd64 && myconf=( linuxx8664icc )
713 - ;;
714 - *) # gcc goes here too
715 - myconf=(
716 - --with-cc="$(tc-getCC)"
717 - --with-cxx="$(tc-getCXX)"
718 - --with-f77="$(tc-getFC)"
719 - --with-ld="$(tc-getCXX)"
720 - )
721 - ;;
722 - esac
723 -
724 - # the configure script is not the standard autotools
725 - myconf+=(
726 - --prefix="${EPREFIX}/usr"
727 - --etcdir="${EPREFIX}/etc/root"
728 - --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}"
729 - --docdir="${EPREFIX}${DOC_DIR}"
730 - --tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials"
731 - --testdir="${EPREFIX}${DOC_DIR}/examples/tests"
732 - --disable-werror
733 - --nohowto
734 - )
735 -
736 - if use minimal; then
737 - myconf+=( $(usex X --gminimal --minimal) )
738 - else
739 - myconf+=(
740 - --with-afs-shared=yes
741 - --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps"
742 - --disable-builtin-ftgl
743 - --disable-builtin-freetype
744 - --disable-builtin-glew
745 - --disable-builtin-pcre
746 - --disable-builtin-zlib
747 - --disable-builtin-lzma
748 - --enable-astiff
749 - --enable-explicitlink
750 - --enable-gdml
751 - --enable-memstat
752 - --enable-shadowpw
753 - --enable-shared
754 - --enable-soversion
755 - --enable-table
756 - --fail-on-missing
757 - --cflags='${CFLAGS}'
758 - --cxxflags='${CXXFLAGS}'
759 - $(use_enable X x11)
760 - $(use_enable X asimage)
761 - $(use_enable X xft)
762 - $(use_enable afs)
763 - $(use_enable avahi bonjour)
764 - $(use_enable fits fitsio)
765 - $(use_enable fftw fftw3)
766 - $(use_enable geocad)
767 - $(use_enable graphviz gviz)
768 - $(use_enable http)
769 - $(use_enable kerberos krb5)
770 - $(use_enable ldap)
771 - $(use_enable math genvector)
772 - $(use_enable math gsl-shared)
773 - $(use_enable math mathmore)
774 - $(use_enable math minuit2)
775 - $(use_enable math roofit)
776 - $(use_enable math tmva)
777 - $(use_enable math vc)
778 - $(use_enable math vdt)
779 - $(use_enable math unuran)
780 - $(use_enable mysql)
781 - $(usex mysql \
782 - "--with-mysql-incdir=${EPREFIX}/usr/include/mysql" "")
783 - $(use_enable odbc)
784 - $(use_enable opengl)
785 - $(use_enable oracle)
786 - $(use_enable postgres pgsql)
787 - $(usex postgres \
788 - "--with-pgsql-incdir=$(pg_config --includedir)" "")
789 - $(use_enable prefix rpath)
790 - $(use_enable pythia6)
791 - $(use_enable pythia8)
792 - $(use_enable python)
793 - $(use_enable qt4 qt)
794 - $(use_enable qt4 qtgsi)
795 - $(use_enable sqlite)
796 - $(use_enable ssl)
797 - $(use_enable xml)
798 - $(use_enable xrootd)
799 - ${EXTRA_ECONF}
800 - )
801 - fi
802 -
803 - ./configure ${myconf[@]} || die "configure failed"
804 -}
805 -
806 -src_compile() {
807 - emake \
808 - OPT="${CXXFLAGS}" \
809 - F77OPT="${FFLAGS}" \
810 - ROOTSYS="${S}" \
811 - LD_LIBRARY_PATH="${S}/lib"
812 - use emacs && ! use minimal && elisp-compile build/misc/*.el
813 -}
814 -
815 -daemon_install() {
816 - local daemons="rootd proofd"
817 - dodir /var/spool/rootd
818 - fowners rootd:rootd /var/spool/rootd
819 - dodir /var/spool/rootd/{pub,tmp}
820 - fperms 1777 /var/spool/rootd/{pub,tmp}
821 -
822 - for i in ${daemons}; do
823 - newinitd "${FILESDIR}"/${i}.initd ${i}
824 - newconfd "${FILESDIR}"/${i}.confd ${i}
825 - done
826 - if use xinetd; then
827 - insinto /etc/xinetd
828 - doins "${S}"/etc/daemons/{rootd,proofd}.xinetd
829 - fi
830 -}
831 -
832 -desktop_install() {
833 - cd "${S}"
834 - echo "Icon=root-system-bin" >> etc/root.desktop
835 - domenu etc/root.desktop
836 - doicon build/package/debian/root-system-bin.png
837 -
838 - insinto /usr/share/icons/hicolor/48x48/mimetypes
839 - doins build/package/debian/application-x-root.png
840 -
841 - insinto /usr/share/icons/hicolor/48x48/apps
842 - doicon build/package/debian/root-system-bin.xpm
843 -}
844 -
845 -cleanup_install() {
846 - # Cleanup of files either already distributed or unused on Gentoo
847 - pushd "${ED}" > /dev/null
848 - rm usr/share/root/fonts/LICENSE || die
849 - rm etc/root/proof/*.sample || die
850 - rm -r etc/root/daemons || die
851 - # these should be in PATH
852 - mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die
853 - rm ${DOC_DIR#/}/{INSTALL,LICENSE} || die
854 - use examples || rm -r ${DOC_DIR#/}/examples || die
855 -}
856 -
857 -src_install() {
858 - # Write access to /dev/random is required to run root.exe
859 - # More information at https://sft.its.cern.ch/jira/browse/ROOT-8146
860 - addwrite /dev/random
861 -
862 - DOCS=($(find README/* -maxdepth 1 -type f))
863 - default
864 - dodoc README.md
865 -
866 - echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root
867 -
868 - if ! use minimal; then
869 - use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root
870 - if use python; then
871 - echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
872 - python_optimize "${D}/usr/$(get_libdir)/root"
873 - fi
874 - use emacs && elisp-install ${PN} build/misc/*.{el,elc}
875 - if use examples; then
876 - # these should really be taken care of by the root make install
877 - insinto ${DOC_DIR}/examples/tutorials/tmva
878 - doins -r tmva/test
879 - fi
880 - fi
881 - doenvd 99root
882 -
883 - # The build system installs Emacs support unconditionally in the wrong
884 - # directory. Remove it and call elisp-install in case of USE=emacs.
885 - rm -r "${ED}"/usr/share/emacs || die
886 -
887 - daemon_install
888 - desktop_install
889 - cleanup_install
890 -
891 - # do not copress files used by ROOT's CLI (.credit, .demo, .license)
892 - docompress -x "${DOC_DIR}"/{CREDITS,LICENSE,examples/tutorials}
893 - # needed for .license command to work
894 - dosym "${ED}"usr/portage/licenses/LGPL-2.1 "${DOC_DIR}/LICENSE"
895 -}
896 -
897 -pkg_postinst() {
898 - fdo-mime_desktop_database_update
899 -}
900 -
901 -pkg_postrm() {
902 - fdo-mime_desktop_database_update
903 -}