Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/files/, sci-physics/root/
Date: Mon, 27 Feb 2012 18:11:17
Message-Id: 1330366228.3de1a19e6fd417276097e6fc2b456c5aebd54683.bircoph@gentoo
1 commit: 3de1a19e6fd417276097e6fc2b456c5aebd54683
2 Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 27 18:10:28 2012 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
5 CommitDate: Mon Feb 27 18:10:28 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3de1a19e
7
8 sci-physics/root: fix build on non-english locales
9
10 ---
11 sci-physics/root/ChangeLog | 606 ++++++++++++++++++++
12 sci-physics/root/files/olbd.confd | 9 +
13 sci-physics/root/files/olbd.initd | 26 +
14 sci-physics/root/files/proofd.confd | 12 +
15 sci-physics/root/files/proofd.initd | 26 +
16 .../root/files/root-5.26.00-make-3.82.patch | 36 ++
17 .../root/files/root-5.26.00e-libpng15.patch | 33 ++
18 .../root/files/root-5.28.00b-asneeded.patch | 20 +
19 .../root/files/root-5.28.00b-glibc212.patch | 11 +
20 .../root/files/root-5.28.00b-nobyte-compile.patch | 138 +++++
21 .../root/files/root-5.28.00b-prop-ldflags.patch | 13 +
22 sci-physics/root/files/root-5.28.00b-unuran.patch | 39 ++
23 sci-physics/root/files/root-5.32.00-afs.patch | 33 ++
24 sci-physics/root/files/root-5.32.00-cfitsio.patch | 13 +
25 .../root/files/root-5.32.00-nobyte-compile.patch | 137 +++++
26 sci-physics/root/files/rootd.confd | 8 +
27 sci-physics/root/files/rootd.initd | 28 +
28 sci-physics/root/files/xrootd.confd | 8 +
29 sci-physics/root/files/xrootd.initd | 26 +
30 sci-physics/root/metadata.xml | 29 +
31 sci-physics/root/root-5.26.00e-r1.ebuild | 316 ++++++++++
32 sci-physics/root/root-5.28.00d.ebuild | 338 +++++++++++
33 sci-physics/root/root-5.32.00-r2.ebuild | 340 +++++++++++
34 23 files changed, 2245 insertions(+), 0 deletions(-)
35
36 diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
37 new file mode 100644
38 index 0000000..8b69c5c
39 --- /dev/null
40 +++ b/sci-physics/root/ChangeLog
41 @@ -0,0 +1,606 @@
42 +# ChangeLog for sci-physics/root
43 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
44 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.92 2012/01/21 19:23:26 bicatali Exp $
45 +
46 + 27 Feb 2012; Andrew Savchenko <bircoph@×××××.com>
47 + root-5.26.00e-r1.ebuild:
48 + Fix build on non-english locales. find tool may become crazy on
49 + them, so force LANG=C LC_ALL=C for find only.
50 +
51 +*root-5.32.00-r2 (21 Jan 2012)
52 +
53 + 21 Jan 2012; Sébastien Fabbro <bicatali@g.o> +root-5.32.00-r2.ebuild,
54 + +files/root-5.32.00-afs.patch, +files/root-5.32.00-cfitsio.patch,
55 + +files/root-5.32.00-nobyte-compile.patch, files/proofd.initd,
56 + files/rootd.initd, metadata.xml:
57 + Import root ebuild from the science overlay. Main work from Andrew Savchenko,
58 + now proxy-maintainer
59 +
60 + 13 Nov 2011; Justin Lecher <jlec@g.o> -root-5.26.00-r2.ebuild,
61 + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild, metadata.xml:
62 + Cleaned old, fixed slotting for media-libs/libpng and media-libs/tiff, sort
63 + Deps, converted elog -> echo where needed, cleaned illegal epause, formated
64 + metadat.xml
65 +
66 + 18 Oct 2011; Samuli Suominen <ssuominen@g.o> root-5.26.00e-r1.ebuild,
67 + +files/root-5.26.00e-libpng15.patch:
68 + Fix building with libpng15 wrt #387553 by Daniel Savard
69 +
70 + 21 Jun 2011; Justin Lecher <jlec@g.o> root-5.26.00-r2.ebuild,
71 + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild:
72 + Add dependency on virtual/fortran
73 +
74 + 21 Jun 2011; Justin Lecher <jlec@g.o> root-5.26.00-r2.ebuild,
75 + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild:
76 + Added fortran-2.eclass support
77 +
78 + 06 Jun 2011; Jeroen Roovers <jer@g.o> root-5.26.00-r2.ebuild,
79 + root-5.26.00e-r1.ebuild:
80 + Drop HPPA keywording (bug #355963).
81 +
82 + 31 May 2011; Markus Meier <maekke@g.o> root-5.26.00e-r1.ebuild:
83 + x86 stable, bug #367321
84 +
85 + 23 May 2011; Markos Chandras <hwoarang@g.o> root-5.26.00e-r1.ebuild:
86 + Stable on amd64 wrt bug #367321
87 +
88 + 20 May 2011; Jeroen Roovers <jer@g.o> root-5.26.00e-r1.ebuild:
89 + Stable for HPPA (bug #367321).
90 +
91 +*root-5.28.00d (17 May 2011)
92 +
93 + 17 May 2011; Sébastien Fabbro <bicatali@g.o> -root-5.28.00b.ebuild,
94 + +root-5.28.00d.ebuild:
95 + Version bump
96 +
97 +*root-5.28.00b (16 Mar 2011)
98 +
99 + 16 Mar 2011; Sébastien Fabbro <bicatali@g.o> +root-5.28.00b.ebuild,
100 + +files/root-5.28.00b-asneeded.patch, +files/root-5.28.00b-glibc212.patch,
101 + +files/root-5.28.00b-nobyte-compile.patch,
102 + +files/root-5.28.00b-prop-ldflags.patch, +files/root-5.28.00b-unuran.patch,
103 + metadata.xml:
104 + Version bump. Now builds with unbundled libafterimage (bug #252918), gl2ps.
105 + Added a few flags (fits for cfitsio, llvm for cling support). More ebuild
106 + cleaning.
107 +
108 + 02 Mar 2011; Justin Lecher <jlec@g.o> root-5.26.00-r2.ebuild,
109 + root-5.26.00e-r1.ebuild:
110 + Correct Slots for gtk 3 introduction to tree
111 +
112 + 13 Feb 2011; Raúl Porcel <armin76@g.o> root-5.26.00-r2.ebuild,
113 + root-5.26.00e-r1.ebuild:
114 + Drop sparc keywords
115 +
116 + 18 Jan 2011; Kacper Kowalik <xarthisius@g.o> -root-5.26.00-r4.ebuild:
117 + Drop old.
118 +
119 + 08 Nov 2010; Kacper Kowalik <xarthisius@g.o>
120 + root-5.26.00-r2.ebuild, root-5.26.00-r4.ebuild, root-5.26.00e-r1.ebuild:
121 + media-libs/jpeg -> virtual/jpeg
122 +
123 +*root-5.26.00e-r1 (22 Oct 2010)
124 +
125 + 22 Oct 2010; Kacper Kowalik <xarthisius@g.o> -root-5.26.00e.ebuild,
126 + +root-5.26.00e-r1.ebuild, -files/root-5.26.00e-configure-paths.patch,
127 + -files/root-5.26.00e-glibc212.patch, -files/root-5.26.00e-make-3.82.patch,
128 + -files/root-5.26.00e-nobyte-compile.patch,
129 + -files/root-5.26.00e-prop-ldflags.patch:
130 + Move patches to mirrors. Fixes bug 341971.
131 +
132 +*root-5.26.00e (19 Oct 2010)
133 +
134 + 19 Oct 2010; Sébastien Fabbro <bicatali@g.o>
135 + +root-5.26.00e.ebuild, +files/root-5.26.00e-configure-paths.patch,
136 + +files/root-5.26.00e-glibc212.patch, +files/root-5.26.00e-make-3.82.patch,
137 + +files/root-5.26.00e-nobyte-compile.patch,
138 + +files/root-5.26.00e-prop-ldflags.patch:
139 + Version bump, patch for afs submitted by Andrew Savchenko.
140 +
141 + 16 Oct 2010; Kacper Kowalik <xarthisius@g.o>
142 + root-5.26.00-r4.ebuild, +files/root-5.26.00-make-3.82.patch:
143 + Fix building with gmake-3.82 wrt 333083. Thanks to Diego for reporting.
144 +
145 + 10 Jul 2010; Raúl Porcel <armin76@g.o> root-5.26.00-r2.ebuild:
146 + sparc stable wrt #318469
147 +
148 + 06 Jul 2010; Sébastien Fabbro <bicatali@g.o>
149 + root-5.26.00-r4.ebuild:
150 + Added graphviz use flag
151 +
152 + 25 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
153 + root-5.26.00-r4.ebuild:
154 + Fix usage of python_set_active_version() and python_mod_optimize(), use
155 + python_mod_cleanup() instead of python_mod_optimize() in pkg_postrm() (bug
156 + #316247).
157 +
158 + 25 Jun 2010; Sébastien Fabbro <bicatali@g.o>
159 + -root-5.22.00-r3.ebuild, -root-5.24.00-r1.ebuild, -root-5.26.00-r3.ebuild,
160 + root-5.26.00-r4.ebuild, -files/root-5.26.00-nobyte-compile.patch:
161 + Patch bump and removed useless gsl flag
162 +
163 +*root-5.26.00-r4 (25 Jun 2010)
164 +
165 + 25 Jun 2010; Justin Lecher <jlec@g.o> +root-5.26.00-r4.ebuild:
166 + Fixes for PYTHON ABIs
167 +
168 + 22 Jun 2010; Sébastien Fabbro <bicatali@g.o>
169 + root-5.26.00-r3.ebuild:
170 + Removed cint7 flag, discontinued effort, and does not compile (bug
171 + #324957)
172 +
173 + 17 Jun 2010; Patrick Lauer <patrick@g.o> root-5.22.00-r2.ebuild,
174 + root-5.22.00-r3.ebuild, root-5.24.00-r1.ebuild, root-5.26.00-r2.ebuild,
175 + root-5.26.00-r3.ebuild:
176 + Migrating away from deprecated postgres virtuals
177 +
178 +*root-5.26.00-r3 (14 Jun 2010)
179 +
180 + 14 Jun 2010; Sébastien Fabbro <bicatali@g.o>
181 + +root-5.26.00-r3.ebuild:
182 + New patch set from upstream fixing a number of bugs, more LDFLAGS
183 + propagation fixes, added gsl flag and released as-needed for more testing
184 +
185 + 01 Jun 2010; Pawel Hajdan jr <phajdan.jr@g.o>
186 + root-5.26.00-r2.ebuild:
187 + x86 stable wrt bug #318469
188 +
189 + 25 May 2010; Pacho Ramos <pacho@g.o> root-5.26.00-r2.ebuild:
190 + stable amd64, bug 318469
191 +
192 + 13 May 2010; Jeroen Roovers <jer@g.o> root-5.26.00-r2.ebuild:
193 + Stable for HPPA (bug #318469).
194 +
195 +*root-5.26.00-r2 (10 Mar 2010)
196 +
197 + 10 Mar 2010; Sébastien Fabbro <bicatali@g.o> -root-5.26.00.ebuild,
198 + -root-5.26.00-r1.ebuild, +root-5.26.00-r2.ebuild:
199 + Now do not optimize dictionary upon upstream recomendation, remove buggy
200 + gcc44 patch (fixing bug #305871), update various patches, documentation
201 + (bug #307915) and cleaned up some seds
202 +
203 +*root-5.26.00-r1 (19 Feb 2010)
204 +
205 + 19 Feb 2010; Sébastien Fabbro <bicatali@g.o>
206 + +root-5.26.00-r1.ebuild:
207 + Patch version bump. Also fixed a configure problem when checking for
208 + symbol (bug #305279)
209 +
210 +*root-5.26.00 (09 Jan 2010)
211 +
212 + 09 Jan 2010; Sébastien Fabbro <bicatali@g.o> +root-5.26.00.ebuild:
213 + Version bump. Thanks Andrew Savchenko for his input, bug #298284
214 +
215 + 24 Nov 2009; Sébastien Fabbro <bicatali@g.o>
216 + root-5.24.00-r1.ebuild:
217 + Fixed a PIC problem when configuring with AFS (bug #294038)
218 +
219 +*root-5.24.00-r1 (19 Nov 2009)
220 +
221 + 19 Nov 2009; Sébastien Fabbro <bicatali@g.o>
222 + root-5.22.00-r2.ebuild, root-5.22.00-r3.ebuild, -root-5.24.00.ebuild,
223 + +root-5.24.00-r1.ebuild:
224 + Forbid as-needed (bug #287178), fixed a syntax while installing TMVA
225 + documentation, new version bump with new set of patches. Thanks Andrew
226 + Savchenko for his contribution.
227 +
228 + 06 Oct 2009; Dominik Kapusta <ayoy@g.o> root-5.22.00-r2.ebuild,
229 + root-5.22.00-r3.ebuild, root-5.24.00.ebuild:
230 + Removed alternative dependency on Qt metapackage
231 +
232 +*root-5.24.00 (24 Sep 2009)
233 +
234 + 24 Sep 2009; Sébastien Fabbro <bicatali@g.o> +root-5.24.00.ebuild:
235 + Version bump, still masked. A bit buggy with xrootd, cint7 and afs at
236 + least on amd64. Thanks Andrew Savchenko for his work
237 +
238 +*root-5.22.00-r3 (23 Sep 2009)
239 +
240 + 23 Sep 2009; Sébastien Fabbro <bicatali@g.o> -root-3.05.04.ebuild,
241 + -root-5.16.00.ebuild, -files/root-5.16.00-fortran.patch,
242 + -files/root-5.16.00-xft.patch, -files/sparc-root-5.16.00.patch,
243 + -root-5.20.00-r3.ebuild, -files/root-5.20.00-defind.patch,
244 + -root-5.22.00-r1.ebuild, +root-5.22.00-r3.ebuild, -files/proofd.xinetd,
245 + -files/root.xinetd:
246 + Added a few patches, including: new upstream patch revision, gcc-4.4
247 + fixes, sandbox violation, passing CXXFLAGS for g4root, newer kerberos.
248 + Removed fortran eclass, relying on toolchain eclass. Closing bug #275978,
249 + bug #280197, bug #280869. Removed older versions, including ancient
250 + root-3.x which was the only one ppc stable, but just too buggy on all
251 + arches, and unsupported. Thanks to Andrew Savchenko for his contributions.
252 +
253 + 19 Jul 2009; Jeremy Olexa <darkside@g.o> root-5.22.00-r2.ebuild:
254 + amd64 stable, bug 275997
255 +
256 + 16 Jul 2009; Christian Faulhammer <fauli@g.o>
257 + root-5.22.00-r2.ebuild:
258 + stable x86, bug 275997
259 +
260 + 16 Jul 2009; Ferris McCormick <fmccor@g.o> root-5.22.00-r2.ebuild:
261 + Sparc stable, bug #275997.
262 +
263 + 25 Jun 2009; Sébastien Fabbro <bicatali@g.o> Manifest:
264 + Fixed a patch for python checking, bug #275284, thanks Adam Hunt
265 +
266 +*root-5.22.00-r2 (24 Jun 2009)
267 +
268 + 24 Jun 2009; Sébastien Fabbro <bicatali@g.o>
269 + +root-5.22.00-r2.ebuild:
270 + New patch revision (svn #29183 )from upstream including many bug fixes
271 +
272 + 23 Jun 2009; Jeroen Roovers <jer@g.o> root-5.20.00-r3.ebuild,
273 + +files/root-5.20.00-defind.patch:
274 + Fix spelling error causing compile failure (bug #275205).
275 +
276 + 05 May 2009; Christian Faulhammer <fauli@g.o>
277 + root-5.20.00-r3.ebuild:
278 + stable x86, bug 245875
279 +
280 + 05 May 2009; Christian Faulhammer <fauli@g.o>
281 + root-5.20.00-r3.ebuild, root-5.22.00-r1.ebuild:
282 + add dev-ruby/rubygems as dependency
283 +
284 + 13 Apr 2009; Sébastien Fabbro <bicatali@g.o>
285 + root-5.20.00-r3.ebuild, -root-5.22.00.ebuild, root-5.22.00-r1.ebuild:
286 + Applied a patch from Ben Bannier to fix cint7 without ROOTSYS (bug
287 + #263332) and allow cross-compiling (thanks jer, bug #265482)
288 +
289 +*root-5.22.00-r1 (06 Apr 2009)
290 +
291 + 06 Apr 2009; Sébastien Fabbro <bicatali@g.o>
292 + root-5.20.00-r3.ebuild, +root-5.22.00-r1.ebuild:
293 + Fixed hicolor icons, thanks ulm, added new upstream patch and fixed doc
294 + name for TMVA, thanks Ben Bannier
295 +
296 + 22 Mar 2009; Jeremy Olexa <darkside@g.o> root-5.20.00-r3.ebuild:
297 + amd64 stable, bug 245875
298 +
299 + 05 Mar 2009; Ferris McCormick <fmccor@g.o> root-5.20.00-r3.ebuild:
300 + Sparc stable and done with Bug #245875.
301 +
302 + 20 Jan 2009; Sébastien Fabbro <bicatali@g.o> files/proofd.initd,
303 + files/rootd.initd, files/xrootd.initd, root-5.20.00-r3.ebuild,
304 + root-5.22.00.ebuild:
305 + Fixed postgresql configuration (bug #251590), fixed server rootd and
306 + proofd files
307 +
308 + 19 Dec 2008; Sébastien Fabbro <bicatali@g.o> root-5.22.00.ebuild:
309 + Fixed ftgl dependency, closing bug #251634
310 +
311 +*root-5.22.00 (19 Dec 2008)
312 +
313 + 19 Dec 2008; Sébastien Fabbro <bicatali@g.o> +root-5.22.00.ebuild:
314 + Version bump, moved to EAPI=2
315 +
316 + 19 Dec 2008; Sébastien Fabbro <bicatali@g.o>
317 + root-5.20.00-r3.ebuild:
318 + Forgot to apply xrootd-prop-flags patch
319 +
320 +*root-5.20.00-r3 (18 Dec 2008)
321 +
322 + 18 Dec 2008; Sébastien Fabbro <bicatali@g.o>
323 + files/root-5.20.00-as-needed.patch, -files/root-5.20.00-configure.patch,
324 + +files/root-5.20.00-configure-paths.patch, -files/root-5.20.00-pic.patch,
325 + +files/root-5.20.00-prop-flags.patch,
326 + +files/root-5.20.00-xrootd-shared.patch, +files/olbd.confd,
327 + +files/olbd.initd, +files/proofd.confd, +files/proofd.initd,
328 + +files/proofd.xinetd, +files/root.xinetd, +files/rootd.confd,
329 + +files/rootd.initd, +files/xrootd.confd, +files/xrootd.initd,
330 + -root-5.20.00-r1.ebuild, -root-5.20.00-r2.ebuild, +root-5.20.00-r3.ebuild:
331 + Major revision bump with lots of changes:
332 + - added proofd, rootd, xrootd initd daemons
333 + - added xinetd support (use flag) for proofd and xrootd
334 + - added desktop files and mimetypes
335 + - fix cfortran dependency (closing bug #250432)
336 + - fix qt:4 dependency
337 + - fix for bad cfortran include file
338 + - fix for more as-needed
339 + - now propagates all flags everywhere (should close bug #250653)
340 + - removed a bunch of installed files useless on gentoo
341 + - install tmva tutorials
342 + - now installs tutorials and tests with 'examples' use flag in
343 + /usr/share/doc/root*/examples directory
344 + - do patches instead of sed's to propose upstream.
345 + Removed older revisions.
346 +
347 + 05 Dec 2008; Sébastien Fabbro <bicatali@g.o>
348 + +files/root-5.20.00-ftgl_header.patch, root-5.20.00-r2.ebuild:
349 + Fixed for older ftgl versions, bug #249885, thanks to Benjamin Bannier
350 +
351 +*root-5.20.00-r2 (04 Dec 2008)
352 +
353 + 04 Dec 2008; Sébastien Fabbro <bicatali@g.o>
354 + -files/root-5.18.00d-gcc43.patch, -files/root-5.18.00d-makefile.patch,
355 + +files/root-5.20.00-as-needed.patch, +files/root-5.20.00-ftgl.patch,
356 + -files/xrootd-20071116-checksymbol.patch,
357 + -files/xrootd-20071116-gcc43.patch, -files/root-pic.patch,
358 + -root-5.18.00d.ebuild, -root-5.20.00.ebuild, +root-5.20.00-r2.ebuild:
359 + Fixed flags propagation, fixed dependency for qt-4, fixed for forced
360 + as-needed (bug #248380), fixed for ftgl > 2.1.3_rc5 (bug #248789, thanks
361 + tao@××××.cz), removed unixODBC as a possible odbc implementation (bug
362 + #242150, thanks Benjamin Bennier), removed old version with big patches
363 + (closing bug #249009)
364 +
365 +*root-5.20.00-r1 (23 Sep 2008)
366 +
367 + 23 Sep 2008; Sébastien Fabbro <bicatali@g.o>
368 + +files/root-5.20.00-include-defines-file.patch,
369 + +files/root-5.20.00-upstream.patch, +root-5.20.00-r1.ebuild:
370 + Added a bunch of patches from Benjamin Bannier for Pythia libraries (bug
371 + #230673), ruby name changes (bug #236072), opengl include files (bug
372 + #236071), extra documentation (bug #236070). Also added a reflex flag to
373 + enable users encountering bug #233698, some emacs changes thanks to ulm.
374 + Finally, added some patches from upstream documented in
375 + http://root.cern.ch/twiki/bin/view/ROOT/PatchesV5-20-00.
376 +
377 + 29 Jul 2008; Sébastien Fabbro <bicatali@g.o> metadata.xml,
378 + root-5.18.00d.ebuild, root-5.20.00.ebuild:
379 + Added use flags in metadata.xml, removed pch use flag (buggy upstream),
380 + added libiodbc as a possible implementation for ODBC. Also fixed
381 + qt-xmlpatterns dependency.
382 +
383 + 27 Jul 2008; Carsten Lohrke <carlo@g.o> root-5.16.00.ebuild,
384 + root-5.18.00d.ebuild:
385 + QA: Get rid of deprecated qt_min_version().
386 +
387 + 26 Jul 2008; Carsten Lohrke <carlo@g.o> root-5.18.00d.ebuild,
388 + root-5.20.00.ebuild:
389 + Fix broken split Qt 4.4 dependencies, cf. bug 217161 comment 11.
390 +
391 + 18 Jul 2008; Sébastien Fabbro <bicatali@g.o> root-5.16.00.ebuild,
392 + root-5.18.00d.ebuild, root-5.20.00.ebuild:
393 + Now update PYTHONPATH, thanks Benjamin Bannier, bug #232124
394 +
395 + 13 Jul 2008; Sébastien Fabbro <bicatali@g.o> root-5.16.00.ebuild:
396 + Added libXft dep in 5.16.00 stable version, closing bug #204725
397 +
398 +*root-5.20.00 (08 Jul 2008)
399 +
400 + 08 Jul 2008; Sébastien Fabbro <bicatali@g.o>
401 + -files/root-5.16.00-afs.patch, -files/root-5.16.00-flags.patch,
402 + -files/root-5.16.00-postgres.patch, +files/root-5.20.00-configure.patch,
403 + +files/root-5.20.00-pic.patch, -files/root-xrootd-flags.patch,
404 + -root-5.16.00-r1.ebuild, -root-5.18.00.ebuild, root-5.18.00d.ebuild,
405 + +root-5.20.00.ebuild:
406 + Version bump, removed some older versions. Still buggy for pre-compiled
407 + headers (use flag pch), xrootd+afs, and could not test properly with
408 + oracle flag
409 +
410 + 16 Jun 2008; Sébastien Fabbro <bicatali@g.o>
411 + files/root-5.18.00d-gcc43.patch:
412 + Added more gcc-4.3 love to the mathcore, thanks to Derek Dolney, bug
413 + #226013
414 +
415 + 30 May 2008; Sébastien Fabbro <bicatali@g.o>
416 + files/xrootd-20071116-gcc43.patch:
417 + Removed cvs tags in xrootd patch, closing bug #224195
418 +
419 +*root-5.18.00d (29 May 2008)
420 +
421 + 29 May 2008; Sébastien Fabbro <bicatali@g.o>
422 + +files/root-5.18.00d-gcc43.patch, +files/root-5.18.00d-makefile.patch,
423 + +files/xrootd-20071116-checksymbol.patch,
424 + +files/xrootd-20071116-gcc43.patch, +root-5.18.00d.ebuild:
425 + Version bump. This version is includes patches from upstream (included in
426 + sources), some local gcc-4.3 patches and various xrootd patches. Now works
427 + with afs on amd64. Removed cint7 flag as it is still too buggy, added
428 + xrootd use flag, added a math flag triggering all math libraries
429 + (mathcore, mathmore, minuit2, roofit, unuran). Much cleanup: qt-4.4 ready,
430 + removed afterimage dependency (will be back in 5.20). This version should
431 + be targeted for stabilization.
432 +
433 + 21 May 2008; Tiziano Müller <dev-zero@g.o> root-3.05.04.ebuild,
434 + root-5.16.00.ebuild, root-5.16.00-r1.ebuild, root-5.18.00.ebuild:
435 + Changed dependency for postgresql from dev-db/postgresql to
436 + virtual/postgresql-server
437 +
438 + 04 Apr 2008; Sébastien Fabbro <bicatali@g.o> root-5.18.00.ebuild:
439 + Fixed tutorial->tutorials, closing bug #216130
440 +
441 + 04 Apr 2008; Jeroen Roovers <jer@g.o> root-5.18.00.ebuild:
442 + Marked ~hppa.
443 +
444 + 18 Jan 2008; Sébastien Fabbro <bicatali@g.o> root-5.18.00.ebuild:
445 + Check for qt4 to be built with qt3support, closing bug #206540)
446 +
447 +*root-5.18.00 (17 Jan 2008)
448 +
449 + 17 Jan 2008; Sébastien Fabbro <bicatali@g.o>
450 + +files/root-pic.patch, +files/root-xrootd-flags.patch,
451 + +root-5.18.00.ebuild:
452 + Version bump. Compiles with pic shared libs (via patches). Most earlier
453 + patches and problems have been sent upstream.
454 +
455 + 10 Jan 2008; Sébastien Fabbro <bicatali@g.o>
456 + +files/root-5.16.00-flags.patch, +files/root-5.16.00-postgres.patch,
457 + +files/root-5.16.00-xft.patch, root-5.16.00-r1.ebuild:
458 + Added various patches: one to respect flags in xrootd (needed for afs), one
459 + to properly handle -truetype without libXft (bug #204725) and last one for
460 + postgresql (bug #203015). Added pch use flag for faster compilation with g++
461 +
462 + 16 Dec 2007; Markus Dittrich <markusle@g.o>
463 + +files/root-5.16.00-afs.patch, root-5.16.00-r1.ebuild:
464 + Added patch to fix linking problem with afs libs. Re-added afs
465 + USE flag.
466 +
467 +*root-5.16.00-r1 (15 Dec 2007)
468 +
469 + 15 Dec 2007; Markus Dittrich <markusle@g.o>
470 + +root-5.16.00-r1.ebuild:
471 + New revision with patch fixing compile failure under gcc-4.2
472 + (see bug #199591). Also removed afs support until compilation
473 + problems are fixed.
474 +
475 + 09 Dec 2007; Sébastien Fabbro <bicatali@g.o> -root-4.02.00.ebuild,
476 + root-5.16.00.ebuild:
477 + Forced opengl as a dep, since it needs it anyway, added a possible fix for
478 + afs support, a die function for a g++ >= 4.2 and now use virtual/mysql
479 + instead of dev-db/mysql
480 +
481 + 23 Nov 2007; Samuli Suominen <drac@g.o> root-5.16.00.ebuild:
482 + amd64 stable wrt #196282
483 +
484 + 24 Oct 2007; Christian Faulhammer <opfer@g.o> root-5.16.00.ebuild:
485 + stable x86, bug 196282
486 +
487 + 22 Oct 2007; Sébastien Fabbro <bicatali@g.o> root-5.16.00.ebuild:
488 + removed some doc install
489 +
490 + 19 Oct 2007; Sébastien Fabbro <bicatali@g.o> root-5.16.00.ebuild:
491 + Added a pause at the end of pkg_setup.
492 +
493 + 18 Oct 2007; Ferris McCormick <fmccor@g.o> root-5.16.00.ebuild:
494 + Sparc stable - Bug #196282 --- Hooray! It's been rough, but we made it.
495 +
496 + 17 Oct 2007; Sébastien Fabbro <bicatali@g.o> root-5.16.00.ebuild:
497 + added libXpm as a dependency.
498 +
499 + 16 Sep 2007; Sébastien Fabbro <bicatali@g.o>
500 + -files/sparc-root-5.14.00c.patch, +files/sparc-root-5.16.00.patch,
501 + -files/pgsql-no-libpq-int.patch, -files/root-makefile.patch,
502 + -root-3.10.02-r1.ebuild, -root-5.14.00b.ebuild, -root-5.14.00c.ebuild,
503 + root-5.16.00.ebuild:
504 + Cleaning old versions and fixing bug #190163, thanks to fmccor
505 +
506 +*root-5.16.00 (24 Aug 2007)
507 +
508 + 24 Aug 2007; Sébastien Fabbro <bicatali@g.o>
509 + +files/root-5.16.00-fortran.patch, +root-5.16.00.ebuild:
510 + Version bump. Added cern use flag. Upstream fixed xrootd for sparc and
511 + parallell makes.
512 +
513 + 22 Jul 2007; Donnie Berkholz <dberkholz@g.o>; root-3.05.04.ebuild,
514 + root-3.10.02-r1.ebuild, root-4.02.00.ebuild:
515 + Drop virtual/x11 references.
516 +
517 +*root-5.14.00c (05 Mar 2007)
518 +
519 + 05 Mar 2007; Sébastien Fabbro <bicatali@g.o>
520 + +files/sparc-root-5.14.00c.patch, +root-5.14.00c.ebuild:
521 + Version bump. Fixed parallel compiling and sparc architecture with a
522 + patch, from bug #87305, thanks to fmmcor.
523 +
524 +*root-5.14.00b (05 Feb 2007)
525 +
526 + 05 Feb 2007; Sébastien Fabbro <bicatali@g.o> metadata.xml,
527 + +root-5.14.00b.ebuild:
528 + Major version bump, with a lot of changes in ebuild. LICENSE changed.
529 + Closing bugs #34415, #98235, #109307. Thanks for everyone in bug #109307
530 + for testing.
531 +
532 + 23 Nov 2006; Francesco Riosa <vivo@g.o> root-3.05.04.ebuild,
533 + root-3.10.02-r1.ebuild, root-4.02.00.ebuild:
534 + dev-db/mysql => virtual/mysql
535 +
536 + 02 Jul 2006; Luis Medinas <metalgod@g.o> metadata.xml:
537 + Update metadata to sci-physics.
538 +
539 + 02 Jul 2006; Luis Medinas <metalgod@g.o>
540 + +files/pgsql-no-libpq-int.patch, +files/root-makefile.patch,
541 + +metadata.xml, +root-3.05.04.ebuild, +root-3.10.02-r1.ebuild,
542 + +root-4.02.00.ebuild:
543 + Moved from sci-libs/root to sci-physics/root.
544 +
545 + 23 Jun 2006; Doug Goldstein <cardoe@g.o> root-3.10.02-r1.ebuild,
546 + root-4.02.00.ebuild:
547 + USE flag qt->qt3/qt4 change
548 +
549 + 03 Feb 2006; Patrick Kursawe <phosphan@g.o> root-3.05.04.ebuild,
550 + root-3.10.02-r1.ebuild, root-4.02.00.ebuild:
551 + Porting to modular X
552 +
553 + 28 Jul 2005; Caleb Tennis <caleb@g.o> root-3.10.02-r1.ebuild,
554 + root-4.02.00.ebuild:
555 + Fix qt dep per bug #100235
556 +
557 + 26 Jun 2005; Olivier Fisette <ribosome@g.o>
558 + -files/root-4.00.06a-gcc-3.4.patch, -root-3.03.04-r2.ebuild,
559 + -root-4.00.06a.ebuild:
560 + Removed obsolete versions.
561 +
562 + 08 Apr 2005; Michael Hanselmann <hansmi@g.o> root-4.02.00.ebuild:
563 + Like on sparc, this package doesn't work yet on ppc.
564 +
565 + 29 Mar 2005; Ferris McCormick <fmccor@g.o> root-4.02.00.ebuild:
566 + Add -sparc keyword to make explicit that as distributed, this package cannot
567 + build on sparc. Supported architectures are hardwired in a tgz file included
568 + within the package: xrootd/src/xrootd-20041124-0752.src.tgz, and in
569 + unix/src/TUnixSystem.cxx, and linux:sparc is not among them. There is no
570 + apparent for this package not to work on sparc, but as constituted, it cannot
571 + without upstream support.
572 +
573 + 12 Mar 2005; Patrick Kursawe <phosphan@g.o> root-4.02.00.ebuild:
574 + No bugs for this version for about two months -> stable
575 +
576 +*root-4.02.00 (15 Jan 2005)
577 +
578 + 15 Jan 2005; Olivier Fisette <ribosome@g.o> +root-4.02.00.ebuild:
579 + New version. GCC 3.4 patch no longer required.
580 +
581 + 29 Dec 2004; Ciaran McCreesh <ciaranm@g.o> :
582 + Change encoding to UTF-8 for GLEP 31 compliance
583 +
584 +*root-3.10.02-r1 (28 Dec 2004)
585 +
586 + 28 Dec 2004; Olivier Fisette <ribosome@g.o> +metadata.xml,
587 + +files/pgsql-no-libpq-int.patch, +files/root-4.00.06a-gcc-3.4.patch,
588 + +files/root-makefile.patch, +root-3.03.04-r2.ebuild, +root-3.05.04.ebuild,
589 + +root-3.10.02-r1.ebuild, +root-4.00.06a.ebuild:
590 + Moved from dev-libs/root to sci-libs/root.
591 +
592 +*root-4.00.06a (02 Jul 2004)
593 +
594 + 02 Jul 2004; Patrick Kursawe <phosphan@g.o> metadata.xml,
595 + root-4.00.06a.ebuild, files/root-4.00.06a-gcc-3.4.patch:
596 + Version bump, see bug #55719 - gcc 3.4 patch extracted from "root" CVS.
597 +
598 +*root-3.10.02-r1 (15 Jun 2004)
599 +
600 + 15 Jun 2004; Patrick Kursawe <phosphan@g.o> root-3.10.02-r1.ebuild,
601 + root-3.10.02.ebuild:
602 + Shared libs were not found, see bug #53095
603 +
604 + 07 Jun 2004; Patrick Kursawe <phosphan@g.o> root-3.10.02.ebuild:
605 + According to user report (forums/slackerman) it works for amd64.
606 +
607 +*root-3.10.02 (20 Apr 2004)
608 +
609 + 20 Apr 2004; Patrick Kursawe <phosphan@g.o> root-3.10.02.ebuild:
610 + Version bump, see bug #34412
611 +
612 + 06 Oct 2003; Heinrich Wendel <lanius@g.o> root-3.05.04.ebuild:
613 + stable bump #29947
614 +
615 + 12 Jun 2003; Seemant Kulleen <seemant@g.o> root-3.03.04-r2.ebuild:
616 + xfree provides xpm
617 +
618 +*root-3.05.04 (25 Apr 2003)
619 +
620 + 25 Feb 2003; Luca Barbato <kain@××××.org> root-3.05.04.ebuild :
621 + New version, as suggested by Dmitry Kustov <dimok77@×××××××.com>
622 +
623 +*root-3.03.04-r2 (22 Feb 2003)
624 +
625 + 22 Feb 2003; Bryon Roche <kain@××××.org> root-3.03.04-r1.ebuild root-3.03.04-r2.ebuild files/digest-root-3.03.04-r2 files/pgsql-no-libpq-int.patch files/root-makefile.patch :
626 + Fixed header include issues with the PostgreSQL api, as well as configuration/compilation issues.
627 +
628 + 06 Dec 2002; Rodney Rees <manson@g.o> : changed sparc ~sparc keywords
629 +
630 +*root-3.03.04-r1 (11 Apr 2002)
631 +
632 + 24 Oct 2002; J.Alberto Suárez López <bass@g.o> root-3.03.04-r1.ebuild
633 + Typo error in the ebuild appear 'econ' not 'econf'.
634 +
635 + 11 Apr 2002; G.Bevin <gbevin@g.o> root-3.03.04-r1.ebuild
636 + files/digest-root-3.03.04-r1 :
637 +
638 + Added env entry for the libs.
639 + Removed rpath switch from configure since it created a segfaulting root
640 + executable.
641 +
642 +*root-3.03.04 (11 Apr 2002)
643 +
644 + 11 Apr 2002; G.Bevin <gbevin@g.o> root-3.03.04.ebuild
645 + files/digest-root-3.03.04 :
646 +
647 + Initial release
648
649 diff --git a/sci-physics/root/files/olbd.confd b/sci-physics/root/files/olbd.confd
650 new file mode 100644
651 index 0000000..848f4d7
652 --- /dev/null
653 +++ b/sci-physics/root/files/olbd.confd
654 @@ -0,0 +1,9 @@
655 +# conf.d file for olbd daemon
656 +
657 +# User to run as (default is `xrootd')
658 +OLBD_USER="root"
659 +
660 +#
661 +# Please refer to the olbd(1) man(1) page for more
662 +# information on command line parameters.
663 +OLBD_OPTS=""
664
665 diff --git a/sci-physics/root/files/olbd.initd b/sci-physics/root/files/olbd.initd
666 new file mode 100644
667 index 0000000..1793300
668 --- /dev/null
669 +++ b/sci-physics/root/files/olbd.initd
670 @@ -0,0 +1,26 @@
671 +#!/sbin/runscript
672 +# Copyright 1999-2012 Gentoo Foundation
673 +# Distributed under the terms of the GNU General Public License v2
674 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/olbd.initd,v 1.1 2008/12/18 18:10:18 bicatali Exp $
675 +
676 +depend() {
677 + need net
678 + use dns logger
679 + provide root-file-server
680 +}
681 +
682 +start() {
683 + ebegin "Starting ROOT open load balancer server"
684 + start-stop-daemon --start --quiet --user=${OLBD_USER} \
685 + --make-pidfile --pidfile=/var/run/olbd.pid \
686 + --exec /usr/bin/olbd --background -- ${OLBD_OPTS}
687 + eend $?
688 +}
689 +
690 +stop() {
691 + ebegin "Stopping ROOT open load balancer server"
692 + start-stop-daemon --stop --quiet \
693 + --pidfile=/var/run/olbd.pid \
694 + --exec /usr/bin/olbd
695 + eend $?
696 +}
697
698 diff --git a/sci-physics/root/files/proofd.confd b/sci-physics/root/files/proofd.confd
699 new file mode 100644
700 index 0000000..81720a7
701 --- /dev/null
702 +++ b/sci-physics/root/files/proofd.confd
703 @@ -0,0 +1,12 @@
704 +# conf.d file for proof daemon
705 +#
706 +# Please refer to the proofd(1) man(1) page for more information on
707 +# command line parameters.
708 +#
709 +PROOFD_OPTS=
710 +
711 +# Specify your base of your PROOF directory here. If left blank, it
712 +# will use the system default (e.g., /usr/share/root/proof).
713 +# Note, however, that ROOT recommends that this directory is shared (via
714 +# NFS or similar) among all the nodes of the cluster.
715 +PROOF_DIR=
716
717 diff --git a/sci-physics/root/files/proofd.initd b/sci-physics/root/files/proofd.initd
718 new file mode 100644
719 index 0000000..7fc275a
720 --- /dev/null
721 +++ b/sci-physics/root/files/proofd.initd
722 @@ -0,0 +1,26 @@
723 +#!/sbin/runscript
724 +# Copyright 1999-2012 Gentoo Foundation
725 +# Distributed under the terms of the GNU General Public License v2
726 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/proofd.initd,v 1.3 2012/01/21 19:23:26 bicatali Exp $
727 +
728 +depend() {
729 + need root-file-server
730 + use logger
731 +}
732 +
733 +start() {
734 + ebegin "Starting parallel ROOT facility server"
735 + start-stop-daemon --start --quiet \
736 + --pidfile /var/run/proofd.pid \
737 + --exec /usr/bin/proofd -- ${PROOFD_OPTS} ${PROOF_DIR}
738 + pidof /usr/bin/proofd > /var/run/proofd.pid
739 + eend $?
740 +}
741 +
742 +stop() {
743 + ebegin "Stopping parallel ROOT facility server"
744 + start-stop-daemon --stop --quiet \
745 + --pidfile /var/run/proofd.pid \
746 + --exec /usr/bin/proofd
747 + eend $?
748 +}
749
750 diff --git a/sci-physics/root/files/root-5.26.00-make-3.82.patch b/sci-physics/root/files/root-5.26.00-make-3.82.patch
751 new file mode 100644
752 index 0000000..dc6d8a0
753 --- /dev/null
754 +++ b/sci-physics/root/files/root-5.26.00-make-3.82.patch
755 @@ -0,0 +1,36 @@
756 +http://root.cern.ch/viewcvs?view=rev&revision=35096
757 +https://savannah.cern.ch/bugs/?func=detailitem&item_id=72166
758 +
759 +--- root-5.26.00d/Makefile
760 ++++ root-5.26.00d/Makefile
761 +@@ -544,6 +544,30 @@
762 + .PRECIOUS: include/%.h
763 +
764 + # special rules (need to be defined before generic ones)
765 ++cint/cint/lib/dll_stl/G__%.o: cint/cint/lib/dll_stl/G__%.cxx
766 ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \
767 ++ $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \
768 ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $<
769 ++ $(CXX) $(NOOPT) $(CXXFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $<
770 ++
771 ++cint/cint/lib/dll_stl/G__c_%.o: cint/cint/lib/dll_stl/G__c_%.c
772 ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \
773 ++ $(CFLAGS) $(DICTFLAGS) -I$(CINTDIR)/lib/prec_stl \
774 ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $<
775 ++ $(CC) $(NOOPT) $(CFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $<
776 ++
777 ++cint/cint/lib/G__%.o: cint/cint/lib/G__%.cxx
778 ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \
779 ++ $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \
780 ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $<
781 ++ $(CXX) $(NOOPT) $(CXXFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $<
782 ++
783 ++cint/cint/lib/G__c_%.o: cint/cint/lib/G__c_%.c
784 ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \
785 ++ $(CFLAGS) $(DICTFLAGS) -I$(CINTDIR)/lib/prec_stl \
786 ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $<
787 ++ $(CC) $(NOOPT) $(CFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $<
788 ++
789 + G__%.o: G__%.cxx
790 + $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \
791 + $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \
792
793 diff --git a/sci-physics/root/files/root-5.26.00e-libpng15.patch b/sci-physics/root/files/root-5.26.00e-libpng15.patch
794 new file mode 100644
795 index 0000000..91ed9c4
796 --- /dev/null
797 +++ b/sci-physics/root/files/root-5.26.00e-libpng15.patch
798 @@ -0,0 +1,33 @@
799 +This patch is a copy from media-libs/libafterimage.
800 +
801 +--- graf2d/asimage/src/libAfterImage/export.c
802 ++++ graf2d/asimage/src/libAfterImage/export.c
803 +@@ -496,7 +496,7 @@
804 + png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
805 + if ( png_ptr != NULL )
806 + if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
807 +- if( setjmp(png_ptr->jmpbuf) )
808 ++ if( setjmp(png_jmpbuf(png_ptr)) )
809 + {
810 + png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
811 + info_ptr = NULL ;
812 +--- graf2d/asimage/src/libAfterImage/import.c
813 ++++ graf2d/asimage/src/libAfterImage/import.c
814 +@@ -1251,7 +1251,7 @@
815 + * the normal method of doing things with libpng). REQUIRED unless you
816 + * set up your own error handlers in the png_create_read_struct() earlier.
817 + */
818 +- if ( !setjmp (png_ptr->jmpbuf))
819 ++ if ( !setjmp (png_jmpbuf(png_ptr)))
820 + {
821 + ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
822 +
823 +@@ -1468,7 +1468,7 @@
824 +
825 + static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
826 + {
827 +- ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
828 ++ ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr);
829 + memcpy(data, buf->buffer, length);
830 + buf->buffer += length;
831 + }
832
833 diff --git a/sci-physics/root/files/root-5.28.00b-asneeded.patch b/sci-physics/root/files/root-5.28.00b-asneeded.patch
834 new file mode 100644
835 index 0000000..b845247
836 --- /dev/null
837 +++ b/sci-physics/root/files/root-5.28.00b-asneeded.patch
838 @@ -0,0 +1,20 @@
839 +--- root.orig/configure 2010-12-20 07:17:54.000000000 +0000
840 ++++ root/configure 2010-12-20 07:16:05.000000000 +0000
841 +@@ -709,7 +709,7 @@
842 + cat <<EOF > conftest.mk
843 + include ${ac_srcdir}/config/Makefile.${arch}
844 + conftest: conftest.c
845 +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@
846 ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@
847 +
848 + conftest.c:
849 + echo "int main() { return 0; }" > \$@
850 +@@ -723,7 +723,7 @@
851 + cat <<EOF > conftest.mk
852 + include ${ac_srcdir}/config/Makefile.${arch}
853 + conftest:conftest.c
854 +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@
855 ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@
856 +
857 + conftest.c:
858 + echo "extern int $linksymbol (); " > \$@
859
860 diff --git a/sci-physics/root/files/root-5.28.00b-glibc212.patch b/sci-physics/root/files/root-5.28.00b-glibc212.patch
861 new file mode 100644
862 index 0000000..a365431
863 --- /dev/null
864 +++ b/sci-physics/root/files/root-5.28.00b-glibc212.patch
865 @@ -0,0 +1,11 @@
866 +--- root.orig/net/auth/src/TAFS.cxx 2010-09-14 03:22:22.647915854 +0400
867 ++++ root/net/auth/src/TAFS.cxx 2010-09-14 03:22:39.034599899 +0400
868 +@@ -11,6 +11,7 @@
869 +
870 + #ifndef WIN32
871 + # include <unistd.h>
872 ++# include <sys/stat.h>
873 + #else
874 + # define ssize_t int
875 + # include <io.h>
876 +
877
878 diff --git a/sci-physics/root/files/root-5.28.00b-nobyte-compile.patch b/sci-physics/root/files/root-5.28.00b-nobyte-compile.patch
879 new file mode 100644
880 index 0000000..7029bf1
881 --- /dev/null
882 +++ b/sci-physics/root/files/root-5.28.00b-nobyte-compile.patch
883 @@ -0,0 +1,138 @@
884 +diff -Naur root.orig/Makefile root/Makefile
885 +--- root.orig/Makefile 2010-12-17 22:48:40.577775091 +0300
886 ++++ root/Makefile 2010-12-17 22:49:27.902497903 +0300
887 +@@ -1148,10 +1148,7 @@
888 + if test "x$(RFLX_GRFLXPY)" != "x"; then \
889 + rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \
890 + fi; \
891 +- if test "x$(RFLX_GRFLXPYC)" != "x"; then \
892 +- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \
893 +- fi; \
894 +- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \
895 ++ if test "x$(RFLX_GRFLXPY)" != "x"; then \
896 + dir=$(RFLX_GRFLXDD:lib/=); \
897 + while test "x$${dir}" != "x" && \
898 + test -d $(DESTDIR)$(LIBDIR)/$${dir} && \
899 +diff -Naur root.orig/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
900 +--- root.orig/bindings/pyroot/Module.mk 2010-12-17 22:48:39.941179413 +0300
901 ++++ root/bindings/pyroot/Module.mk 2010-12-17 22:49:27.899164943 +0300
902 +@@ -48,8 +48,6 @@
903 + ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
904 + $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
905 + endif
906 +-ROOTPYC := $(ROOTPY:.py=.pyc)
907 +-ROOTPYO := $(ROOTPY:.py=.pyo)
908 +
909 + # used in the main Makefile
910 + ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
911 +@@ -68,10 +66,8 @@
912 + include/%.h: $(PYROOTDIRI)/%.h
913 + cp $< $@
914 +
915 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
916 +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
917 +
918 +-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
919 ++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
920 + $(ROOTLIBSDEP) $(PYTHONLIBDEP)
921 + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
922 + "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
923 +@@ -113,7 +109,7 @@
924 +
925 + distclean-$(MODNAME): clean-$(MODNAME)
926 + @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
927 +- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
928 ++ $(ROOTPY) $(PYROOTMAP) \
929 + $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
930 +
931 + distclean:: distclean-$(MODNAME)
932 +diff -Naur root.orig/build/package/debian/rules root/build/package/debian/rules
933 +--- root.orig/build/package/debian/rules 2010-12-17 22:48:40.197817461 +0300
934 ++++ root/build/package/debian/rules 2010-12-17 22:49:27.902497903 +0300
935 +@@ -623,10 +623,6 @@
936 + -X$(SYSCONFDIR)/root/system.rootauthrc \
937 + -X$(SYSCONFDIR)/root/system.rootdaemonrc \
938 + -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \
939 +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \
940 +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \
941 +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \
942 +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo
943 + # $(foreach i, \
944 + # $(wildcard $(DTMP)/$(PREFIX)/lib/root/lib*.so.$(SOVERS)), \
945 + # -X$(i:$(DTMP)/%=%) )
946 +diff -Naur root.orig/cint/cintex/Module.mk root/cint/cintex/Module.mk
947 +--- root.orig/cint/cintex/Module.mk 2010-12-17 22:48:40.057833071 +0300
948 ++++ root/cint/cintex/Module.mk 2010-12-17 22:49:27.902497903 +0300
949 +@@ -31,10 +31,6 @@
950 + CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS))
951 + $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@
952 + endif
953 +-ifneq ($(BUILDPYTHON),no)
954 +-CINTEXPYC := $(CINTEXPY:.py=.pyc)
955 +-CINTEXPYO := $(CINTEXPY:.py=.pyo)
956 +-endif
957 +
958 + # used in the main Makefile
959 + ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH))
960 +@@ -86,8 +82,6 @@
961 + fi)
962 + cp $< $@
963 +
964 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
965 +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
966 +
967 + $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \
968 + $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP)
969 +diff -Naur root.orig/cint/reflex/Module.mk root/cint/reflex/Module.mk
970 +--- root.orig/cint/reflex/Module.mk 2010-12-17 22:48:40.037835301 +0300
971 ++++ root/cint/reflex/Module.mk 2010-12-17 22:51:36.871451359 +0300
972 +@@ -48,9 +48,6 @@
973 + RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py)
974 + RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS))
975 + RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY)
976 +-ifneq ($(BUILDPYTHON),no)
977 +-RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY))
978 +-endif
979 +
980 + RFLX_LIBDIR = $(LIBDIR)
981 +
982 +@@ -92,7 +89,7 @@
983 +
984 + ALLEXECS += $(RFLX_GENMAPX)
985 +
986 +-POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
987 ++POSTBIN += $(RFLX_GRFLXPY)
988 +
989 + ##### local rules #####
990 + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \
991 +@@ -122,8 +119,6 @@
992 + mkdir -p lib/python/genreflex; fi )
993 + cp $< $@
994 +
995 +-$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py
996 +- @python -c 'import py_compile; py_compile.compile( "$<" )'
997 +
998 + $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap
999 +
1000 +@@ -149,7 +144,7 @@
1001 + $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \
1002 + -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL)
1003 +
1004 +-all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
1005 ++all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY)
1006 +
1007 + clean-genreflex:
1008 + @rm -rf lib/python/genreflex
1009 +diff -Naur root.orig/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt
1010 +--- root.orig/cint/reflex/python/CMakeLists.txt 2010-12-17 22:48:40.037835301 +0300
1011 ++++ root/cint/reflex/python/CMakeLists.txt 2010-12-17 22:49:27.902497903 +0300
1012 +@@ -15,7 +15,7 @@
1013 + ##################### sources ####################
1014 +
1015 + FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py)
1016 +-SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE)
1017 ++SET(GENREFLEX_SCRIPT PARENT_SCOPE)
1018 +
1019 + ##################### gccxmlpath ####################
1020 +
1021 +
1022
1023 diff --git a/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch b/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch
1024 new file mode 100644
1025 index 0000000..7324319
1026 --- /dev/null
1027 +++ b/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch
1028 @@ -0,0 +1,13 @@
1029 +diff -Naur root.orig/config/Makefile.in root/config/Makefile.in
1030 +--- root.orig/config/Makefile.in 2010-12-14 17:20:26.000000000 +0300
1031 ++++ root/config/Makefile.in 2010-12-17 22:33:34.902161458 +0300
1032 +@@ -27,7 +27,7 @@
1033 +
1034 + EXTRA_CFLAGS := -Iinclude @cflags@
1035 + EXTRA_CXXFLAGS := -Iinclude @cflags@
1036 +-EXTRA_LDFLAGS := @ldflags@
1037 ++EXTRA_LDFLAGS := @ldflags@ $(LDFLAGS)
1038 + WINRTDEBUG := @winrtdebug@
1039 +
1040 + GLBPATCHFLAGS := @glbpatchcflags@
1041 +
1042
1043 diff --git a/sci-physics/root/files/root-5.28.00b-unuran.patch b/sci-physics/root/files/root-5.28.00b-unuran.patch
1044 new file mode 100644
1045 index 0000000..76422da
1046 --- /dev/null
1047 +++ b/sci-physics/root/files/root-5.28.00b-unuran.patch
1048 @@ -0,0 +1,39 @@
1049 +diff -ur root-trunk.orig/math/unuran/Module.mk root-trunk/math/unuran/Module.mk
1050 +--- root.orig/math/unuran/Module.mk 2010-11-25 20:41:32.000000000 +0100
1051 ++++ root/math/unuran/Module.mk 2010-11-25 20:51:47.190704977 +0100
1052 +@@ -20,7 +20,7 @@
1053 + UNURANETAG := $(call stripsrc,$(UNURANDIRS)/headers.d)
1054 + UNRCFG := $(call stripsrc,$(UNURANDIRS)/$(UNRVERS)/config.h)
1055 +
1056 +-UNRTARCONTENT:=$(subst $(UNRVERS),$(UNRDIRS),$(shell mkdir -p $(UNRDIR); cd $(UNRDIR); gunzip -c $(UNRSRCS) | tar tf -))
1057 ++UNRTARCONTENT:=
1058 + UNRS := $(filter %.c, \
1059 + $(filter $(UNRDIRS)/src/utils/%,$(UNRTARCONTENT)) \
1060 + $(filter $(UNRDIRS)/src/methods/%,$(UNRTARCONTENT)) \
1061 +@@ -69,10 +69,9 @@
1062 + ##### local rules #####
1063 + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
1064 +
1065 +-include/%.h: $(UNURANDIRI)/%.h $(UNURANETAG)
1066 ++include/%.h: $(UNURANDIRI)/%.h
1067 + cp $< $@
1068 +
1069 +-$(UNURANDEP): $(UNRCFG)
1070 + $(UNRS): $(UNURANETAG)
1071 +
1072 + $(UNURANETAG): $(UNRSRCS)
1073 +@@ -125,12 +124,12 @@
1074 + GNUMAKE=$(MAKE) ./configure CC="$$ACC" \
1075 + CFLAGS="$$ACFLAGS");
1076 +
1077 +-$(UNURANLIB): $(UNRCFG) $(UNRO) $(UNURANO) $(UNURANDO) $(ORDER_) \
1078 ++$(UNURANLIB): $(UNURANO) $(UNURANDO) $(ORDER_) \
1079 + $(MAINLIBS) $(UNURANLIBDEP)
1080 + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
1081 + "$(SOFLAGS)" libUnuran.$(SOEXT) $@ \
1082 + "$(UNURANO) $(UNURANDO)" \
1083 +- "$(UNURANLIBEXTRA) $(UNRO)"
1084 ++ "$(UNURANLIBEXTRA) -lunuran"
1085 +
1086 + $(UNURANDS): $(UNRINIT) $(UNURANDH1) $(UNURANL) $(ROOTCINTTMPDEP)
1087 + $(MAKEDIR)
1088
1089 diff --git a/sci-physics/root/files/root-5.32.00-afs.patch b/sci-physics/root/files/root-5.32.00-afs.patch
1090 new file mode 100644
1091 index 0000000..2bf3179
1092 --- /dev/null
1093 +++ b/sci-physics/root/files/root-5.32.00-afs.patch
1094 @@ -0,0 +1,33 @@
1095 +--- root/net/auth/src/TAFS.cxx.orig 2011-12-04 00:56:29.405007770 +0400
1096 ++++ root/net/auth/src/TAFS.cxx 2011-12-04 00:56:35.534709259 +0400
1097 +@@ -138,7 +138,7 @@
1098 + } else {
1099 + if (isatty(0) != 0 && isatty(1) != 0) {
1100 + Gl_config("noecho", 1);
1101 +- pw = Getline((char *) prompt.Data());
1102 ++ pw = const_cast<char *>( Getline((char *) prompt.Data()) );
1103 + Gl_config("noecho", 0);
1104 + } else {
1105 + Warning("TAFS", "not tty: cannot prompt for passwd: failure");
1106 +--- root/core/clib/src/strlcat.c.orig 2011-12-04 01:49:26.495179487 +0400
1107 ++++ root/core/clib/src/strlcat.c 2011-12-04 01:50:41.407524763 +0400
1108 +@@ -38,7 +38,7 @@
1109 + * Returns strlen(src) + MIN(siz, strlen(initial dst)).
1110 + * If retval >= siz, truncation occurred.
1111 + */
1112 +-size_t
1113 ++size_t __attribute__((weak))
1114 + strlcat(char *dst, const char *src, size_t siz)
1115 + {
1116 + register char *d = dst;
1117 +--- root/core/clib/src/strlcpy.c.orig 2011-12-04 01:49:34.329797251 +0400
1118 ++++ root/core/clib/src/strlcpy.c 2011-12-04 01:50:49.051151843 +0400
1119 +@@ -36,7 +36,7 @@
1120 + * will be copied. Always NUL terminates (unless siz == 0).
1121 + * Returns strlen(src); if retval >= siz, truncation occurred.
1122 + */
1123 +-size_t
1124 ++size_t __attribute__((weak))
1125 + strlcpy(char *dst, const char *src, size_t siz)
1126 + {
1127 + register char *d = dst;
1128
1129 diff --git a/sci-physics/root/files/root-5.32.00-cfitsio.patch b/sci-physics/root/files/root-5.32.00-cfitsio.patch
1130 new file mode 100644
1131 index 0000000..853c3f3
1132 --- /dev/null
1133 +++ b/sci-physics/root/files/root-5.32.00-cfitsio.patch
1134 @@ -0,0 +1,13 @@
1135 +--- configure.orig 2012-01-19 23:44:44.127607638 +0100
1136 ++++ configure 2012-01-20 00:19:20.420652913 +0100
1137 +@@ -3435,9 +3435,7 @@
1138 + cfitsioinc=$found_hdr
1139 + cfitsioincdir=$found_dir
1140 +
1141 +- # At this time, libcfitsio.a should always be prefered over .so,
1142 +- # to avoid forcing users to install cfitsio.
1143 +- check_library "libcfitsio cfitsio" "no" "$cfitsiolibdir" \
1144 ++ check_library "libcfitsio cfitsio" "yes" "$cfitsiolibdir" \
1145 + $CFITSIO ${CFITSIO:+$CFITSIO/lib} ${CFITSIO:+$CFITSIO/.libs} \
1146 + ${finkdir:+$finkdir/lib} \
1147 + /usr/local/lib /usr/lib /opt/cfitsio/lib
1148
1149 diff --git a/sci-physics/root/files/root-5.32.00-nobyte-compile.patch b/sci-physics/root/files/root-5.32.00-nobyte-compile.patch
1150 new file mode 100644
1151 index 0000000..179e579
1152 --- /dev/null
1153 +++ b/sci-physics/root/files/root-5.32.00-nobyte-compile.patch
1154 @@ -0,0 +1,137 @@
1155 +diff -Naur root.as-needed/Makefile root/Makefile
1156 +--- root.as-needed/Makefile 2011-07-10 10:42:49.758191296 +0400
1157 ++++ root/Makefile 2011-07-10 10:43:21.493339703 +0400
1158 +@@ -1167,10 +1167,7 @@
1159 + if test "x$(RFLX_GRFLXPY)" != "x"; then \
1160 + rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \
1161 + fi; \
1162 +- if test "x$(RFLX_GRFLXPYC)" != "x"; then \
1163 +- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \
1164 +- fi; \
1165 +- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \
1166 ++ if test "x$(RFLX_GRFLXPY)" != "x"; then \
1167 + dir=$(RFLX_GRFLXDD:lib/=); \
1168 + while test "x$${dir}" != "x" && \
1169 + test -d $(DESTDIR)$(LIBDIR)/$${dir} && \
1170 +diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
1171 +--- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400
1172 ++++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400
1173 +@@ -48,8 +48,6 @@
1174 + ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
1175 + $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
1176 + endif
1177 +-ROOTPYC := $(ROOTPY:.py=.pyc)
1178 +-ROOTPYO := $(ROOTPY:.py=.pyo)
1179 +
1180 + # used in the main Makefile
1181 + ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
1182 +@@ -68,10 +66,8 @@
1183 + include/%.h: $(PYROOTDIRI)/%.h
1184 + cp $< $@
1185 +
1186 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
1187 +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
1188 +
1189 +-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
1190 ++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
1191 + $(ROOTLIBSDEP) $(PYTHONLIBDEP)
1192 + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
1193 + "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
1194 +@@ -113,7 +109,7 @@
1195 +
1196 + distclean-$(MODNAME): clean-$(MODNAME)
1197 + @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
1198 +- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
1199 ++ $(ROOTPY) $(PYROOTMAP) \
1200 + $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
1201 +
1202 + distclean:: distclean-$(MODNAME)
1203 +diff -Naur root.as-needed/build/package/debian/rules root/build/package/debian/rules
1204 +--- root.as-needed/build/package/debian/rules 2011-07-10 10:42:49.241549346 +0400
1205 ++++ root/build/package/debian/rules 2011-07-10 10:48:06.989670589 +0400
1206 +@@ -691,10 +691,6 @@
1207 + -X$(SYSCONFDIR)/root/system.rootauthrc \
1208 + -X$(SYSCONFDIR)/root/system.rootdaemonrc \
1209 + -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \
1210 +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \
1211 +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \
1212 +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \
1213 +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo \
1214 + -X$(PREFIX)/lib/root/$(SOVERS)/cint7 \
1215 + -X$(PREFIX)/include/root/Minuit2
1216 + # $(foreach i, \
1217 +diff -Naur root.as-needed/cint/cintex/Module.mk root/cint/cintex/Module.mk
1218 +--- root.as-needed/cint/cintex/Module.mk 2011-07-10 10:42:49.104889217 +0400
1219 ++++ root/cint/cintex/Module.mk 2011-07-10 10:43:21.496672876 +0400
1220 +@@ -31,10 +31,6 @@
1221 + CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS))
1222 + $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@
1223 + endif
1224 +-ifneq ($(BUILDPYTHON),no)
1225 +-CINTEXPYC := $(CINTEXPY:.py=.pyc)
1226 +-CINTEXPYO := $(CINTEXPY:.py=.pyo)
1227 +-endif
1228 +
1229 + # used in the main Makefile
1230 + ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH))
1231 +@@ -86,8 +82,6 @@
1232 + fi)
1233 + cp $< $@
1234 +
1235 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
1236 +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
1237 +
1238 + $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \
1239 + $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP)
1240 +diff -Naur root.as-needed/cint/reflex/Module.mk root/cint/reflex/Module.mk
1241 +--- root.as-needed/cint/reflex/Module.mk 2011-07-10 10:42:49.074890651 +0400
1242 ++++ root/cint/reflex/Module.mk 2011-07-10 10:43:21.496672876 +0400
1243 +@@ -48,9 +48,6 @@
1244 + RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py)
1245 + RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS))
1246 + RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY)
1247 +-ifneq ($(BUILDPYTHON),no)
1248 +-RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY))
1249 +-endif
1250 +
1251 + RFLX_LIBDIR = $(LIBDIR)
1252 +
1253 +@@ -92,7 +89,7 @@
1254 +
1255 + ALLEXECS += $(RFLX_GENMAPX)
1256 +
1257 +-POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
1258 ++POSTBIN += $(RFLX_GRFLXPY)
1259 +
1260 + ##### local rules #####
1261 + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \
1262 +@@ -122,8 +119,6 @@
1263 + mkdir -p lib/python/genreflex; fi )
1264 + cp $< $@
1265 +
1266 +-$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py
1267 +- @python -c 'import py_compile; py_compile.compile( "$<" )'
1268 +
1269 + $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap
1270 +
1271 +@@ -149,7 +144,7 @@
1272 + $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \
1273 + -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL)
1274 +
1275 +-all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
1276 ++all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY)
1277 +
1278 + clean-genreflex:
1279 + @rm -rf lib/python/genreflex
1280 +diff -Naur root.as-needed/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt
1281 +--- root.as-needed/cint/reflex/python/CMakeLists.txt 2011-07-10 10:42:49.074890651 +0400
1282 ++++ root/cint/reflex/python/CMakeLists.txt 2011-07-10 10:43:21.496672876 +0400
1283 +@@ -15,7 +15,7 @@
1284 + ##################### sources ####################
1285 +
1286 + FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py)
1287 +-SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE)
1288 ++SET(GENREFLEX_SCRIPT PARENT_SCOPE)
1289 +
1290 + ##################### gccxmlpath ####################
1291 +
1292
1293 diff --git a/sci-physics/root/files/rootd.confd b/sci-physics/root/files/rootd.confd
1294 new file mode 100644
1295 index 0000000..7516b8c
1296 --- /dev/null
1297 +++ b/sci-physics/root/files/rootd.confd
1298 @@ -0,0 +1,8 @@
1299 +# conf.d file for root daemon
1300 +
1301 +# User to run as (default is `rootd')
1302 +ROOTD_USER="rootd"
1303 +
1304 +# Please refer to the rootd(1) man(1) page for more information on
1305 +# command line parameters.
1306 +ROOTD_OPTS=""
1307
1308 diff --git a/sci-physics/root/files/rootd.initd b/sci-physics/root/files/rootd.initd
1309 new file mode 100644
1310 index 0000000..14c0d8e
1311 --- /dev/null
1312 +++ b/sci-physics/root/files/rootd.initd
1313 @@ -0,0 +1,28 @@
1314 +#!/sbin/runscript
1315 +# Copyright 1999-2012 Gentoo Foundation
1316 +# Distributed under the terms of the GNU General Public License v2
1317 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/rootd.initd,v 1.3 2012/01/21 19:23:26 bicatali Exp $
1318 +
1319 +depend() {
1320 + need net
1321 + use logger
1322 + provide root-file-server
1323 +}
1324 +
1325 +start() {
1326 + ebegin "Starting ROOT file server"
1327 + pid=$(start-stop-daemon --start --quiet --user ${ROOTD_USER} \
1328 + --pidfile /var/run/rootd.pid \
1329 + --exec /usr/bin/rootd -- ${ROOTD_OPTS})
1330 + retval=$?
1331 + echo ${ROOTD_PID} > /var/run/rootd.pid
1332 + eend ${retval}
1333 +}
1334 +
1335 +stop() {
1336 + ebegin "Stopping ROOT file server"
1337 + start-stop-daemon --stop --quiet \
1338 + --pidfile /var/run/rootd.pid \
1339 + --exec /usr/bin/rootd
1340 + eend $?
1341 +}
1342
1343 diff --git a/sci-physics/root/files/xrootd.confd b/sci-physics/root/files/xrootd.confd
1344 new file mode 100644
1345 index 0000000..e725cd1
1346 --- /dev/null
1347 +++ b/sci-physics/root/files/xrootd.confd
1348 @@ -0,0 +1,8 @@
1349 +# conf.d file for xroot daemon
1350 +
1351 +# User to run as (default is `root')
1352 +XROOTD_USER="root"
1353 +
1354 +# Please refer to the xrootd(1) man(1) page for more
1355 +# information on command line parameters.
1356 +XROOTD_OPTS=""
1357
1358 diff --git a/sci-physics/root/files/xrootd.initd b/sci-physics/root/files/xrootd.initd
1359 new file mode 100644
1360 index 0000000..28dd8a5
1361 --- /dev/null
1362 +++ b/sci-physics/root/files/xrootd.initd
1363 @@ -0,0 +1,26 @@
1364 +#!/sbin/runscript
1365 +# Copyright 1999-2012 Gentoo Foundation
1366 +# Distributed under the terms of the GNU General Public License v2
1367 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/xrootd.initd,v 1.2 2009/01/20 18:04:09 bicatali Exp $
1368 +
1369 +depend() {
1370 + need net
1371 + use logger dns
1372 + provide root-file-server
1373 +}
1374 +
1375 +start() {
1376 + ebegin "Starting extended ROOTD file server"
1377 + start-stop-daemon --start --quiet --user ${XROOTD_USER} \
1378 + --make-pidfile --pidfile /var/run/xrootd.pid \
1379 + --exec /usr/bin/xrootd --background -- ${XROOTD_OPTS}
1380 + eend $?
1381 +}
1382 +
1383 +stop() {
1384 + ebegin "Stopping extended ROOTD file server"
1385 + start-stop-daemon --stop --quiet \
1386 + --pidfile /var/run/xrootd.pid \
1387 + --exec /usr/bin/xrootd
1388 + eend $?
1389 +}
1390
1391 diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
1392 new file mode 100644
1393 index 0000000..aaec26a
1394 --- /dev/null
1395 +++ b/sci-physics/root/metadata.xml
1396 @@ -0,0 +1,29 @@
1397 +<?xml version="1.0" encoding="UTF-8"?>
1398 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1399 +<pkgmetadata>
1400 +<maintainer>
1401 + <email>bircoph@×××××.com</email>
1402 + <name>Andrew Savchenko</name>
1403 + <description>Maintainer. Assign bugs to him</description>
1404 +</maintainer>
1405 +<herd>sci-physics</herd>
1406 +<longdescription lang="en">
1407 + ROOT Object Oriented Technologies is an object oriented data
1408 + analysis framework written in C++ by the CERN. Widely used in
1409 + high energy physics, but also in other data analysis applications. It
1410 + contains the CINT C/C++ interpreter and many classes such as
1411 + statistics, serialization, optimization, linear algebra, graphics,
1412 + GUI toolkit, and a complete visualization framework.
1413 +</longdescription>
1414 +<use>
1415 + <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag>
1416 + <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
1417 + <flag name="geant4">Support for <pkg>sci-physics/geant</pkg> version 4</flag>
1418 + <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag>
1419 + <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
1420 + <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
1421 + <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
1422 + <flag name="reflex">Build the reflection database for the C++ interpreter</flag>
1423 + <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
1424 +</use>
1425 +</pkgmetadata>
1426
1427 diff --git a/sci-physics/root/root-5.26.00e-r1.ebuild b/sci-physics/root/root-5.26.00e-r1.ebuild
1428 new file mode 100644
1429 index 0000000..777617b
1430 --- /dev/null
1431 +++ b/sci-physics/root/root-5.26.00e-r1.ebuild
1432 @@ -0,0 +1,316 @@
1433 +# Copyright 1999-2012 Gentoo Foundation
1434 +# Distributed under the terms of the GNU General Public License v2
1435 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.26.00e-r1.ebuild,v 1.12 2011/11/13 11:21:12 jlec Exp $
1436 +
1437 +EAPI=3
1438 +
1439 +PYTHON_DEPEND="python? 2"
1440 +
1441 +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs
1442 +
1443 +DOC_PV=$(get_major_version)_$(get_version_component_range 2)
1444 +ROOFIT_DOC_PV=2.91-33
1445 +TMVA_DOC_PV=4
1446 +
1447 +DESCRIPTION="C++ data analysis framework and interpreter from CERN"
1448 +HOMEPAGE="http://root.cern.ch/"
1449 +SRC_URI="
1450 + ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
1451 + mirror://gentoo/${P}-patches.tar.bz2
1452 + doc? (
1453 + ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf
1454 + ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
1455 + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )"
1456 +
1457 +SLOT="0"
1458 +LICENSE="LGPL-2.1"
1459 +KEYWORDS="amd64 x86"
1460 +IUSE="afs clarens doc emacs examples fftw geant4 graphviz kerberos ldap
1461 + +math mysql odbc +opengl openmp oracle postgres pythia6 pythia8 python
1462 + +reflex ruby qt4 ssl xft xml xinetd xrootd"
1463 +
1464 +# libafterimage ignored, to check every version
1465 +# see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944
1466 +# || ( >=media-libs/libafterimage-1.18 x11-wm/afterstep )
1467 +CDEPEND="
1468 + >=dev-lang/cfortran-4.4-r2
1469 + dev-libs/libpcre
1470 + >=media-libs/ftgl-2.1.3_rc5
1471 + media-libs/giflib
1472 + media-libs/glew
1473 + media-libs/libpng:0
1474 + media-libs/tiff:0
1475 + sys-apps/shadow
1476 + virtual/jpeg
1477 + x11-libs/libXft
1478 + x11-libs/libXpm
1479 + afs? ( >=net-fs/openafs-1.4.7 )
1480 + clarens? ( dev-libs/xmlrpc-c )
1481 + emacs? ( virtual/emacs )
1482 + fftw? ( sci-libs/fftw:3.0 )
1483 + geant4? ( sci-physics/geant:4 )
1484 + graphviz? ( media-gfx/graphviz )
1485 + kerberos? ( virtual/krb5 )
1486 + ldap? ( net-nds/openldap )
1487 + math? ( sci-libs/gsl )
1488 + mysql? ( virtual/mysql )
1489 + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
1490 + opengl? ( virtual/opengl virtual/glu )
1491 + oracle? ( dev-db/oracle-instantclient-basic )
1492 + postgres? ( dev-db/postgresql-base )
1493 + pythia6? ( sci-physics/pythia:6 )
1494 + pythia8? ( sci-physics/pythia:8 )
1495 + qt4? (
1496 + x11-libs/qt-gui:4
1497 + x11-libs/qt-opengl:4
1498 + x11-libs/qt-qt3support:4
1499 + x11-libs/qt-xmlpatterns:4 )
1500 + ruby? (
1501 + dev-lang/ruby
1502 + dev-ruby/rubygems )
1503 + ssl? ( dev-libs/openssl )
1504 + xml? ( dev-libs/libxml2:2 )"
1505 +
1506 +DEPEND="${CDEPEND}
1507 + dev-util/pkgconfig"
1508 +
1509 +RDEPEND="
1510 + virtual/fortran
1511 + ${CDEPEND}
1512 + xinetd? ( sys-apps/xinetd )"
1513 +
1514 +S="${WORKDIR}/${PN}"
1515 +
1516 +pkg_setup() {
1517 + fortran-2_pkg_setup
1518 + echo
1519 + elog "You may want to build ROOT with these non Gentoo extra packages:"
1520 + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
1521 + elog "Monalisa, MaxDB/SapDB, SRP."
1522 + elog "You can use the env variable EXTRA_ECONF variable for this."
1523 + elog "For example, for SRP, you would set: "
1524 + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
1525 + echo
1526 + enewgroup rootd
1527 + enewuser rootd -1 -1 /var/spool/rootd rootd
1528 +
1529 + if use openmp && \
1530 + [[ $(tc-getCC)$ == *gcc* ]] && \
1531 + ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || \
1532 + ! has_version sys-devel/gcc[openmp] ); then
1533 + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
1534 + ewarn "If you want to build this package with OpenMP, abort now,"
1535 + ewarn "and set CC to an OpenMP capable compiler"
1536 + elif use openmp; then
1537 + export USE_OPENMP=1
1538 + use math && export USE_PARALLEL_MINUIT2=1
1539 + fi
1540 + use python && python_set_active_version 2
1541 +}
1542 +
1543 +src_prepare() {
1544 + epatch \
1545 + "${WORKDIR}"/${P}-make-3.82.patch \
1546 + "${WORKDIR}"/${P}-prop-ldflags.patch \
1547 + "${WORKDIR}"/${P}-configure-paths.patch \
1548 + "${WORKDIR}"/${P}-nobyte-compile.patch \
1549 + "${WORKDIR}"/${P}-glibc212.patch \
1550 + "${WORKDIR}"/${P}-xrootd-prop-flags.patch \
1551 + "${FILESDIR}"/${P}-libpng15.patch
1552 +
1553 + # use system cfortran
1554 + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
1555 +
1556 + # take a more descriptive name for ruby libs
1557 + sed -i \
1558 + -e 's/libRuby/libRubyROOT/g' \
1559 + bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \
1560 + || die "ajusting ruby libname failed"
1561 +
1562 + # in gentoo, libPythia6 is called libpythia6
1563 + # libungif is called libgif
1564 + sed -i \
1565 + -e 's/libPythia6/libpythia6/g' \
1566 + -e 's/ungif/gif/g' \
1567 + configure || die "adjusting library names failed"
1568 +
1569 + # libafterimage flags are hardcoded
1570 + sed -i \
1571 + -e 's/CFLAGS="-O3"//' \
1572 + -e 's/CFLAGS=$$ACFLAGS//' \
1573 + graf2d/asimage/Module.mk graf2d/asimage/src/libAfterImage/configure \
1574 + || die "flag propagation in libafterimage failed"
1575 + # QTDIR only used for qt3 in gentoo, and configure looks for it.
1576 + unset QTDIR
1577 +}
1578 +
1579 +src_configure() {
1580 + # the configure script is not the standard autotools
1581 + ./configure \
1582 + --prefix="${EPREFIX}"/usr \
1583 + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
1584 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
1585 + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
1586 + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
1587 + --with-cc=$(tc-getCC) \
1588 + --with-cxx=$(tc-getCXX) \
1589 + --with-f77=$(tc-getFC) \
1590 + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
1591 + --disable-builtin-freetype \
1592 + --disable-builtin-ftgl \
1593 + --disable-builtin-glew \
1594 + --disable-builtin-pcre \
1595 + --disable-builtin-zlib \
1596 + --disable-rpath \
1597 + --enable-asimage \
1598 + --enable-astiff \
1599 + --enable-exceptions \
1600 + --enable-explicitlink \
1601 + --enable-gdml \
1602 + --enable-memstat \
1603 + --enable-shadowpw \
1604 + --enable-shared \
1605 + --enable-soversion \
1606 + --enable-table \
1607 + --fail-on-missing \
1608 + --with-afs-shared=yes \
1609 + $(use_enable afs) \
1610 + $(use_enable clarens) \
1611 + $(use_enable clarens peac) \
1612 + $(use_enable fftw fftw3) \
1613 + $(use_enable geant4 g4root) \
1614 + $(use_enable graphviz gviz) \
1615 + $(use_enable kerberos krb5) \
1616 + $(use_enable ldap) \
1617 + $(use_enable math gsl-shared) \
1618 + $(use_enable math genvector) \
1619 + $(use_enable math mathmore) \
1620 + $(use_enable math minuit2) \
1621 + $(use_enable math roofit) \
1622 + $(use_enable math unuran) \
1623 + $(use_enable mysql) \
1624 + $(use_enable odbc) \
1625 + $(use_enable opengl) \
1626 + $(use_enable postgres pgsql) \
1627 + $(use_enable pythia6) \
1628 + $(use_enable pythia8) \
1629 + $(use_enable python) \
1630 + $(use_enable qt4 qt) \
1631 + $(use_enable qt4 qtgsi) \
1632 + $(use_enable reflex cintex) \
1633 + $(use_enable reflex) \
1634 + $(use_enable ruby) \
1635 + $(use_enable ssl) \
1636 + $(use_enable xft) \
1637 + $(use_enable xml) \
1638 + $(use_enable xrootd) \
1639 + ${EXTRA_ECONF} \
1640 + || die "configure failed"
1641 +}
1642 +
1643 +src_compile() {
1644 + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
1645 + if use emacs; then
1646 + elisp-compile build/misc/*.el || die "elisp-compile failed"
1647 + fi
1648 +}
1649 +
1650 +doc_install() {
1651 + cd "${S}"
1652 + if use doc; then
1653 + einfo "Installing user's guides"
1654 + insinto /usr/share/doc/${PF}
1655 + doins \
1656 + "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
1657 + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf \
1658 + || die "pdf install failed"
1659 + if use math; then
1660 + doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
1661 + || die "math doc install failed"
1662 + fi
1663 + fi
1664 +
1665 + if use examples; then
1666 + # these should really be taken care of by the root make install
1667 + insinto /usr/share/doc/${PF}/examples/tutorials/tmva
1668 + doins -r tmva/test || die
1669 + else
1670 + rm -rf "${D}"/usr/share/doc/${PF}/examples
1671 + fi
1672 +}
1673 +
1674 +daemon_install() {
1675 + cd "${S}"
1676 + local daemons="rootd proofd"
1677 + dodir /var/spool/rootd
1678 + fowners rootd:rootd /var/spool/rootd
1679 + dodir /var/spool/rootd/{pub,tmp}
1680 + fperms 1777 /var/spool/rootd/{pub,tmp}
1681 +
1682 + use xrootd && daemons="${daemons} xrootd olbd"
1683 + for i in ${daemons}; do
1684 + newinitd "${FILESDIR}"/${i}.initd ${i}
1685 + newconfd "${FILESDIR}"/${i}.confd ${i}
1686 + done
1687 + if use xinetd; then
1688 + insinto /etc/xinetd
1689 + doins etc/daemons/{rootd,proofd}.xinetd || die
1690 + fi
1691 +}
1692 +
1693 +desktop_install() {
1694 + cd "${S}"
1695 + sed -e 's,@prefix@,/usr,' \
1696 + build/package/debian/root-system-bin.desktop.in > root.desktop
1697 + domenu root.desktop
1698 + doicon "${S}"/build/package/debian/root-system-bin.png
1699 +
1700 + insinto /usr/share/icons/hicolor/48x48/mimetypes
1701 + doins build/package/debian/application-x-root.png
1702 +
1703 + insinto /usr/share/icons/hicolor/48x48/apps
1704 + doicon build/package/debian/root-system-bin.xpm
1705 +}
1706 +
1707 +src_install() {
1708 + emake DESTDIR="${D}" install || die "emake install failed"
1709 +
1710 + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
1711 + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
1712 + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
1713 + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
1714 + doenvd 99root || die "doenvd failed"
1715 +
1716 + # The build system installs Emacs support unconditionally and in the wrong
1717 + # directory. Remove it and call elisp-install in case of USE=emacs.
1718 + rm -rf "${D}"/usr/share/emacs
1719 + if use emacs; then
1720 + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
1721 + fi
1722 +
1723 + doc_install
1724 + daemon_install
1725 + desktop_install
1726 +
1727 + # Cleanup of files either already distributed or unused on Gentoo
1728 + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
1729 + rm "${ED}"usr/share/root/fonts/LICENSE
1730 + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
1731 + rm -f posix/mktypes dll_stl/setup \
1732 + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
1733 + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
1734 + rm -f "${ED}"/etc/root/proof/*.sample
1735 + rm -rf "${ED}"/etc/root/daemons
1736 + popd > /dev/null
1737 +}
1738 +
1739 +pkg_postinst() {
1740 + use ruby && elog "ROOT Ruby module is available as libRubyROOT"
1741 + fdo-mime_desktop_database_update
1742 + use python && python_mod_optimize /usr/$(get_libdir)/root
1743 +}
1744 +
1745 +pkg_postrm() {
1746 + fdo-mime_desktop_database_update
1747 + use python && python_mod_cleanup /usr/$(get_libdir)/root
1748 +}
1749
1750 diff --git a/sci-physics/root/root-5.28.00d.ebuild b/sci-physics/root/root-5.28.00d.ebuild
1751 new file mode 100644
1752 index 0000000..f685450
1753 --- /dev/null
1754 +++ b/sci-physics/root/root-5.28.00d.ebuild
1755 @@ -0,0 +1,338 @@
1756 +# Copyright 1999-2012 Gentoo Foundation
1757 +# Distributed under the terms of the GNU General Public License v2
1758 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00d.ebuild,v 1.4 2011/11/13 11:21:12 jlec Exp $
1759 +
1760 +EAPI=3
1761 +
1762 +PYTHON_DEPEND="python? 2"
1763 +
1764 +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic
1765 +
1766 +#DOC_PV=$(get_major_version)_$(get_version_component_range 2)
1767 +DOC_PV=5_26
1768 +ROOFIT_DOC_PV=2.91-33
1769 +TMVA_DOC_PV=4.03
1770 +PATCH_PV=5.28.00b
1771 +
1772 +DESCRIPTION="C++ data analysis framework and interpreter from CERN"
1773 +HOMEPAGE="http://root.cern.ch/"
1774 +SRC_URI="
1775 + ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
1776 + http://dev.gentoo.org/~bicatali/${PN}-${PATCH_PV}-xrootd-prop-flags.patch.bz2
1777 + doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
1778 + math? (
1779 + ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
1780 + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
1781 +
1782 +SLOT="0"
1783 +LICENSE="LGPL-2.1"
1784 +KEYWORDS="~amd64 ~x86"
1785 +IUSE="afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
1786 + llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres pythia6
1787 + pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd"
1788 +
1789 +CDEPEND="
1790 + >=dev-lang/cfortran-4.4-r2
1791 + dev-libs/libpcre
1792 + media-libs/ftgl
1793 + media-libs/giflib
1794 + media-libs/glew
1795 + media-libs/libpng:0
1796 + media-libs/tiff:0
1797 + sys-apps/shadow
1798 + virtual/jpeg
1799 + x11-libs/libX11
1800 + x11-libs/libXext
1801 + x11-libs/libXft
1802 + x11-libs/libXpm
1803 + || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 )
1804 + afs? ( net-fs/openafs )
1805 + avahi? ( net-dns/avahi )
1806 + clarens? ( dev-libs/xmlrpc-c )
1807 + emacs? ( virtual/emacs )
1808 + fits? ( sci-libs/cfitsio )
1809 + fftw? ( sci-libs/fftw:3.0 )
1810 + graphviz? ( media-gfx/graphviz )
1811 + kerberos? ( virtual/krb5 )
1812 + ldap? ( net-nds/openldap )
1813 + llvm? ( sys-devel/llvm )
1814 + math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
1815 + mysql? ( virtual/mysql )
1816 + ncurses? ( sys-libs/ncurses )
1817 + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
1818 + opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
1819 + oracle? ( dev-db/oracle-instantclient-basic )
1820 + postgres? ( dev-db/postgresql-base )
1821 + pythia6? ( sci-physics/pythia:6 )
1822 + pythia8? ( sci-physics/pythia:8 )
1823 + qt4? (
1824 + x11-libs/qt-gui:4
1825 + x11-libs/qt-opengl:4
1826 + x11-libs/qt-qt3support:4
1827 + x11-libs/qt-svg:4
1828 + x11-libs/qt-webkit:4
1829 + x11-libs/qt-xmlpatterns:4 )
1830 + ruby? (
1831 + dev-lang/ruby
1832 + dev-ruby/rubygems )
1833 + ssl? ( dev-libs/openssl )
1834 + xml? ( dev-libs/libxml2:2 )"
1835 +
1836 +DEPEND="${CDEPEND}
1837 + dev-util/pkgconfig"
1838 +
1839 +RDEPEND="
1840 + virtual/fortran
1841 +${CDEPEND}
1842 + reflex? ( dev-cpp/gccxml )
1843 + xinetd? ( sys-apps/xinetd )"
1844 +
1845 +S="${WORKDIR}/${PN}"
1846 +
1847 +pkg_setup() {
1848 + fortran-2_pkg_setup
1849 + echo
1850 + elog "There are extra options on packages not yet in Gentoo:"
1851 + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
1852 + elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
1853 + elog "You can use the env variable EXTRA_ECONF variable for this."
1854 + elog "For example, for SRP, you would set: "
1855 + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
1856 + echo
1857 + enewgroup rootd
1858 + enewuser rootd -1 -1 /var/spool/rootd rootd
1859 +
1860 + if use math; then
1861 + if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
1862 + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
1863 + ewarn "If you want to build this package with OpenMP, abort now,"
1864 + ewarn "and set CC to an OpenMP capable compiler"
1865 + elif use openmp; then
1866 + export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
1867 + elif use mpi; then
1868 + export USE_MPI=1 USE_PARALLEL_MINUIT2=1
1869 + fi
1870 + fi
1871 +}
1872 +
1873 +src_prepare() {
1874 + epatch \
1875 + "${WORKDIR}"/${PN}-${PATCH_PV}-xrootd-prop-flags.patch \
1876 + "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
1877 + "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
1878 + "${FILESDIR}"/${PN}-${PATCH_PV}-nobyte-compile.patch \
1879 + "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
1880 + "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch
1881 +
1882 + # make sure we use system libs and headers
1883 + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
1884 + rm -rf graf2d/asimage/src/libAfterImage
1885 + rm -rf graf3d/ftgl/{inc,src}
1886 + rm -rf graf2d/freetype/src
1887 + rm -rf graf3d/glew/{inc,src}
1888 + rm -rf core/pcre/src
1889 + rm -rf math/unuran/src/unuran-*.tar.gz
1890 + find core/zip -type f -name "[a-z]*" | xargs rm
1891 + rm graf3d/gl/{inc,src}/gl2ps.*
1892 + sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk
1893 +
1894 + # TODO: unbundle xrootd as a new package
1895 + #rm -rf net/xrootd/src
1896 + #sed -i \
1897 + # -e 's:-lXrdOuc:-lXrd &:' \
1898 + # -e 's:$(XROOTDDIRL)/lib\(Xrd\w*\).a:-l\1:g' \
1899 + # proof/proofd/Module.mk || die
1900 +
1901 + # In Gentoo, libPythia6 is called libpythia6
1902 + # libungif is called libgif,
1903 + # iodbc is in /usr/include/iodbc
1904 + # pg_config.h is checked instead of libpq-fe.h
1905 + sed -i \
1906 + -e 's:libPythia6:libpythia6:g' \
1907 + -e 's:ungif:gif:g' \
1908 + -e 's:$ODBCINC:$ODBCINC /usr/include/iodbc:' \
1909 + -e 's:libpq-fe.h:pg_config.h:' \
1910 + configure || die "adjusting configure for Gentoo failed"
1911 +
1912 + # prefixify the configure script
1913 + sed -i \
1914 + -e 's:/usr:${EPREFIX}/usr:g' \
1915 + configure || die "prefixify configure failed"
1916 +
1917 + # QTDIR only used for qt3 in gentoo, and configure looks for it.
1918 + unset QTDIR
1919 +}
1920 +
1921 +src_configure() {
1922 + # the configure script is not the standard autotools
1923 + ./configure \
1924 + --prefix="${EPREFIX}"/usr \
1925 + --etcdir="${EPREFIX}"/etc/root \
1926 + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
1927 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
1928 + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
1929 + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
1930 + --with-cc=$(tc-getCC) \
1931 + --with-cxx=$(tc-getCXX) \
1932 + --with-f77=$(tc-getFC) \
1933 + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
1934 + --disable-builtin-afterimage \
1935 + --disable-builtin-freetype \
1936 + --disable-builtin-ftgl \
1937 + --disable-builtin-glew \
1938 + --disable-builtin-pcre \
1939 + --disable-builtin-zlib \
1940 + --disable-rpath \
1941 + --enable-asimage \
1942 + --enable-astiff \
1943 + --enable-exceptions \
1944 + --enable-explicitlink \
1945 + --enable-gdml \
1946 + --enable-memstat \
1947 + --enable-shadowpw \
1948 + --enable-shared \
1949 + --enable-soversion \
1950 + --enable-table \
1951 + --fail-on-missing \
1952 + --with-afs-shared=yes \
1953 + $(use_enable afs) \
1954 + $(use_enable avahi bonjour) \
1955 + $(use_enable clarens) \
1956 + $(use_enable clarens peac) \
1957 + $(use_enable ncurses editline) \
1958 + $(use_enable fits fitsio) \
1959 + $(use_enable fftw fftw3) \
1960 + $(use_enable graphviz gviz) \
1961 + $(use_enable kerberos krb5) \
1962 + $(use_enable ldap) \
1963 + $(use_enable llvm cling) \
1964 + $(use_enable math gsl-shared) \
1965 + $(use_enable math genvector) \
1966 + $(use_enable math mathmore) \
1967 + $(use_enable math minuit2) \
1968 + $(use_enable math roofit) \
1969 + $(use_enable math tmva) \
1970 + $(use_enable math unuran) \
1971 + $(use_enable mysql) \
1972 + $(use_enable odbc) \
1973 + $(use_enable opengl) \
1974 + $(use_enable postgres pgsql) \
1975 + $(use_enable pythia6) \
1976 + $(use_enable pythia8) \
1977 + $(use_enable python) \
1978 + $(use_enable qt4 qt) \
1979 + $(use_enable qt4 qtgsi) \
1980 + $(use_enable reflex cintex) \
1981 + $(use_enable reflex) \
1982 + $(use_enable ruby) \
1983 + $(use_enable ssl) \
1984 + $(use_enable xft) \
1985 + $(use_enable xml) \
1986 + $(use_enable xrootd) \
1987 + ${EXTRA_ECONF} \
1988 + || die "configure failed"
1989 +}
1990 +
1991 +src_compile() {
1992 + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
1993 + if use emacs; then
1994 + elisp-compile build/misc/*.el || die "elisp-compile failed"
1995 + fi
1996 +}
1997 +
1998 +doc_install() {
1999 + cd "${S}"
2000 + if use doc; then
2001 + einfo "Installing user's guides"
2002 + dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
2003 + use math && dodoc \
2004 + "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
2005 + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
2006 + fi
2007 +
2008 + if use examples; then
2009 + # these should really be taken care of by the root make install
2010 + insinto /usr/share/doc/${PF}/examples/tutorials/tmva
2011 + doins -r tmva/test
2012 + else
2013 + rm -rf "${ED}"/usr/share/doc/${PF}/examples
2014 + fi
2015 +}
2016 +
2017 +daemon_install() {
2018 + cd "${S}"
2019 + local daemons="rootd proofd"
2020 + dodir /var/spool/rootd
2021 + fowners rootd:rootd /var/spool/rootd
2022 + dodir /var/spool/rootd/{pub,tmp}
2023 + fperms 1777 /var/spool/rootd/{pub,tmp}
2024 +
2025 + use xrootd && daemons="${daemons} xrootd olbd"
2026 + for i in ${daemons}; do
2027 + newinitd "${FILESDIR}"/${i}.initd ${i}
2028 + newconfd "${FILESDIR}"/${i}.confd ${i}
2029 + done
2030 + if use xinetd; then
2031 + insinto /etc/xinetd
2032 + doins etc/daemons/{rootd,proofd}.xinetd
2033 + fi
2034 +}
2035 +
2036 +desktop_install() {
2037 + cd "${S}"
2038 + sed -e 's,@prefix@,/usr,' \
2039 + build/package/debian/root-system-bin.desktop.in > root.desktop
2040 + domenu root.desktop
2041 + doicon "${S}"/build/package/debian/root-system-bin.png
2042 +
2043 + insinto /usr/share/icons/hicolor/48x48/mimetypes
2044 + doins build/package/debian/application-x-root.png
2045 +
2046 + insinto /usr/share/icons/hicolor/48x48/apps
2047 + doicon build/package/debian/root-system-bin.xpm
2048 +}
2049 +
2050 +src_install() {
2051 + emake DESTDIR="${D}" install || die "emake install failed"
2052 +
2053 + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
2054 + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
2055 + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
2056 + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
2057 + doenvd 99root || die "doenvd failed"
2058 +
2059 + # The build system installs Emacs support unconditionally and in the wrong
2060 + # directory. Remove it and call elisp-install in case of USE=emacs.
2061 + rm -rf "${ED}"/usr/share/emacs
2062 + if use emacs; then
2063 + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
2064 + fi
2065 +
2066 + doc_install
2067 + daemon_install
2068 + desktop_install
2069 +
2070 + # Cleanup of files either already distributed or unused on Gentoo
2071 + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
2072 + rm "${ED}"usr/share/root/fonts/LICENSE
2073 + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
2074 + rm -f posix/mktypes dll_stl/setup \
2075 + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
2076 + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
2077 + rm -f "${ED}"/etc/root/proof/*.sample
2078 + rm -rf "${ED}"/etc/root/daemons
2079 + popd > /dev/null
2080 + # these should be in PATH
2081 + mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \
2082 + "${ED}"usr/bin
2083 +}
2084 +
2085 +pkg_postinst() {
2086 + fdo-mime_desktop_database_update
2087 + use python && python_mod_optimize /usr/$(get_libdir)/root
2088 +}
2089 +
2090 +pkg_postrm() {
2091 + fdo-mime_desktop_database_update
2092 + use python && python_mod_cleanup /usr/$(get_libdir)/root
2093 +}
2094
2095 diff --git a/sci-physics/root/root-5.32.00-r2.ebuild b/sci-physics/root/root-5.32.00-r2.ebuild
2096 new file mode 100644
2097 index 0000000..093c935
2098 --- /dev/null
2099 +++ b/sci-physics/root/root-5.32.00-r2.ebuild
2100 @@ -0,0 +1,340 @@
2101 +# Copyright 1999-2012 Gentoo Foundation
2102 +# Distributed under the terms of the GNU General Public License v2
2103 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.00-r2.ebuild,v 1.1 2012/01/21 19:19:46 bicatali Exp $
2104 +
2105 +EAPI=4
2106 +PYTHON_DEPEND="python? 2"
2107 +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic
2108 +
2109 +#DOC_PV=$(get_major_version)_$(get_version_component_range 2)
2110 +DOC_PV=5_26
2111 +ROOFIT_DOC_PV=2.91-33
2112 +TMVA_DOC_PV=4.03
2113 +PATCH_PV=5.28.00b
2114 +PATCH_PV2=5.32.00
2115 +
2116 +DESCRIPTION="C++ data analysis framework and interpreter from CERN"
2117 +HOMEPAGE="http://root.cern.ch/"
2118 +SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
2119 + doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf
2120 + math? (
2121 + ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
2122 + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )"
2123 +
2124 +SLOT="0"
2125 +LICENSE="LGPL-2.1"
2126 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
2127 +IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap
2128 + llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres prefix
2129 + pythia6 pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd"
2130 +
2131 +CDEPEND="
2132 + app-arch/xz-utils
2133 + >=dev-lang/cfortran-4.4-r2
2134 + dev-libs/libpcre
2135 + media-libs/freetype
2136 + media-libs/giflib
2137 + media-libs/libpng:0
2138 + media-libs/tiff:0
2139 + sys-apps/shadow
2140 + sys-libs/zlib
2141 + virtual/jpeg
2142 + X? (
2143 + media-libs/ftgl
2144 + media-libs/glew
2145 + x11-libs/libX11
2146 + x11-libs/libXext
2147 + x11-libs/libXpm
2148 + || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 )
2149 + opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
2150 + qt4? (
2151 + x11-libs/qt-gui:4
2152 + x11-libs/qt-opengl:4
2153 + x11-libs/qt-qt3support:4
2154 + x11-libs/qt-svg:4
2155 + x11-libs/qt-webkit:4
2156 + x11-libs/qt-xmlpatterns:4 )
2157 + xft? ( x11-libs/libXft )
2158 + )
2159 + afs? ( net-fs/openafs )
2160 + avahi? ( net-dns/avahi )
2161 + clarens? ( dev-libs/xmlrpc-c[curl] )
2162 + emacs? ( virtual/emacs )
2163 + fits? ( sci-libs/cfitsio )
2164 + fftw? ( sci-libs/fftw:3.0 )
2165 + graphviz? ( media-gfx/graphviz )
2166 + kerberos? ( virtual/krb5 )
2167 + ldap? ( net-nds/openldap )
2168 + llvm? ( sys-devel/llvm )
2169 + math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
2170 + mysql? ( virtual/mysql )
2171 + ncurses? ( sys-libs/ncurses )
2172 + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
2173 + oracle? ( dev-db/oracle-instantclient-basic )
2174 + postgres? ( dev-db/postgresql-base )
2175 + pythia6? ( sci-physics/pythia:6 )
2176 + pythia8? ( sci-physics/pythia:8 )
2177 + ruby? (
2178 + dev-lang/ruby
2179 + dev-ruby/rubygems )
2180 + ssl? ( dev-libs/openssl )
2181 + xml? ( dev-libs/libxml2 )
2182 + xrootd? ( net-libs/xrootd )"
2183 +
2184 +DEPEND="${CDEPEND}
2185 + dev-util/pkgconfig"
2186 +
2187 +RDEPEND="
2188 + virtual/fortran
2189 + ${CDEPEND}
2190 + reflex? ( dev-cpp/gccxml )
2191 + xinetd? ( sys-apps/xinetd )"
2192 +
2193 +REQUIRED_USE="!X? ( !opengl !qt4 !xft )"
2194 +
2195 +S="${WORKDIR}/${PN}"
2196 +
2197 +pkg_setup() {
2198 + fortran-2_pkg_setup
2199 + python_pkg_setup
2200 + echo
2201 + elog "There are extra options on packages not yet in Gentoo:"
2202 + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
2203 + elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
2204 + elog "You can use the env variable EXTRA_ECONF variable for this."
2205 + elog "For example, for SRP, you would set: "
2206 + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
2207 + echo
2208 + enewgroup rootd
2209 + enewuser rootd -1 -1 /var/spool/rootd rootd
2210 +
2211 + if use math; then
2212 + if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
2213 + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
2214 + ewarn "If you want to build this package with OpenMP, abort now,"
2215 + ewarn "and set CC to an OpenMP capable compiler"
2216 + elif use openmp; then
2217 + export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
2218 + elif use mpi; then
2219 + export USE_MPI=1 USE_PARALLEL_MINUIT2=1
2220 + fi
2221 + fi
2222 +}
2223 +
2224 +src_prepare() {
2225 + epatch \
2226 + "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
2227 + "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
2228 + "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \
2229 + "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
2230 + "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
2231 + "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \
2232 + "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch
2233 +
2234 + # make sure we use system libs and headers
2235 + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
2236 + rm -rf graf2d/asimage/src/libAfterImage
2237 + rm -rf graf3d/ftgl/{inc,src}
2238 + rm -rf graf2d/freetype/src
2239 + rm -rf graf3d/glew/{inc,src}
2240 + rm -rf core/pcre/src
2241 + rm -rf math/unuran/src/unuran-*.tar.gz
2242 + LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" | xargs rm
2243 + rm -rf core/lzma/src/*.tar.gz
2244 + rm graf3d/gl/{inc,src}/gl2ps.*
2245 + sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk
2246 +
2247 + # In Gentoo, libPythia6 is called libpythia6
2248 + # libungif is called libgif,
2249 + # iodbc is in /usr/include/iodbc
2250 + # pg_config.h is checked instead of libpq-fe.h
2251 + sed -i \
2252 + -e 's:libPythia6:libpythia6:g' \
2253 + -e 's:ungif:gif:g' \
2254 + -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
2255 + -e 's:libpq-fe.h:pg_config.h:' \
2256 + configure || die "adjusting configure for Gentoo failed"
2257 +
2258 + # prefixify the configure script
2259 + sed -i \
2260 + -e 's:/usr:${EPREFIX}/usr:g' \
2261 + configure || die "prefixify configure failed"
2262 +
2263 + # QTDIR only used for qt3 in gentoo, and configure looks for it.
2264 + unset QTDIR
2265 +}
2266 +
2267 +src_configure() {
2268 + # the configure script is not the standard autotools
2269 + ./configure \
2270 + --prefix="${EPREFIX}"/usr \
2271 + --etcdir="${EPREFIX}"/etc/root \
2272 + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
2273 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
2274 + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
2275 + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
2276 + --with-cc=$(tc-getCC) \
2277 + --with-cxx=$(tc-getCXX) \
2278 + --with-f77=$(tc-getFC) \
2279 + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
2280 + --disable-builtin-afterimage \
2281 + --disable-builtin-freetype \
2282 + --disable-builtin-ftgl \
2283 + --disable-builtin-glew \
2284 + --disable-builtin-pcre \
2285 + --disable-builtin-zlib \
2286 + --disable-builtin-lzma \
2287 + --enable-astiff \
2288 + --enable-exceptions \
2289 + --enable-explicitlink \
2290 + --enable-gdml \
2291 + --enable-memstat \
2292 + --enable-shadowpw \
2293 + --enable-shared \
2294 + --enable-soversion \
2295 + --enable-table \
2296 + --fail-on-missing \
2297 + --with-afs-shared=yes \
2298 + $(use_enable X x11) \
2299 + $(use_enable X asimage) \
2300 + $(use_enable afs) \
2301 + $(use_enable avahi bonjour) \
2302 + $(use_enable clarens) \
2303 + $(use_enable clarens peac) \
2304 + $(use_enable ncurses editline) \
2305 + $(use_enable fits fitsio) \
2306 + $(use_enable fftw fftw3) \
2307 + $(use_enable graphviz gviz) \
2308 + $(use_enable kerberos krb5) \
2309 + $(use_enable ldap) \
2310 + $(use_enable llvm cling) \
2311 + $(use_enable math gsl-shared) \
2312 + $(use_enable math genvector) \
2313 + $(use_enable math mathmore) \
2314 + $(use_enable math minuit2) \
2315 + $(use_enable math roofit) \
2316 + $(use_enable math tmva) \
2317 + $(use_enable math unuran) \
2318 + $(use_enable mysql) \
2319 + $(use_enable odbc) \
2320 + $(use_enable opengl) \
2321 + $(use_enable postgres pgsql) \
2322 + $(use_enable prefix rpath) \
2323 + $(use_enable pythia6) \
2324 + $(use_enable pythia8) \
2325 + $(use_enable python) \
2326 + $(use_enable qt4 qt) \
2327 + $(use_enable qt4 qtgsi) \
2328 + $(use_enable reflex cintex) \
2329 + $(use_enable reflex) \
2330 + $(use_enable ruby) \
2331 + $(use_enable ssl) \
2332 + $(use_enable xft) \
2333 + $(use_enable xml) \
2334 + $(use_enable xrootd) \
2335 + ${EXTRA_ECONF} \
2336 + || die "configure failed"
2337 +}
2338 +
2339 +src_compile() {
2340 + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed"
2341 + if use emacs; then
2342 + elisp-compile build/misc/*.el || die "elisp-compile failed"
2343 + fi
2344 +}
2345 +
2346 +doc_install() {
2347 + cd "${S}"
2348 + if use doc; then
2349 + einfo "Installing user's guides"
2350 + dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf
2351 + use math && dodoc \
2352 + "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
2353 + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
2354 + fi
2355 +
2356 + if use examples; then
2357 + # these should really be taken care of by the root make install
2358 + insinto /usr/share/doc/${PF}/examples/tutorials/tmva
2359 + doins -r tmva/test
2360 + else
2361 + rm -rf "${ED}"/usr/share/doc/${PF}/examples
2362 + fi
2363 +}
2364 +
2365 +daemon_install() {
2366 + cd "${S}"
2367 + local daemons="rootd proofd"
2368 + dodir /var/spool/rootd
2369 + fowners rootd:rootd /var/spool/rootd
2370 + dodir /var/spool/rootd/{pub,tmp}
2371 + fperms 1777 /var/spool/rootd/{pub,tmp}
2372 +
2373 + for i in ${daemons}; do
2374 + newinitd "${FILESDIR}"/${i}.initd ${i}
2375 + newconfd "${FILESDIR}"/${i}.confd ${i}
2376 + done
2377 + if use xinetd; then
2378 + insinto /etc/xinetd
2379 + doins etc/daemons/{rootd,proofd}.xinetd
2380 + fi
2381 +}
2382 +
2383 +desktop_install() {
2384 + cd "${S}"
2385 + sed -e 's,@prefix@,/usr,' \
2386 + build/package/debian/root-system-bin.desktop.in > root.desktop
2387 + domenu root.desktop
2388 + doicon "${S}"/build/package/debian/root-system-bin.png
2389 +
2390 + insinto /usr/share/icons/hicolor/48x48/mimetypes
2391 + doins build/package/debian/application-x-root.png
2392 +
2393 + insinto /usr/share/icons/hicolor/48x48/apps
2394 + doicon build/package/debian/root-system-bin.xpm
2395 +}
2396 +
2397 +src_install() {
2398 + emake DESTDIR="${D}" install || die "emake install failed"
2399 +
2400 + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
2401 + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
2402 + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
2403 + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
2404 + doenvd 99root || die "doenvd failed"
2405 +
2406 + # The build system installs Emacs support unconditionally and in the wrong
2407 + # directory. Remove it and call elisp-install in case of USE=emacs.
2408 + rm -rf "${ED}"/usr/share/emacs
2409 + if use emacs; then
2410 + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
2411 + fi
2412 +
2413 + doc_install
2414 + daemon_install
2415 + desktop_install
2416 +
2417 + # Cleanup of files either already distributed or unused on Gentoo
2418 + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
2419 + rm "${ED}"usr/share/root/fonts/LICENSE
2420 + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
2421 + rm -f posix/mktypes dll_stl/setup \
2422 + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
2423 + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib
2424 + rm -f "${ED}"/etc/root/proof/*.sample
2425 + rm -rf "${ED}"/etc/root/daemons
2426 + popd > /dev/null
2427 + # these should be in PATH
2428 + mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \
2429 + "${ED}"usr/bin
2430 +}
2431 +
2432 +pkg_postinst() {
2433 + fdo-mime_desktop_database_update
2434 + use python && python_mod_optimize /usr/$(get_libdir)/root
2435 +}
2436 +
2437 +pkg_postrm() {
2438 + fdo-mime_desktop_database_update
2439 + use python && python_mod_cleanup /usr/$(get_libdir)/root
2440 +}