diff options
author | Andrew Savchenko <bircoph@gmail.com> | 2012-02-27 22:10:28 +0400 |
---|---|---|
committer | Andrew Savchenko <bircoph@gmail.com> | 2012-02-27 22:10:28 +0400 |
commit | 3de1a19e6fd417276097e6fc2b456c5aebd54683 (patch) | |
tree | dfd4d5d5b070093832c1b3f7f1fc8c6c4c54682f /sci-physics | |
parent | [dev-lang/path64] add use.flag description (diff) | |
download | sci-3de1a19e6fd417276097e6fc2b456c5aebd54683.tar.gz sci-3de1a19e6fd417276097e6fc2b456c5aebd54683.tar.bz2 sci-3de1a19e6fd417276097e6fc2b456c5aebd54683.zip |
sci-physics/root: fix build on non-english locales
Diffstat (limited to 'sci-physics')
24 files changed, 2254 insertions, 0 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog new file mode 100644 index 000000000..8b69c5c93 --- /dev/null +++ b/sci-physics/root/ChangeLog @@ -0,0 +1,606 @@ +# ChangeLog for sci-physics/root +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.92 2012/01/21 19:23:26 bicatali Exp $ + + 27 Feb 2012; Andrew Savchenko <bircoph@gmail.com> + root-5.26.00e-r1.ebuild: + Fix build on non-english locales. find tool may become crazy on + them, so force LANG=C LC_ALL=C for find only. + +*root-5.32.00-r2 (21 Jan 2012) + + 21 Jan 2012; Sébastien Fabbro <bicatali@gentoo.org> +root-5.32.00-r2.ebuild, + +files/root-5.32.00-afs.patch, +files/root-5.32.00-cfitsio.patch, + +files/root-5.32.00-nobyte-compile.patch, files/proofd.initd, + files/rootd.initd, metadata.xml: + Import root ebuild from the science overlay. Main work from Andrew Savchenko, + now proxy-maintainer + + 13 Nov 2011; Justin Lecher <jlec@gentoo.org> -root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild, metadata.xml: + Cleaned old, fixed slotting for media-libs/libpng and media-libs/tiff, sort + Deps, converted elog -> echo where needed, cleaned illegal epause, formated + metadat.xml + + 18 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> root-5.26.00e-r1.ebuild, + +files/root-5.26.00e-libpng15.patch: + Fix building with libpng15 wrt #387553 by Daniel Savard + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild: + Add dependency on virtual/fortran + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild, root-5.28.00d.ebuild: + Added fortran-2.eclass support + + 06 Jun 2011; Jeroen Roovers <jer@gentoo.org> root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild: + Drop HPPA keywording (bug #355963). + + 31 May 2011; Markus Meier <maekke@gentoo.org> root-5.26.00e-r1.ebuild: + x86 stable, bug #367321 + + 23 May 2011; Markos Chandras <hwoarang@gentoo.org> root-5.26.00e-r1.ebuild: + Stable on amd64 wrt bug #367321 + + 20 May 2011; Jeroen Roovers <jer@gentoo.org> root-5.26.00e-r1.ebuild: + Stable for HPPA (bug #367321). + +*root-5.28.00d (17 May 2011) + + 17 May 2011; Sébastien Fabbro <bicatali@gentoo.org> -root-5.28.00b.ebuild, + +root-5.28.00d.ebuild: + Version bump + +*root-5.28.00b (16 Mar 2011) + + 16 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org> +root-5.28.00b.ebuild, + +files/root-5.28.00b-asneeded.patch, +files/root-5.28.00b-glibc212.patch, + +files/root-5.28.00b-nobyte-compile.patch, + +files/root-5.28.00b-prop-ldflags.patch, +files/root-5.28.00b-unuran.patch, + metadata.xml: + Version bump. Now builds with unbundled libafterimage (bug #252918), gl2ps. + Added a few flags (fits for cfitsio, llvm for cling support). More ebuild + cleaning. + + 02 Mar 2011; Justin Lecher <jlec@gentoo.org> root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild: + Correct Slots for gtk 3 introduction to tree + + 13 Feb 2011; Raúl Porcel <armin76@gentoo.org> root-5.26.00-r2.ebuild, + root-5.26.00e-r1.ebuild: + Drop sparc keywords + + 18 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> -root-5.26.00-r4.ebuild: + Drop old. + + 08 Nov 2010; Kacper Kowalik <xarthisius@gentoo.org> + root-5.26.00-r2.ebuild, root-5.26.00-r4.ebuild, root-5.26.00e-r1.ebuild: + media-libs/jpeg -> virtual/jpeg + +*root-5.26.00e-r1 (22 Oct 2010) + + 22 Oct 2010; Kacper Kowalik <xarthisius@gentoo.org> -root-5.26.00e.ebuild, + +root-5.26.00e-r1.ebuild, -files/root-5.26.00e-configure-paths.patch, + -files/root-5.26.00e-glibc212.patch, -files/root-5.26.00e-make-3.82.patch, + -files/root-5.26.00e-nobyte-compile.patch, + -files/root-5.26.00e-prop-ldflags.patch: + Move patches to mirrors. Fixes bug 341971. + +*root-5.26.00e (19 Oct 2010) + + 19 Oct 2010; Sébastien Fabbro <bicatali@gentoo.org> + +root-5.26.00e.ebuild, +files/root-5.26.00e-configure-paths.patch, + +files/root-5.26.00e-glibc212.patch, +files/root-5.26.00e-make-3.82.patch, + +files/root-5.26.00e-nobyte-compile.patch, + +files/root-5.26.00e-prop-ldflags.patch: + Version bump, patch for afs submitted by Andrew Savchenko. + + 16 Oct 2010; Kacper Kowalik <xarthisius@gentoo.org> + root-5.26.00-r4.ebuild, +files/root-5.26.00-make-3.82.patch: + Fix building with gmake-3.82 wrt 333083. Thanks to Diego for reporting. + + 10 Jul 2010; Raúl Porcel <armin76@gentoo.org> root-5.26.00-r2.ebuild: + sparc stable wrt #318469 + + 06 Jul 2010; Sébastien Fabbro <bicatali@gentoo.org> + root-5.26.00-r4.ebuild: + Added graphviz use flag + + 25 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + root-5.26.00-r4.ebuild: + Fix usage of python_set_active_version() and python_mod_optimize(), use + python_mod_cleanup() instead of python_mod_optimize() in pkg_postrm() (bug + #316247). + + 25 Jun 2010; Sébastien Fabbro <bicatali@gentoo.org> + -root-5.22.00-r3.ebuild, -root-5.24.00-r1.ebuild, -root-5.26.00-r3.ebuild, + root-5.26.00-r4.ebuild, -files/root-5.26.00-nobyte-compile.patch: + Patch bump and removed useless gsl flag + +*root-5.26.00-r4 (25 Jun 2010) + + 25 Jun 2010; Justin Lecher <jlec@gentoo.org> +root-5.26.00-r4.ebuild: + Fixes for PYTHON ABIs + + 22 Jun 2010; Sébastien Fabbro <bicatali@gentoo.org> + root-5.26.00-r3.ebuild: + Removed cint7 flag, discontinued effort, and does not compile (bug + #324957) + + 17 Jun 2010; Patrick Lauer <patrick@gentoo.org> root-5.22.00-r2.ebuild, + root-5.22.00-r3.ebuild, root-5.24.00-r1.ebuild, root-5.26.00-r2.ebuild, + root-5.26.00-r3.ebuild: + Migrating away from deprecated postgres virtuals + +*root-5.26.00-r3 (14 Jun 2010) + + 14 Jun 2010; Sébastien Fabbro <bicatali@gentoo.org> + +root-5.26.00-r3.ebuild: + New patch set from upstream fixing a number of bugs, more LDFLAGS + propagation fixes, added gsl flag and released as-needed for more testing + + 01 Jun 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + root-5.26.00-r2.ebuild: + x86 stable wrt bug #318469 + + 25 May 2010; Pacho Ramos <pacho@gentoo.org> root-5.26.00-r2.ebuild: + stable amd64, bug 318469 + + 13 May 2010; Jeroen Roovers <jer@gentoo.org> root-5.26.00-r2.ebuild: + Stable for HPPA (bug #318469). + +*root-5.26.00-r2 (10 Mar 2010) + + 10 Mar 2010; Sébastien Fabbro <bicatali@gentoo.org> -root-5.26.00.ebuild, + -root-5.26.00-r1.ebuild, +root-5.26.00-r2.ebuild: + Now do not optimize dictionary upon upstream recomendation, remove buggy + gcc44 patch (fixing bug #305871), update various patches, documentation + (bug #307915) and cleaned up some seds + +*root-5.26.00-r1 (19 Feb 2010) + + 19 Feb 2010; Sébastien Fabbro <bicatali@gentoo.org> + +root-5.26.00-r1.ebuild: + Patch version bump. Also fixed a configure problem when checking for + symbol (bug #305279) + +*root-5.26.00 (09 Jan 2010) + + 09 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> +root-5.26.00.ebuild: + Version bump. Thanks Andrew Savchenko for his input, bug #298284 + + 24 Nov 2009; Sébastien Fabbro <bicatali@gentoo.org> + root-5.24.00-r1.ebuild: + Fixed a PIC problem when configuring with AFS (bug #294038) + +*root-5.24.00-r1 (19 Nov 2009) + + 19 Nov 2009; Sébastien Fabbro <bicatali@gentoo.org> + root-5.22.00-r2.ebuild, root-5.22.00-r3.ebuild, -root-5.24.00.ebuild, + +root-5.24.00-r1.ebuild: + Forbid as-needed (bug #287178), fixed a syntax while installing TMVA + documentation, new version bump with new set of patches. Thanks Andrew + Savchenko for his contribution. + + 06 Oct 2009; Dominik Kapusta <ayoy@gentoo.org> root-5.22.00-r2.ebuild, + root-5.22.00-r3.ebuild, root-5.24.00.ebuild: + Removed alternative dependency on Qt metapackage + +*root-5.24.00 (24 Sep 2009) + + 24 Sep 2009; Sébastien Fabbro <bicatali@gentoo.org> +root-5.24.00.ebuild: + Version bump, still masked. A bit buggy with xrootd, cint7 and afs at + least on amd64. Thanks Andrew Savchenko for his work + +*root-5.22.00-r3 (23 Sep 2009) + + 23 Sep 2009; Sébastien Fabbro <bicatali@gentoo.org> -root-3.05.04.ebuild, + -root-5.16.00.ebuild, -files/root-5.16.00-fortran.patch, + -files/root-5.16.00-xft.patch, -files/sparc-root-5.16.00.patch, + -root-5.20.00-r3.ebuild, -files/root-5.20.00-defind.patch, + -root-5.22.00-r1.ebuild, +root-5.22.00-r3.ebuild, -files/proofd.xinetd, + -files/root.xinetd: + Added a few patches, including: new upstream patch revision, gcc-4.4 + fixes, sandbox violation, passing CXXFLAGS for g4root, newer kerberos. + Removed fortran eclass, relying on toolchain eclass. Closing bug #275978, + bug #280197, bug #280869. Removed older versions, including ancient + root-3.x which was the only one ppc stable, but just too buggy on all + arches, and unsupported. Thanks to Andrew Savchenko for his contributions. + + 19 Jul 2009; Jeremy Olexa <darkside@gentoo.org> root-5.22.00-r2.ebuild: + amd64 stable, bug 275997 + + 16 Jul 2009; Christian Faulhammer <fauli@gentoo.org> + root-5.22.00-r2.ebuild: + stable x86, bug 275997 + + 16 Jul 2009; Ferris McCormick <fmccor@gentoo.org> root-5.22.00-r2.ebuild: + Sparc stable, bug #275997. + + 25 Jun 2009; Sébastien Fabbro <bicatali@gentoo.org> Manifest: + Fixed a patch for python checking, bug #275284, thanks Adam Hunt + +*root-5.22.00-r2 (24 Jun 2009) + + 24 Jun 2009; Sébastien Fabbro <bicatali@gentoo.org> + +root-5.22.00-r2.ebuild: + New patch revision (svn #29183 )from upstream including many bug fixes + + 23 Jun 2009; Jeroen Roovers <jer@gentoo.org> root-5.20.00-r3.ebuild, + +files/root-5.20.00-defind.patch: + Fix spelling error causing compile failure (bug #275205). + + 05 May 2009; Christian Faulhammer <fauli@gentoo.org> + root-5.20.00-r3.ebuild: + stable x86, bug 245875 + + 05 May 2009; Christian Faulhammer <fauli@gentoo.org> + root-5.20.00-r3.ebuild, root-5.22.00-r1.ebuild: + add dev-ruby/rubygems as dependency + + 13 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> + root-5.20.00-r3.ebuild, -root-5.22.00.ebuild, root-5.22.00-r1.ebuild: + Applied a patch from Ben Bannier to fix cint7 without ROOTSYS (bug + #263332) and allow cross-compiling (thanks jer, bug #265482) + +*root-5.22.00-r1 (06 Apr 2009) + + 06 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> + root-5.20.00-r3.ebuild, +root-5.22.00-r1.ebuild: + Fixed hicolor icons, thanks ulm, added new upstream patch and fixed doc + name for TMVA, thanks Ben Bannier + + 22 Mar 2009; Jeremy Olexa <darkside@gentoo.org> root-5.20.00-r3.ebuild: + amd64 stable, bug 245875 + + 05 Mar 2009; Ferris McCormick <fmccor@gentoo.org> root-5.20.00-r3.ebuild: + Sparc stable and done with Bug #245875. + + 20 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> files/proofd.initd, + files/rootd.initd, files/xrootd.initd, root-5.20.00-r3.ebuild, + root-5.22.00.ebuild: + Fixed postgresql configuration (bug #251590), fixed server rootd and + proofd files + + 19 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> root-5.22.00.ebuild: + Fixed ftgl dependency, closing bug #251634 + +*root-5.22.00 (19 Dec 2008) + + 19 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> +root-5.22.00.ebuild: + Version bump, moved to EAPI=2 + + 19 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> + root-5.20.00-r3.ebuild: + Forgot to apply xrootd-prop-flags patch + +*root-5.20.00-r3 (18 Dec 2008) + + 18 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> + files/root-5.20.00-as-needed.patch, -files/root-5.20.00-configure.patch, + +files/root-5.20.00-configure-paths.patch, -files/root-5.20.00-pic.patch, + +files/root-5.20.00-prop-flags.patch, + +files/root-5.20.00-xrootd-shared.patch, +files/olbd.confd, + +files/olbd.initd, +files/proofd.confd, +files/proofd.initd, + +files/proofd.xinetd, +files/root.xinetd, +files/rootd.confd, + +files/rootd.initd, +files/xrootd.confd, +files/xrootd.initd, + -root-5.20.00-r1.ebuild, -root-5.20.00-r2.ebuild, +root-5.20.00-r3.ebuild: + Major revision bump with lots of changes: + - added proofd, rootd, xrootd initd daemons + - added xinetd support (use flag) for proofd and xrootd + - added desktop files and mimetypes + - fix cfortran dependency (closing bug #250432) + - fix qt:4 dependency + - fix for bad cfortran include file + - fix for more as-needed + - now propagates all flags everywhere (should close bug #250653) + - removed a bunch of installed files useless on gentoo + - install tmva tutorials + - now installs tutorials and tests with 'examples' use flag in + /usr/share/doc/root*/examples directory + - do patches instead of sed's to propose upstream. + Removed older revisions. + + 05 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-5.20.00-ftgl_header.patch, root-5.20.00-r2.ebuild: + Fixed for older ftgl versions, bug #249885, thanks to Benjamin Bannier + +*root-5.20.00-r2 (04 Dec 2008) + + 04 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> + -files/root-5.18.00d-gcc43.patch, -files/root-5.18.00d-makefile.patch, + +files/root-5.20.00-as-needed.patch, +files/root-5.20.00-ftgl.patch, + -files/xrootd-20071116-checksymbol.patch, + -files/xrootd-20071116-gcc43.patch, -files/root-pic.patch, + -root-5.18.00d.ebuild, -root-5.20.00.ebuild, +root-5.20.00-r2.ebuild: + Fixed flags propagation, fixed dependency for qt-4, fixed for forced + as-needed (bug #248380), fixed for ftgl > 2.1.3_rc5 (bug #248789, thanks + tao@post.cz), removed unixODBC as a possible odbc implementation (bug + #242150, thanks Benjamin Bennier), removed old version with big patches + (closing bug #249009) + +*root-5.20.00-r1 (23 Sep 2008) + + 23 Sep 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-5.20.00-include-defines-file.patch, + +files/root-5.20.00-upstream.patch, +root-5.20.00-r1.ebuild: + Added a bunch of patches from Benjamin Bannier for Pythia libraries (bug + #230673), ruby name changes (bug #236072), opengl include files (bug + #236071), extra documentation (bug #236070). Also added a reflex flag to + enable users encountering bug #233698, some emacs changes thanks to ulm. + Finally, added some patches from upstream documented in + http://root.cern.ch/twiki/bin/view/ROOT/PatchesV5-20-00. + + 29 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml, + root-5.18.00d.ebuild, root-5.20.00.ebuild: + Added use flags in metadata.xml, removed pch use flag (buggy upstream), + added libiodbc as a possible implementation for ODBC. Also fixed + qt-xmlpatterns dependency. + + 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> root-5.16.00.ebuild, + root-5.18.00d.ebuild: + QA: Get rid of deprecated qt_min_version(). + + 26 Jul 2008; Carsten Lohrke <carlo@gentoo.org> root-5.18.00d.ebuild, + root-5.20.00.ebuild: + Fix broken split Qt 4.4 dependencies, cf. bug 217161 comment 11. + + 18 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> root-5.16.00.ebuild, + root-5.18.00d.ebuild, root-5.20.00.ebuild: + Now update PYTHONPATH, thanks Benjamin Bannier, bug #232124 + + 13 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> root-5.16.00.ebuild: + Added libXft dep in 5.16.00 stable version, closing bug #204725 + +*root-5.20.00 (08 Jul 2008) + + 08 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> + -files/root-5.16.00-afs.patch, -files/root-5.16.00-flags.patch, + -files/root-5.16.00-postgres.patch, +files/root-5.20.00-configure.patch, + +files/root-5.20.00-pic.patch, -files/root-xrootd-flags.patch, + -root-5.16.00-r1.ebuild, -root-5.18.00.ebuild, root-5.18.00d.ebuild, + +root-5.20.00.ebuild: + Version bump, removed some older versions. Still buggy for pre-compiled + headers (use flag pch), xrootd+afs, and could not test properly with + oracle flag + + 16 Jun 2008; Sébastien Fabbro <bicatali@gentoo.org> + files/root-5.18.00d-gcc43.patch: + Added more gcc-4.3 love to the mathcore, thanks to Derek Dolney, bug + #226013 + + 30 May 2008; Sébastien Fabbro <bicatali@gentoo.org> + files/xrootd-20071116-gcc43.patch: + Removed cvs tags in xrootd patch, closing bug #224195 + +*root-5.18.00d (29 May 2008) + + 29 May 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-5.18.00d-gcc43.patch, +files/root-5.18.00d-makefile.patch, + +files/xrootd-20071116-checksymbol.patch, + +files/xrootd-20071116-gcc43.patch, +root-5.18.00d.ebuild: + Version bump. This version is includes patches from upstream (included in + sources), some local gcc-4.3 patches and various xrootd patches. Now works + with afs on amd64. Removed cint7 flag as it is still too buggy, added + xrootd use flag, added a math flag triggering all math libraries + (mathcore, mathmore, minuit2, roofit, unuran). Much cleanup: qt-4.4 ready, + removed afterimage dependency (will be back in 5.20). This version should + be targeted for stabilization. + + 21 May 2008; Tiziano Müller <dev-zero@gentoo.org> root-3.05.04.ebuild, + root-5.16.00.ebuild, root-5.16.00-r1.ebuild, root-5.18.00.ebuild: + Changed dependency for postgresql from dev-db/postgresql to + virtual/postgresql-server + + 04 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> root-5.18.00.ebuild: + Fixed tutorial->tutorials, closing bug #216130 + + 04 Apr 2008; Jeroen Roovers <jer@gentoo.org> root-5.18.00.ebuild: + Marked ~hppa. + + 18 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> root-5.18.00.ebuild: + Check for qt4 to be built with qt3support, closing bug #206540) + +*root-5.18.00 (17 Jan 2008) + + 17 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-pic.patch, +files/root-xrootd-flags.patch, + +root-5.18.00.ebuild: + Version bump. Compiles with pic shared libs (via patches). Most earlier + patches and problems have been sent upstream. + + 10 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-5.16.00-flags.patch, +files/root-5.16.00-postgres.patch, + +files/root-5.16.00-xft.patch, root-5.16.00-r1.ebuild: + Added various patches: one to respect flags in xrootd (needed for afs), one + to properly handle -truetype without libXft (bug #204725) and last one for + postgresql (bug #203015). Added pch use flag for faster compilation with g++ + + 16 Dec 2007; Markus Dittrich <markusle@gentoo.org> + +files/root-5.16.00-afs.patch, root-5.16.00-r1.ebuild: + Added patch to fix linking problem with afs libs. Re-added afs + USE flag. + +*root-5.16.00-r1 (15 Dec 2007) + + 15 Dec 2007; Markus Dittrich <markusle@gentoo.org> + +root-5.16.00-r1.ebuild: + New revision with patch fixing compile failure under gcc-4.2 + (see bug #199591). Also removed afs support until compilation + problems are fixed. + + 09 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> -root-4.02.00.ebuild, + root-5.16.00.ebuild: + Forced opengl as a dep, since it needs it anyway, added a possible fix for + afs support, a die function for a g++ >= 4.2 and now use virtual/mysql + instead of dev-db/mysql + + 23 Nov 2007; Samuli Suominen <drac@gentoo.org> root-5.16.00.ebuild: + amd64 stable wrt #196282 + + 24 Oct 2007; Christian Faulhammer <opfer@gentoo.org> root-5.16.00.ebuild: + stable x86, bug 196282 + + 22 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> root-5.16.00.ebuild: + removed some doc install + + 19 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> root-5.16.00.ebuild: + Added a pause at the end of pkg_setup. + + 18 Oct 2007; Ferris McCormick <fmccor@gentoo.org> root-5.16.00.ebuild: + Sparc stable - Bug #196282 --- Hooray! It's been rough, but we made it. + + 17 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> root-5.16.00.ebuild: + added libXpm as a dependency. + + 16 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> + -files/sparc-root-5.14.00c.patch, +files/sparc-root-5.16.00.patch, + -files/pgsql-no-libpq-int.patch, -files/root-makefile.patch, + -root-3.10.02-r1.ebuild, -root-5.14.00b.ebuild, -root-5.14.00c.ebuild, + root-5.16.00.ebuild: + Cleaning old versions and fixing bug #190163, thanks to fmccor + +*root-5.16.00 (24 Aug 2007) + + 24 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/root-5.16.00-fortran.patch, +root-5.16.00.ebuild: + Version bump. Added cern use flag. Upstream fixed xrootd for sparc and + parallell makes. + + 22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; root-3.05.04.ebuild, + root-3.10.02-r1.ebuild, root-4.02.00.ebuild: + Drop virtual/x11 references. + +*root-5.14.00c (05 Mar 2007) + + 05 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/sparc-root-5.14.00c.patch, +root-5.14.00c.ebuild: + Version bump. Fixed parallel compiling and sparc architecture with a + patch, from bug #87305, thanks to fmmcor. + +*root-5.14.00b (05 Feb 2007) + + 05 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml, + +root-5.14.00b.ebuild: + Major version bump, with a lot of changes in ebuild. LICENSE changed. + Closing bugs #34415, #98235, #109307. Thanks for everyone in bug #109307 + for testing. + + 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> root-3.05.04.ebuild, + root-3.10.02-r1.ebuild, root-4.02.00.ebuild: + dev-db/mysql => virtual/mysql + + 02 Jul 2006; Luis Medinas <metalgod@gentoo.org> metadata.xml: + Update metadata to sci-physics. + + 02 Jul 2006; Luis Medinas <metalgod@gentoo.org> + +files/pgsql-no-libpq-int.patch, +files/root-makefile.patch, + +metadata.xml, +root-3.05.04.ebuild, +root-3.10.02-r1.ebuild, + +root-4.02.00.ebuild: + Moved from sci-libs/root to sci-physics/root. + + 23 Jun 2006; Doug Goldstein <cardoe@gentoo.org> root-3.10.02-r1.ebuild, + root-4.02.00.ebuild: + USE flag qt->qt3/qt4 change + + 03 Feb 2006; Patrick Kursawe <phosphan@gentoo.org> root-3.05.04.ebuild, + root-3.10.02-r1.ebuild, root-4.02.00.ebuild: + Porting to modular X + + 28 Jul 2005; Caleb Tennis <caleb@gentoo.org> root-3.10.02-r1.ebuild, + root-4.02.00.ebuild: + Fix qt dep per bug #100235 + + 26 Jun 2005; Olivier Fisette <ribosome@gentoo.org> + -files/root-4.00.06a-gcc-3.4.patch, -root-3.03.04-r2.ebuild, + -root-4.00.06a.ebuild: + Removed obsolete versions. + + 08 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> root-4.02.00.ebuild: + Like on sparc, this package doesn't work yet on ppc. + + 29 Mar 2005; Ferris McCormick <fmccor@gentoo.org> root-4.02.00.ebuild: + Add -sparc keyword to make explicit that as distributed, this package cannot + build on sparc. Supported architectures are hardwired in a tgz file included + within the package: xrootd/src/xrootd-20041124-0752.src.tgz, and in + unix/src/TUnixSystem.cxx, and linux:sparc is not among them. There is no + apparent for this package not to work on sparc, but as constituted, it cannot + without upstream support. + + 12 Mar 2005; Patrick Kursawe <phosphan@gentoo.org> root-4.02.00.ebuild: + No bugs for this version for about two months -> stable + +*root-4.02.00 (15 Jan 2005) + + 15 Jan 2005; Olivier Fisette <ribosome@gentoo.org> +root-4.02.00.ebuild: + New version. GCC 3.4 patch no longer required. + + 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : + Change encoding to UTF-8 for GLEP 31 compliance + +*root-3.10.02-r1 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/pgsql-no-libpq-int.patch, +files/root-4.00.06a-gcc-3.4.patch, + +files/root-makefile.patch, +root-3.03.04-r2.ebuild, +root-3.05.04.ebuild, + +root-3.10.02-r1.ebuild, +root-4.00.06a.ebuild: + Moved from dev-libs/root to sci-libs/root. + +*root-4.00.06a (02 Jul 2004) + + 02 Jul 2004; Patrick Kursawe <phosphan@gentoo.org> metadata.xml, + root-4.00.06a.ebuild, files/root-4.00.06a-gcc-3.4.patch: + Version bump, see bug #55719 - gcc 3.4 patch extracted from "root" CVS. + +*root-3.10.02-r1 (15 Jun 2004) + + 15 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02-r1.ebuild, + root-3.10.02.ebuild: + Shared libs were not found, see bug #53095 + + 07 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02.ebuild: + According to user report (forums/slackerman) it works for amd64. + +*root-3.10.02 (20 Apr 2004) + + 20 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02.ebuild: + Version bump, see bug #34412 + + 06 Oct 2003; Heinrich Wendel <lanius@gentoo.org> root-3.05.04.ebuild: + stable bump #29947 + + 12 Jun 2003; Seemant Kulleen <seemant@gentoo.org> root-3.03.04-r2.ebuild: + xfree provides xpm + +*root-3.05.04 (25 Apr 2003) + + 25 Feb 2003; Luca Barbato <kain@kain.org> root-3.05.04.ebuild : + New version, as suggested by Dmitry Kustov <dimok77@hotmail.com> + +*root-3.03.04-r2 (22 Feb 2003) + + 22 Feb 2003; Bryon Roche <kain@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 : + Fixed header include issues with the PostgreSQL api, as well as configuration/compilation issues. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*root-3.03.04-r1 (11 Apr 2002) + + 24 Oct 2002; J.Alberto Suárez López <bass@gentoo.org> root-3.03.04-r1.ebuild + Typo error in the ebuild appear 'econ' not 'econf'. + + 11 Apr 2002; G.Bevin <gbevin@gentoo.org> root-3.03.04-r1.ebuild + files/digest-root-3.03.04-r1 : + + Added env entry for the libs. + Removed rpath switch from configure since it created a segfaulting root + executable. + +*root-3.03.04 (11 Apr 2002) + + 11 Apr 2002; G.Bevin <gbevin@gentoo.org> root-3.03.04.ebuild + files/digest-root-3.03.04 : + + Initial release diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest new file mode 100644 index 000000000..083438eb6 --- /dev/null +++ b/sci-physics/root/Manifest @@ -0,0 +1,9 @@ +DIST RooFit_Users_Manual_2.91-33.pdf 1330062 SHA256 101c4e4c41962238fcabf1caa86cafc51241a1800594491b2e62ef8b565a5646 SHA512 732d7dea3541b51e5f0b9b5b70dae57e1bdbb2504c4222d5e5095ec0f9b67307011c1f31c2c95be419b53dd8426f52f62f6c9370084208176a2ed3d7f25d783b WHIRLPOOL 033897bef4bdb13246a81ea6749f7895e6c4d639752e932130234ad9153bb399a4e5d416237850da27f139d3cccc53d9adb7a077abf20d257ce057157d6c3696 +DIST TMVAUsersGuide-v4.03.pdf 3913533 SHA256 0cdbb4a2d19eb7a86e2911cfa73a905932e862d6c94be10b7662a9355b0241af SHA512 d8bb2ce35ef32c4877059898f56513db0b1057924e21935a3d3a6f114748e167984c43fd2ec7e54197fccff875540543968fea9a8e75bf63f5f13521724a7ddb WHIRLPOOL 0a3e2e61e8e32f3a22757178adf033f9fbb89014aecd4df7f8bd49677d772bb3ad2c0f5526259611879f6bb20df647c01e23f53ade483d7a3e2242f8aee6c6aa +DIST TMVAUsersGuide-v4.pdf 2355827 RMD160 0624a6ed7e006581eacdaa69e82bbdca91aa42a9 SHA1 98016f0ccfa6c54234e22b46032bb0b2f5d7ac20 SHA256 bbc6563fd14a6a4a88efca55fa75e74d9b5c2a9f5d3044239f3f83dc2967ad62 +DIST Users_Guide_5_26.pdf 9914765 SHA256 d0887800de7ffe7d6c0957891d44a4b34bf9d0eeb3da7e34b735ef998770bf39 SHA512 c2d428c9bb301af68626ffdd404acfde792b3c9539f1c85a5c467651074c67da861688c8ab61a0045cb5b947a7173633c64125c3a722360cc649f877bec888be WHIRLPOOL 59d9b07250dddd6d71912d24808711635b3b3845413b0f1f91e98b86843d0d295c097485f6e9258bb591195b4f077cb928686658f45337a9f72c5071ccc0003b +DIST root-5.26.00e-patches.tar.bz2 7102 RMD160 d513c643ec8acdbe293e7ca159f59c765c52a2ad SHA1 ca8a958186fc8a77c04348f61c97e2d836493026 SHA256 f29bf8251b8c7e1809993c4f5ae0f990d5c6e6721e77eb62107d27fa55b9bf47 +DIST root-5.28.00b-xrootd-prop-flags.patch.bz2 3894 SHA256 093b1acd8336f5bb723802455296d8db884a2909a4e483cce637b8191039b4cd SHA512 e4544dd548a1599745bd75a9a069418c7eb8b09520d681e13d1e36140e29024b97da812f8fa6d8bf647c6b715a9ce14550165f2cd7cdec293e496c6808d8e6a3 WHIRLPOOL ddf5c736b6aab2cf1d6d0f5d850ec6ebdefb7dd91fcac3e6b5eef272ed684c0556d00c1161a8059c9a964604b13a2d875a24fcf14e7ab8225f56801a4664ae47 +DIST root_v5.26.00e.source.tar.gz 28922785 RMD160 692312a1984279255e32c96a0a79b974ff2e2971 SHA1 5a4b7e1b759dfef0dd218491bbe74ca376fc8c07 SHA256 7f2604954775653825b9897da131278c9b349f12d77b1fc087004c1b838f4a80 +DIST root_v5.28.00d.source.tar.gz 31145040 SHA256 2e485140cd786725ded68296f0629c7e1e498a167d80e8c812fe28ceca04ff60 SHA512 cb3a24b0df6ae762a67a3990ebe100e5e8f828c35f83b89445e4fd02d234d7a1a4cc7cd466c2638640d13374d2e81b7d38c0a98ab1d4e1d01e0d235eb63faa54 WHIRLPOOL 1368cacc5132aadbf7fbe1818ec188235ecdf5a3ede1e0a8a161a811e613c2e47256633a3fb654f700f597d3e58b116c6f916d6dca477875ad90f609da4ccad2 +DIST root_v5.32.00.source.tar.gz 55355548 SHA256 9d63e4d7f1bb5454bc7b556abad314496edbd6ee669c6de7ef5d79090ec2d5f9 SHA512 899ea01dc599b9f362b8820960d05696195340d1361a4f6a167a877404fbae9235b9ff082777aa6c7c7161b329ee3ac771600021ae1481a0d03d5894ad01bc1d WHIRLPOOL 6a9391f011646fb8218dab1e523009e4b6632c8b44cb5e4ef99dfe5810f2d2d2158eaadf3071bb4dfed6598a754b9373d54e43c3d51c0a92716018492bd4a588 diff --git a/sci-physics/root/files/olbd.confd b/sci-physics/root/files/olbd.confd new file mode 100644 index 000000000..848f4d7ba --- /dev/null +++ b/sci-physics/root/files/olbd.confd @@ -0,0 +1,9 @@ +# conf.d file for olbd daemon + +# User to run as (default is `xrootd') +OLBD_USER="root" + +# +# Please refer to the olbd(1) man(1) page for more +# information on command line parameters. +OLBD_OPTS="" diff --git a/sci-physics/root/files/olbd.initd b/sci-physics/root/files/olbd.initd new file mode 100644 index 000000000..179330040 --- /dev/null +++ b/sci-physics/root/files/olbd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/olbd.initd,v 1.1 2008/12/18 18:10:18 bicatali Exp $ + +depend() { + need net + use dns logger + provide root-file-server +} + +start() { + ebegin "Starting ROOT open load balancer server" + start-stop-daemon --start --quiet --user=${OLBD_USER} \ + --make-pidfile --pidfile=/var/run/olbd.pid \ + --exec /usr/bin/olbd --background -- ${OLBD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ROOT open load balancer server" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/olbd.pid \ + --exec /usr/bin/olbd + eend $? +} diff --git a/sci-physics/root/files/proofd.confd b/sci-physics/root/files/proofd.confd new file mode 100644 index 000000000..81720a7eb --- /dev/null +++ b/sci-physics/root/files/proofd.confd @@ -0,0 +1,12 @@ +# conf.d file for proof daemon +# +# Please refer to the proofd(1) man(1) page for more information on +# command line parameters. +# +PROOFD_OPTS= + +# Specify your base of your PROOF directory here. If left blank, it +# will use the system default (e.g., /usr/share/root/proof). +# Note, however, that ROOT recommends that this directory is shared (via +# NFS or similar) among all the nodes of the cluster. +PROOF_DIR= diff --git a/sci-physics/root/files/proofd.initd b/sci-physics/root/files/proofd.initd new file mode 100644 index 000000000..7fc275a45 --- /dev/null +++ b/sci-physics/root/files/proofd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/proofd.initd,v 1.3 2012/01/21 19:23:26 bicatali Exp $ + +depend() { + need root-file-server + use logger +} + +start() { + ebegin "Starting parallel ROOT facility server" + start-stop-daemon --start --quiet \ + --pidfile /var/run/proofd.pid \ + --exec /usr/bin/proofd -- ${PROOFD_OPTS} ${PROOF_DIR} + pidof /usr/bin/proofd > /var/run/proofd.pid + eend $? +} + +stop() { + ebegin "Stopping parallel ROOT facility server" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/proofd.pid \ + --exec /usr/bin/proofd + eend $? +} 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 new file mode 100644 index 000000000..dc6d8a018 --- /dev/null +++ b/sci-physics/root/files/root-5.26.00-make-3.82.patch @@ -0,0 +1,36 @@ +http://root.cern.ch/viewcvs?view=rev&revision=35096 +https://savannah.cern.ch/bugs/?func=detailitem&item_id=72166 + +--- root-5.26.00d/Makefile ++++ root-5.26.00d/Makefile +@@ -544,6 +544,30 @@ + .PRECIOUS: include/%.h + + # special rules (need to be defined before generic ones) ++cint/cint/lib/dll_stl/G__%.o: cint/cint/lib/dll_stl/G__%.cxx ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \ ++ $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \ ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $< ++ $(CXX) $(NOOPT) $(CXXFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $< ++ ++cint/cint/lib/dll_stl/G__c_%.o: cint/cint/lib/dll_stl/G__c_%.c ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \ ++ $(CFLAGS) $(DICTFLAGS) -I$(CINTDIR)/lib/prec_stl \ ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $< ++ $(CC) $(NOOPT) $(CFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $< ++ ++cint/cint/lib/G__%.o: cint/cint/lib/G__%.cxx ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \ ++ $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \ ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $< ++ $(CXX) $(NOOPT) $(CXXFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $< ++ ++cint/cint/lib/G__c_%.o: cint/cint/lib/G__c_%.c ++ $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \ ++ $(CFLAGS) $(DICTFLAGS) -I$(CINTDIR)/lib/prec_stl \ ++ -I$(CINTDIR)/stl -I$(CINTDIR)/inc -- $< ++ $(CC) $(NOOPT) $(CFLAGS) $(DICTFLAGS) -I. -I$(CINTDIR)/inc $(CXXOUT)$@ -c $< ++ + G__%.o: G__%.cxx + $(MAKEDEP) -R -f$(patsubst %.o,%.d,$@) -Y -w 1000 -- \ + $(CXXFLAGS) $(DICTFLAGS) -D__cplusplus -I$(CINTDIR)/lib/prec_stl \ diff --git a/sci-physics/root/files/root-5.26.00e-libpng15.patch b/sci-physics/root/files/root-5.26.00e-libpng15.patch new file mode 100644 index 000000000..91ed9c428 --- /dev/null +++ b/sci-physics/root/files/root-5.26.00e-libpng15.patch @@ -0,0 +1,33 @@ +This patch is a copy from media-libs/libafterimage. + +--- graf2d/asimage/src/libAfterImage/export.c ++++ graf2d/asimage/src/libAfterImage/export.c +@@ -496,7 +496,7 @@ + png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL ); + if ( png_ptr != NULL ) + if( (info_ptr = png_create_info_struct(png_ptr)) != NULL ) +- if( setjmp(png_ptr->jmpbuf) ) ++ if( setjmp(png_jmpbuf(png_ptr)) ) + { + png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr); + info_ptr = NULL ; +--- graf2d/asimage/src/libAfterImage/import.c ++++ graf2d/asimage/src/libAfterImage/import.c +@@ -1251,7 +1251,7 @@ + * the normal method of doing things with libpng). REQUIRED unless you + * set up your own error handlers in the png_create_read_struct() earlier. + */ +- if ( !setjmp (png_ptr->jmpbuf)) ++ if ( !setjmp (png_jmpbuf(png_ptr))) + { + ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ; + +@@ -1468,7 +1468,7 @@ + + static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length) + { +- ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr; ++ ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr); + memcpy(data, buf->buffer, length); + buf->buffer += length; + } diff --git a/sci-physics/root/files/root-5.28.00b-asneeded.patch b/sci-physics/root/files/root-5.28.00b-asneeded.patch new file mode 100644 index 000000000..b845247e1 --- /dev/null +++ b/sci-physics/root/files/root-5.28.00b-asneeded.patch @@ -0,0 +1,20 @@ +--- root.orig/configure 2010-12-20 07:17:54.000000000 +0000 ++++ root/configure 2010-12-20 07:16:05.000000000 +0000 +@@ -709,7 +709,7 @@ + cat <<EOF > conftest.mk + include ${ac_srcdir}/config/Makefile.${arch} + conftest: conftest.c +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@ ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@ + + conftest.c: + echo "int main() { return 0; }" > \$@ +@@ -723,7 +723,7 @@ + cat <<EOF > conftest.mk + include ${ac_srcdir}/config/Makefile.${arch} + conftest:conftest.c +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@ ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@ + + conftest.c: + echo "extern int $linksymbol (); " > \$@ diff --git a/sci-physics/root/files/root-5.28.00b-glibc212.patch b/sci-physics/root/files/root-5.28.00b-glibc212.patch new file mode 100644 index 000000000..a36543139 --- /dev/null +++ b/sci-physics/root/files/root-5.28.00b-glibc212.patch @@ -0,0 +1,11 @@ +--- root.orig/net/auth/src/TAFS.cxx 2010-09-14 03:22:22.647915854 +0400 ++++ root/net/auth/src/TAFS.cxx 2010-09-14 03:22:39.034599899 +0400 +@@ -11,6 +11,7 @@ + + #ifndef WIN32 + # include <unistd.h> ++# include <sys/stat.h> + #else + # define ssize_t int + # include <io.h> + 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 new file mode 100644 index 000000000..7029bf169 --- /dev/null +++ b/sci-physics/root/files/root-5.28.00b-nobyte-compile.patch @@ -0,0 +1,138 @@ +diff -Naur root.orig/Makefile root/Makefile +--- root.orig/Makefile 2010-12-17 22:48:40.577775091 +0300 ++++ root/Makefile 2010-12-17 22:49:27.902497903 +0300 +@@ -1148,10 +1148,7 @@ + if test "x$(RFLX_GRFLXPY)" != "x"; then \ + rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \ + fi; \ +- if test "x$(RFLX_GRFLXPYC)" != "x"; then \ +- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \ +- fi; \ +- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \ ++ if test "x$(RFLX_GRFLXPY)" != "x"; then \ + dir=$(RFLX_GRFLXDD:lib/=); \ + while test "x$${dir}" != "x" && \ + test -d $(DESTDIR)$(LIBDIR)/$${dir} && \ +diff -Naur root.orig/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk +--- root.orig/bindings/pyroot/Module.mk 2010-12-17 22:48:39.941179413 +0300 ++++ root/bindings/pyroot/Module.mk 2010-12-17 22:49:27.899164943 +0300 +@@ -48,8 +48,6 @@ + ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS)) + $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@ + endif +-ROOTPYC := $(ROOTPY:.py=.pyc) +-ROOTPYO := $(ROOTPY:.py=.pyo) + + # used in the main Makefile + ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH)) +@@ -68,10 +66,8 @@ + include/%.h: $(PYROOTDIRI)/%.h + cp $< $@ + +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )' + +-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \ ++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \ + $(ROOTLIBSDEP) $(PYTHONLIBDEP) + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ + "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \ +@@ -113,7 +109,7 @@ + + distclean-$(MODNAME): clean-$(MODNAME) + @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \ +- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \ ++ $(ROOTPY) $(PYROOTMAP) \ + $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64) + + distclean:: distclean-$(MODNAME) +diff -Naur root.orig/build/package/debian/rules root/build/package/debian/rules +--- root.orig/build/package/debian/rules 2010-12-17 22:48:40.197817461 +0300 ++++ root/build/package/debian/rules 2010-12-17 22:49:27.902497903 +0300 +@@ -623,10 +623,6 @@ + -X$(SYSCONFDIR)/root/system.rootauthrc \ + -X$(SYSCONFDIR)/root/system.rootdaemonrc \ + -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \ +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \ +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \ +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \ +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo + # $(foreach i, \ + # $(wildcard $(DTMP)/$(PREFIX)/lib/root/lib*.so.$(SOVERS)), \ + # -X$(i:$(DTMP)/%=%) ) +diff -Naur root.orig/cint/cintex/Module.mk root/cint/cintex/Module.mk +--- root.orig/cint/cintex/Module.mk 2010-12-17 22:48:40.057833071 +0300 ++++ root/cint/cintex/Module.mk 2010-12-17 22:49:27.902497903 +0300 +@@ -31,10 +31,6 @@ + CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS)) + $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@ + endif +-ifneq ($(BUILDPYTHON),no) +-CINTEXPYC := $(CINTEXPY:.py=.pyc) +-CINTEXPYO := $(CINTEXPY:.py=.pyo) +-endif + + # used in the main Makefile + ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH)) +@@ -86,8 +82,6 @@ + fi) + cp $< $@ + +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )' + + $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \ + $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP) +diff -Naur root.orig/cint/reflex/Module.mk root/cint/reflex/Module.mk +--- root.orig/cint/reflex/Module.mk 2010-12-17 22:48:40.037835301 +0300 ++++ root/cint/reflex/Module.mk 2010-12-17 22:51:36.871451359 +0300 +@@ -48,9 +48,6 @@ + RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py) + RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS)) + RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY) +-ifneq ($(BUILDPYTHON),no) +-RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY)) +-endif + + RFLX_LIBDIR = $(LIBDIR) + +@@ -92,7 +89,7 @@ + + ALLEXECS += $(RFLX_GENMAPX) + +-POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY) ++POSTBIN += $(RFLX_GRFLXPY) + + ##### local rules ##### + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \ +@@ -122,8 +119,6 @@ + mkdir -p lib/python/genreflex; fi ) + cp $< $@ + +-$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py +- @python -c 'import py_compile; py_compile.compile( "$<" )' + + $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap + +@@ -149,7 +144,7 @@ + $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \ + -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL) + +-all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY) ++all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY) + + clean-genreflex: + @rm -rf lib/python/genreflex +diff -Naur root.orig/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt +--- root.orig/cint/reflex/python/CMakeLists.txt 2010-12-17 22:48:40.037835301 +0300 ++++ root/cint/reflex/python/CMakeLists.txt 2010-12-17 22:49:27.902497903 +0300 +@@ -15,7 +15,7 @@ + ##################### sources #################### + + FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py) +-SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE) ++SET(GENREFLEX_SCRIPT PARENT_SCOPE) + + ##################### gccxmlpath #################### + + 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 new file mode 100644 index 000000000..732431943 --- /dev/null +++ b/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch @@ -0,0 +1,13 @@ +diff -Naur root.orig/config/Makefile.in root/config/Makefile.in +--- root.orig/config/Makefile.in 2010-12-14 17:20:26.000000000 +0300 ++++ root/config/Makefile.in 2010-12-17 22:33:34.902161458 +0300 +@@ -27,7 +27,7 @@ + + EXTRA_CFLAGS := -Iinclude @cflags@ + EXTRA_CXXFLAGS := -Iinclude @cflags@ +-EXTRA_LDFLAGS := @ldflags@ ++EXTRA_LDFLAGS := @ldflags@ $(LDFLAGS) + WINRTDEBUG := @winrtdebug@ + + GLBPATCHFLAGS := @glbpatchcflags@ + diff --git a/sci-physics/root/files/root-5.28.00b-unuran.patch b/sci-physics/root/files/root-5.28.00b-unuran.patch new file mode 100644 index 000000000..76422daed --- /dev/null +++ b/sci-physics/root/files/root-5.28.00b-unuran.patch @@ -0,0 +1,39 @@ +diff -ur root-trunk.orig/math/unuran/Module.mk root-trunk/math/unuran/Module.mk +--- root.orig/math/unuran/Module.mk 2010-11-25 20:41:32.000000000 +0100 ++++ root/math/unuran/Module.mk 2010-11-25 20:51:47.190704977 +0100 +@@ -20,7 +20,7 @@ + UNURANETAG := $(call stripsrc,$(UNURANDIRS)/headers.d) + UNRCFG := $(call stripsrc,$(UNURANDIRS)/$(UNRVERS)/config.h) + +-UNRTARCONTENT:=$(subst $(UNRVERS),$(UNRDIRS),$(shell mkdir -p $(UNRDIR); cd $(UNRDIR); gunzip -c $(UNRSRCS) | tar tf -)) ++UNRTARCONTENT:= + UNRS := $(filter %.c, \ + $(filter $(UNRDIRS)/src/utils/%,$(UNRTARCONTENT)) \ + $(filter $(UNRDIRS)/src/methods/%,$(UNRTARCONTENT)) \ +@@ -69,10 +69,9 @@ + ##### local rules ##### + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) + +-include/%.h: $(UNURANDIRI)/%.h $(UNURANETAG) ++include/%.h: $(UNURANDIRI)/%.h + cp $< $@ + +-$(UNURANDEP): $(UNRCFG) + $(UNRS): $(UNURANETAG) + + $(UNURANETAG): $(UNRSRCS) +@@ -125,12 +124,12 @@ + GNUMAKE=$(MAKE) ./configure CC="$$ACC" \ + CFLAGS="$$ACFLAGS"); + +-$(UNURANLIB): $(UNRCFG) $(UNRO) $(UNURANO) $(UNURANDO) $(ORDER_) \ ++$(UNURANLIB): $(UNURANO) $(UNURANDO) $(ORDER_) \ + $(MAINLIBS) $(UNURANLIBDEP) + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ + "$(SOFLAGS)" libUnuran.$(SOEXT) $@ \ + "$(UNURANO) $(UNURANDO)" \ +- "$(UNURANLIBEXTRA) $(UNRO)" ++ "$(UNURANLIBEXTRA) -lunuran" + + $(UNURANDS): $(UNRINIT) $(UNURANDH1) $(UNURANL) $(ROOTCINTTMPDEP) + $(MAKEDIR) diff --git a/sci-physics/root/files/root-5.32.00-afs.patch b/sci-physics/root/files/root-5.32.00-afs.patch new file mode 100644 index 000000000..2bf31798e --- /dev/null +++ b/sci-physics/root/files/root-5.32.00-afs.patch @@ -0,0 +1,33 @@ +--- root/net/auth/src/TAFS.cxx.orig 2011-12-04 00:56:29.405007770 +0400 ++++ root/net/auth/src/TAFS.cxx 2011-12-04 00:56:35.534709259 +0400 +@@ -138,7 +138,7 @@ + } else { + if (isatty(0) != 0 && isatty(1) != 0) { + Gl_config("noecho", 1); +- pw = Getline((char *) prompt.Data()); ++ pw = const_cast<char *>( Getline((char *) prompt.Data()) ); + Gl_config("noecho", 0); + } else { + Warning("TAFS", "not tty: cannot prompt for passwd: failure"); +--- root/core/clib/src/strlcat.c.orig 2011-12-04 01:49:26.495179487 +0400 ++++ root/core/clib/src/strlcat.c 2011-12-04 01:50:41.407524763 +0400 +@@ -38,7 +38,7 @@ + * Returns strlen(src) + MIN(siz, strlen(initial dst)). + * If retval >= siz, truncation occurred. + */ +-size_t ++size_t __attribute__((weak)) + strlcat(char *dst, const char *src, size_t siz) + { + register char *d = dst; +--- root/core/clib/src/strlcpy.c.orig 2011-12-04 01:49:34.329797251 +0400 ++++ root/core/clib/src/strlcpy.c 2011-12-04 01:50:49.051151843 +0400 +@@ -36,7 +36,7 @@ + * will be copied. Always NUL terminates (unless siz == 0). + * Returns strlen(src); if retval >= siz, truncation occurred. + */ +-size_t ++size_t __attribute__((weak)) + strlcpy(char *dst, const char *src, size_t siz) + { + register char *d = dst; diff --git a/sci-physics/root/files/root-5.32.00-cfitsio.patch b/sci-physics/root/files/root-5.32.00-cfitsio.patch new file mode 100644 index 000000000..853c3f39f --- /dev/null +++ b/sci-physics/root/files/root-5.32.00-cfitsio.patch @@ -0,0 +1,13 @@ +--- configure.orig 2012-01-19 23:44:44.127607638 +0100 ++++ configure 2012-01-20 00:19:20.420652913 +0100 +@@ -3435,9 +3435,7 @@ + cfitsioinc=$found_hdr + cfitsioincdir=$found_dir + +- # At this time, libcfitsio.a should always be prefered over .so, +- # to avoid forcing users to install cfitsio. +- check_library "libcfitsio cfitsio" "no" "$cfitsiolibdir" \ ++ check_library "libcfitsio cfitsio" "yes" "$cfitsiolibdir" \ + $CFITSIO ${CFITSIO:+$CFITSIO/lib} ${CFITSIO:+$CFITSIO/.libs} \ + ${finkdir:+$finkdir/lib} \ + /usr/local/lib /usr/lib /opt/cfitsio/lib 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 new file mode 100644 index 000000000..179e5790c --- /dev/null +++ b/sci-physics/root/files/root-5.32.00-nobyte-compile.patch @@ -0,0 +1,137 @@ +diff -Naur root.as-needed/Makefile root/Makefile +--- root.as-needed/Makefile 2011-07-10 10:42:49.758191296 +0400 ++++ root/Makefile 2011-07-10 10:43:21.493339703 +0400 +@@ -1167,10 +1167,7 @@ + if test "x$(RFLX_GRFLXPY)" != "x"; then \ + rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \ + fi; \ +- if test "x$(RFLX_GRFLXPYC)" != "x"; then \ +- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \ +- fi; \ +- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \ ++ if test "x$(RFLX_GRFLXPY)" != "x"; then \ + dir=$(RFLX_GRFLXDD:lib/=); \ + while test "x$${dir}" != "x" && \ + test -d $(DESTDIR)$(LIBDIR)/$${dir} && \ +diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk +--- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400 ++++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400 +@@ -48,8 +48,6 @@ + ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS)) + $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@ + endif +-ROOTPYC := $(ROOTPY:.py=.pyc) +-ROOTPYO := $(ROOTPY:.py=.pyo) + + # used in the main Makefile + ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH)) +@@ -68,10 +66,8 @@ + include/%.h: $(PYROOTDIRI)/%.h + cp $< $@ + +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )' + +-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \ ++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \ + $(ROOTLIBSDEP) $(PYTHONLIBDEP) + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ + "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \ +@@ -113,7 +109,7 @@ + + distclean-$(MODNAME): clean-$(MODNAME) + @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \ +- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \ ++ $(ROOTPY) $(PYROOTMAP) \ + $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64) + + distclean:: distclean-$(MODNAME) +diff -Naur root.as-needed/build/package/debian/rules root/build/package/debian/rules +--- root.as-needed/build/package/debian/rules 2011-07-10 10:42:49.241549346 +0400 ++++ root/build/package/debian/rules 2011-07-10 10:48:06.989670589 +0400 +@@ -691,10 +691,6 @@ + -X$(SYSCONFDIR)/root/system.rootauthrc \ + -X$(SYSCONFDIR)/root/system.rootdaemonrc \ + -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \ +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \ +- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \ +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \ +- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo \ + -X$(PREFIX)/lib/root/$(SOVERS)/cint7 \ + -X$(PREFIX)/include/root/Minuit2 + # $(foreach i, \ +diff -Naur root.as-needed/cint/cintex/Module.mk root/cint/cintex/Module.mk +--- root.as-needed/cint/cintex/Module.mk 2011-07-10 10:42:49.104889217 +0400 ++++ root/cint/cintex/Module.mk 2011-07-10 10:43:21.496672876 +0400 +@@ -31,10 +31,6 @@ + CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS)) + $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@ + endif +-ifneq ($(BUILDPYTHON),no) +-CINTEXPYC := $(CINTEXPY:.py=.pyc) +-CINTEXPYO := $(CINTEXPY:.py=.pyo) +-endif + + # used in the main Makefile + ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH)) +@@ -86,8 +82,6 @@ + fi) + cp $< $@ + +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )' + + $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \ + $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP) +diff -Naur root.as-needed/cint/reflex/Module.mk root/cint/reflex/Module.mk +--- root.as-needed/cint/reflex/Module.mk 2011-07-10 10:42:49.074890651 +0400 ++++ root/cint/reflex/Module.mk 2011-07-10 10:43:21.496672876 +0400 +@@ -48,9 +48,6 @@ + RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py) + RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS)) + RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY) +-ifneq ($(BUILDPYTHON),no) +-RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY)) +-endif + + RFLX_LIBDIR = $(LIBDIR) + +@@ -92,7 +89,7 @@ + + ALLEXECS += $(RFLX_GENMAPX) + +-POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY) ++POSTBIN += $(RFLX_GRFLXPY) + + ##### local rules ##### + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \ +@@ -122,8 +119,6 @@ + mkdir -p lib/python/genreflex; fi ) + cp $< $@ + +-$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py +- @python -c 'import py_compile; py_compile.compile( "$<" )' + + $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap + +@@ -149,7 +144,7 @@ + $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \ + -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL) + +-all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY) ++all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY) + + clean-genreflex: + @rm -rf lib/python/genreflex +diff -Naur root.as-needed/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt +--- root.as-needed/cint/reflex/python/CMakeLists.txt 2011-07-10 10:42:49.074890651 +0400 ++++ root/cint/reflex/python/CMakeLists.txt 2011-07-10 10:43:21.496672876 +0400 +@@ -15,7 +15,7 @@ + ##################### sources #################### + + FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py) +-SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE) ++SET(GENREFLEX_SCRIPT PARENT_SCOPE) + + ##################### gccxmlpath #################### + diff --git a/sci-physics/root/files/rootd.confd b/sci-physics/root/files/rootd.confd new file mode 100644 index 000000000..7516b8c9b --- /dev/null +++ b/sci-physics/root/files/rootd.confd @@ -0,0 +1,8 @@ +# conf.d file for root daemon + +# User to run as (default is `rootd') +ROOTD_USER="rootd" + +# Please refer to the rootd(1) man(1) page for more information on +# command line parameters. +ROOTD_OPTS="" diff --git a/sci-physics/root/files/rootd.initd b/sci-physics/root/files/rootd.initd new file mode 100644 index 000000000..14c0d8e1c --- /dev/null +++ b/sci-physics/root/files/rootd.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/rootd.initd,v 1.3 2012/01/21 19:23:26 bicatali Exp $ + +depend() { + need net + use logger + provide root-file-server +} + +start() { + ebegin "Starting ROOT file server" + pid=$(start-stop-daemon --start --quiet --user ${ROOTD_USER} \ + --pidfile /var/run/rootd.pid \ + --exec /usr/bin/rootd -- ${ROOTD_OPTS}) + retval=$? + echo ${ROOTD_PID} > /var/run/rootd.pid + eend ${retval} +} + +stop() { + ebegin "Stopping ROOT file server" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/rootd.pid \ + --exec /usr/bin/rootd + eend $? +} diff --git a/sci-physics/root/files/xrootd.confd b/sci-physics/root/files/xrootd.confd new file mode 100644 index 000000000..e725cd1e7 --- /dev/null +++ b/sci-physics/root/files/xrootd.confd @@ -0,0 +1,8 @@ +# conf.d file for xroot daemon + +# User to run as (default is `root') +XROOTD_USER="root" + +# Please refer to the xrootd(1) man(1) page for more +# information on command line parameters. +XROOTD_OPTS="" diff --git a/sci-physics/root/files/xrootd.initd b/sci-physics/root/files/xrootd.initd new file mode 100644 index 000000000..28dd8a511 --- /dev/null +++ b/sci-physics/root/files/xrootd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/files/xrootd.initd,v 1.2 2009/01/20 18:04:09 bicatali Exp $ + +depend() { + need net + use logger dns + provide root-file-server +} + +start() { + ebegin "Starting extended ROOTD file server" + start-stop-daemon --start --quiet --user ${XROOTD_USER} \ + --make-pidfile --pidfile /var/run/xrootd.pid \ + --exec /usr/bin/xrootd --background -- ${XROOTD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping extended ROOTD file server" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/xrootd.pid \ + --exec /usr/bin/xrootd + eend $? +} diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml new file mode 100644 index 000000000..aaec26ab1 --- /dev/null +++ b/sci-physics/root/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>bircoph@gmail.com</email> + <name>Andrew Savchenko</name> + <description>Maintainer. Assign bugs to him</description> +</maintainer> +<herd>sci-physics</herd> +<longdescription lang="en"> + ROOT Object Oriented Technologies is an object oriented data + analysis framework written in C++ by the CERN. Widely used in + high energy physics, but also in other data analysis applications. It + contains the CINT C/C++ interpreter and many classes such as + statistics, serialization, optimization, linear algebra, graphics, + GUI toolkit, and a complete visualization framework. +</longdescription> +<use> + <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag> + <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag> + <flag name="geant4">Support for <pkg>sci-physics/geant</pkg> version 4</flag> + <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag> + <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag> + <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag> + <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag> + <flag name="reflex">Build the reflection database for the C++ interpreter</flag> + <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag> +</use> +</pkgmetadata> diff --git a/sci-physics/root/root-5.26.00e-r1.ebuild b/sci-physics/root/root-5.26.00e-r1.ebuild new file mode 100644 index 000000000..777617b8f --- /dev/null +++ b/sci-physics/root/root-5.26.00e-r1.ebuild @@ -0,0 +1,316 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=3 + +PYTHON_DEPEND="python? 2" + +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs + +DOC_PV=$(get_major_version)_$(get_version_component_range 2) +ROOFIT_DOC_PV=2.91-33 +TMVA_DOC_PV=4 + +DESCRIPTION="C++ data analysis framework and interpreter from CERN" +HOMEPAGE="http://root.cern.ch/" +SRC_URI=" + ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz + mirror://gentoo/${P}-patches.tar.bz2 + doc? ( + ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf + ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="amd64 x86" +IUSE="afs clarens doc emacs examples fftw geant4 graphviz kerberos ldap + +math mysql odbc +opengl openmp oracle postgres pythia6 pythia8 python + +reflex ruby qt4 ssl xft xml xinetd xrootd" + +# libafterimage ignored, to check every version +# see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944 +# || ( >=media-libs/libafterimage-1.18 x11-wm/afterstep ) +CDEPEND=" + >=dev-lang/cfortran-4.4-r2 + dev-libs/libpcre + >=media-libs/ftgl-2.1.3_rc5 + media-libs/giflib + media-libs/glew + media-libs/libpng:0 + media-libs/tiff:0 + sys-apps/shadow + virtual/jpeg + x11-libs/libXft + x11-libs/libXpm + afs? ( >=net-fs/openafs-1.4.7 ) + clarens? ( dev-libs/xmlrpc-c ) + emacs? ( virtual/emacs ) + fftw? ( sci-libs/fftw:3.0 ) + geant4? ( sci-physics/geant:4 ) + graphviz? ( media-gfx/graphviz ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + math? ( sci-libs/gsl ) + mysql? ( virtual/mysql ) + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) + opengl? ( virtual/opengl virtual/glu ) + oracle? ( dev-db/oracle-instantclient-basic ) + postgres? ( dev-db/postgresql-base ) + pythia6? ( sci-physics/pythia:6 ) + pythia8? ( sci-physics/pythia:8 ) + qt4? ( + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + x11-libs/qt-qt3support:4 + x11-libs/qt-xmlpatterns:4 ) + ruby? ( + dev-lang/ruby + dev-ruby/rubygems ) + ssl? ( dev-libs/openssl ) + xml? ( dev-libs/libxml2:2 )" + +DEPEND="${CDEPEND} + dev-util/pkgconfig" + +RDEPEND=" + virtual/fortran + ${CDEPEND} + xinetd? ( sys-apps/xinetd )" + +S="${WORKDIR}/${PN}" + +pkg_setup() { + fortran-2_pkg_setup + echo + elog "You may want to build ROOT with these non Gentoo extra packages:" + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," + elog "Monalisa, MaxDB/SapDB, SRP." + elog "You can use the env variable EXTRA_ECONF variable for this." + elog "For example, for SRP, you would set: " + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" + echo + enewgroup rootd + enewuser rootd -1 -1 /var/spool/rootd rootd + + if use openmp && \ + [[ $(tc-getCC)$ == *gcc* ]] && \ + ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || \ + ! has_version sys-devel/gcc[openmp] ); then + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2" + ewarn "If you want to build this package with OpenMP, abort now," + ewarn "and set CC to an OpenMP capable compiler" + elif use openmp; then + export USE_OPENMP=1 + use math && export USE_PARALLEL_MINUIT2=1 + fi + use python && python_set_active_version 2 +} + +src_prepare() { + epatch \ + "${WORKDIR}"/${P}-make-3.82.patch \ + "${WORKDIR}"/${P}-prop-ldflags.patch \ + "${WORKDIR}"/${P}-configure-paths.patch \ + "${WORKDIR}"/${P}-nobyte-compile.patch \ + "${WORKDIR}"/${P}-glibc212.patch \ + "${WORKDIR}"/${P}-xrootd-prop-flags.patch \ + "${FILESDIR}"/${P}-libpng15.patch + + # use system cfortran + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc + + # take a more descriptive name for ruby libs + sed -i \ + -e 's/libRuby/libRubyROOT/g' \ + bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \ + || die "ajusting ruby libname failed" + + # in gentoo, libPythia6 is called libpythia6 + # libungif is called libgif + sed -i \ + -e 's/libPythia6/libpythia6/g' \ + -e 's/ungif/gif/g' \ + configure || die "adjusting library names failed" + + # libafterimage flags are hardcoded + sed -i \ + -e 's/CFLAGS="-O3"//' \ + -e 's/CFLAGS=$$ACFLAGS//' \ + graf2d/asimage/Module.mk graf2d/asimage/src/libAfterImage/configure \ + || die "flag propagation in libafterimage failed" + # QTDIR only used for qt3 in gentoo, and configure looks for it. + unset QTDIR +} + +src_configure() { + # the configure script is not the standard autotools + ./configure \ + --prefix="${EPREFIX}"/usr \ + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ + --with-cc=$(tc-getCC) \ + --with-cxx=$(tc-getCXX) \ + --with-f77=$(tc-getFC) \ + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ + --disable-builtin-freetype \ + --disable-builtin-ftgl \ + --disable-builtin-glew \ + --disable-builtin-pcre \ + --disable-builtin-zlib \ + --disable-rpath \ + --enable-asimage \ + --enable-astiff \ + --enable-exceptions \ + --enable-explicitlink \ + --enable-gdml \ + --enable-memstat \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --enable-table \ + --fail-on-missing \ + --with-afs-shared=yes \ + $(use_enable afs) \ + $(use_enable clarens) \ + $(use_enable clarens peac) \ + $(use_enable fftw fftw3) \ + $(use_enable geant4 g4root) \ + $(use_enable graphviz gviz) \ + $(use_enable kerberos krb5) \ + $(use_enable ldap) \ + $(use_enable math gsl-shared) \ + $(use_enable math genvector) \ + $(use_enable math mathmore) \ + $(use_enable math minuit2) \ + $(use_enable math roofit) \ + $(use_enable math unuran) \ + $(use_enable mysql) \ + $(use_enable odbc) \ + $(use_enable opengl) \ + $(use_enable postgres pgsql) \ + $(use_enable pythia6) \ + $(use_enable pythia8) \ + $(use_enable python) \ + $(use_enable qt4 qt) \ + $(use_enable qt4 qtgsi) \ + $(use_enable reflex cintex) \ + $(use_enable reflex) \ + $(use_enable ruby) \ + $(use_enable ssl) \ + $(use_enable xft) \ + $(use_enable xml) \ + $(use_enable xrootd) \ + ${EXTRA_ECONF} \ + || die "configure failed" +} + +src_compile() { + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed" + if use emacs; then + elisp-compile build/misc/*.el || die "elisp-compile failed" + fi +} + +doc_install() { + cd "${S}" + if use doc; then + einfo "Installing user's guides" + insinto /usr/share/doc/${PF} + doins \ + "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \ + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf \ + || die "pdf install failed" + if use math; then + doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ + || die "math doc install failed" + fi + fi + + if use examples; then + # these should really be taken care of by the root make install + insinto /usr/share/doc/${PF}/examples/tutorials/tmva + doins -r tmva/test || die + else + rm -rf "${D}"/usr/share/doc/${PF}/examples + fi +} + +daemon_install() { + cd "${S}" + local daemons="rootd proofd" + dodir /var/spool/rootd + fowners rootd:rootd /var/spool/rootd + dodir /var/spool/rootd/{pub,tmp} + fperms 1777 /var/spool/rootd/{pub,tmp} + + use xrootd && daemons="${daemons} xrootd olbd" + for i in ${daemons}; do + newinitd "${FILESDIR}"/${i}.initd ${i} + newconfd "${FILESDIR}"/${i}.confd ${i} + done + if use xinetd; then + insinto /etc/xinetd + doins etc/daemons/{rootd,proofd}.xinetd || die + fi +} + +desktop_install() { + cd "${S}" + sed -e 's,@prefix@,/usr,' \ + build/package/debian/root-system-bin.desktop.in > root.desktop + domenu root.desktop + doicon "${S}"/build/package/debian/root-system-bin.png + + insinto /usr/share/icons/hicolor/48x48/mimetypes + doins build/package/debian/application-x-root.png + + insinto /usr/share/icons/hicolor/48x48/apps + doicon build/package/debian/root-system-bin.xpm +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + doenvd 99root || die "doenvd failed" + + # The build system installs Emacs support unconditionally and in the wrong + # directory. Remove it and call elisp-install in case of USE=emacs. + rm -rf "${D}"/usr/share/emacs + if use emacs; then + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" + fi + + doc_install + daemon_install + desktop_install + + # Cleanup of files either already distributed or unused on Gentoo + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} + rm "${ED}"usr/share/root/fonts/LICENSE + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null + rm -f posix/mktypes dll_stl/setup \ + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib + rm -f "${ED}"/etc/root/proof/*.sample + rm -rf "${ED}"/etc/root/daemons + popd > /dev/null +} + +pkg_postinst() { + use ruby && elog "ROOT Ruby module is available as libRubyROOT" + fdo-mime_desktop_database_update + use python && python_mod_optimize /usr/$(get_libdir)/root +} + +pkg_postrm() { + fdo-mime_desktop_database_update + use python && python_mod_cleanup /usr/$(get_libdir)/root +} diff --git a/sci-physics/root/root-5.28.00d.ebuild b/sci-physics/root/root-5.28.00d.ebuild new file mode 100644 index 000000000..f6854507d --- /dev/null +++ b/sci-physics/root/root-5.28.00d.ebuild @@ -0,0 +1,338 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00d.ebuild,v 1.4 2011/11/13 11:21:12 jlec Exp $ + +EAPI=3 + +PYTHON_DEPEND="python? 2" + +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic + +#DOC_PV=$(get_major_version)_$(get_version_component_range 2) +DOC_PV=5_26 +ROOFIT_DOC_PV=2.91-33 +TMVA_DOC_PV=4.03 +PATCH_PV=5.28.00b + +DESCRIPTION="C++ data analysis framework and interpreter from CERN" +HOMEPAGE="http://root.cern.ch/" +SRC_URI=" + ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz + http://dev.gentoo.org/~bicatali/${PN}-${PATCH_PV}-xrootd-prop-flags.patch.bz2 + doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf + math? ( + ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~x86" +IUSE="afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap + llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres pythia6 + pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd" + +CDEPEND=" + >=dev-lang/cfortran-4.4-r2 + dev-libs/libpcre + media-libs/ftgl + media-libs/giflib + media-libs/glew + media-libs/libpng:0 + media-libs/tiff:0 + sys-apps/shadow + virtual/jpeg + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXft + x11-libs/libXpm + || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 ) + afs? ( net-fs/openafs ) + avahi? ( net-dns/avahi ) + clarens? ( dev-libs/xmlrpc-c ) + emacs? ( virtual/emacs ) + fits? ( sci-libs/cfitsio ) + fftw? ( sci-libs/fftw:3.0 ) + graphviz? ( media-gfx/graphviz ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + llvm? ( sys-devel/llvm ) + math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) + opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) + oracle? ( dev-db/oracle-instantclient-basic ) + postgres? ( dev-db/postgresql-base ) + pythia6? ( sci-physics/pythia:6 ) + pythia8? ( sci-physics/pythia:8 ) + qt4? ( + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + x11-libs/qt-qt3support:4 + x11-libs/qt-svg:4 + x11-libs/qt-webkit:4 + x11-libs/qt-xmlpatterns:4 ) + ruby? ( + dev-lang/ruby + dev-ruby/rubygems ) + ssl? ( dev-libs/openssl ) + xml? ( dev-libs/libxml2:2 )" + +DEPEND="${CDEPEND} + dev-util/pkgconfig" + +RDEPEND=" + virtual/fortran +${CDEPEND} + reflex? ( dev-cpp/gccxml ) + xinetd? ( sys-apps/xinetd )" + +S="${WORKDIR}/${PN}" + +pkg_setup() { + fortran-2_pkg_setup + echo + elog "There are extra options on packages not yet in Gentoo:" + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," + elog "HDFS, Monalisa, MaxDB/SapDB, SRP." + elog "You can use the env variable EXTRA_ECONF variable for this." + elog "For example, for SRP, you would set: " + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" + echo + enewgroup rootd + enewuser rootd -1 -1 /var/spool/rootd rootd + + if use math; then + if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2" + ewarn "If you want to build this package with OpenMP, abort now," + ewarn "and set CC to an OpenMP capable compiler" + elif use openmp; then + export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 + elif use mpi; then + export USE_MPI=1 USE_PARALLEL_MINUIT2=1 + fi + fi +} + +src_prepare() { + epatch \ + "${WORKDIR}"/${PN}-${PATCH_PV}-xrootd-prop-flags.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-nobyte-compile.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch + + # make sure we use system libs and headers + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc + rm -rf graf2d/asimage/src/libAfterImage + rm -rf graf3d/ftgl/{inc,src} + rm -rf graf2d/freetype/src + rm -rf graf3d/glew/{inc,src} + rm -rf core/pcre/src + rm -rf math/unuran/src/unuran-*.tar.gz + find core/zip -type f -name "[a-z]*" | xargs rm + rm graf3d/gl/{inc,src}/gl2ps.* + sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk + + # TODO: unbundle xrootd as a new package + #rm -rf net/xrootd/src + #sed -i \ + # -e 's:-lXrdOuc:-lXrd &:' \ + # -e 's:$(XROOTDDIRL)/lib\(Xrd\w*\).a:-l\1:g' \ + # proof/proofd/Module.mk || die + + # In Gentoo, libPythia6 is called libpythia6 + # libungif is called libgif, + # iodbc is in /usr/include/iodbc + # pg_config.h is checked instead of libpq-fe.h + sed -i \ + -e 's:libPythia6:libpythia6:g' \ + -e 's:ungif:gif:g' \ + -e 's:$ODBCINC:$ODBCINC /usr/include/iodbc:' \ + -e 's:libpq-fe.h:pg_config.h:' \ + configure || die "adjusting configure for Gentoo failed" + + # prefixify the configure script + sed -i \ + -e 's:/usr:${EPREFIX}/usr:g' \ + configure || die "prefixify configure failed" + + # QTDIR only used for qt3 in gentoo, and configure looks for it. + unset QTDIR +} + +src_configure() { + # the configure script is not the standard autotools + ./configure \ + --prefix="${EPREFIX}"/usr \ + --etcdir="${EPREFIX}"/etc/root \ + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ + --with-cc=$(tc-getCC) \ + --with-cxx=$(tc-getCXX) \ + --with-f77=$(tc-getFC) \ + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ + --disable-builtin-afterimage \ + --disable-builtin-freetype \ + --disable-builtin-ftgl \ + --disable-builtin-glew \ + --disable-builtin-pcre \ + --disable-builtin-zlib \ + --disable-rpath \ + --enable-asimage \ + --enable-astiff \ + --enable-exceptions \ + --enable-explicitlink \ + --enable-gdml \ + --enable-memstat \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --enable-table \ + --fail-on-missing \ + --with-afs-shared=yes \ + $(use_enable afs) \ + $(use_enable avahi bonjour) \ + $(use_enable clarens) \ + $(use_enable clarens peac) \ + $(use_enable ncurses editline) \ + $(use_enable fits fitsio) \ + $(use_enable fftw fftw3) \ + $(use_enable graphviz gviz) \ + $(use_enable kerberos krb5) \ + $(use_enable ldap) \ + $(use_enable llvm cling) \ + $(use_enable math gsl-shared) \ + $(use_enable math genvector) \ + $(use_enable math mathmore) \ + $(use_enable math minuit2) \ + $(use_enable math roofit) \ + $(use_enable math tmva) \ + $(use_enable math unuran) \ + $(use_enable mysql) \ + $(use_enable odbc) \ + $(use_enable opengl) \ + $(use_enable postgres pgsql) \ + $(use_enable pythia6) \ + $(use_enable pythia8) \ + $(use_enable python) \ + $(use_enable qt4 qt) \ + $(use_enable qt4 qtgsi) \ + $(use_enable reflex cintex) \ + $(use_enable reflex) \ + $(use_enable ruby) \ + $(use_enable ssl) \ + $(use_enable xft) \ + $(use_enable xml) \ + $(use_enable xrootd) \ + ${EXTRA_ECONF} \ + || die "configure failed" +} + +src_compile() { + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed" + if use emacs; then + elisp-compile build/misc/*.el || die "elisp-compile failed" + fi +} + +doc_install() { + cd "${S}" + if use doc; then + einfo "Installing user's guides" + dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \ + use math && dodoc \ + "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf + fi + + if use examples; then + # these should really be taken care of by the root make install + insinto /usr/share/doc/${PF}/examples/tutorials/tmva + doins -r tmva/test + else + rm -rf "${ED}"/usr/share/doc/${PF}/examples + fi +} + +daemon_install() { + cd "${S}" + local daemons="rootd proofd" + dodir /var/spool/rootd + fowners rootd:rootd /var/spool/rootd + dodir /var/spool/rootd/{pub,tmp} + fperms 1777 /var/spool/rootd/{pub,tmp} + + use xrootd && daemons="${daemons} xrootd olbd" + for i in ${daemons}; do + newinitd "${FILESDIR}"/${i}.initd ${i} + newconfd "${FILESDIR}"/${i}.confd ${i} + done + if use xinetd; then + insinto /etc/xinetd + doins etc/daemons/{rootd,proofd}.xinetd + fi +} + +desktop_install() { + cd "${S}" + sed -e 's,@prefix@,/usr,' \ + build/package/debian/root-system-bin.desktop.in > root.desktop + domenu root.desktop + doicon "${S}"/build/package/debian/root-system-bin.png + + insinto /usr/share/icons/hicolor/48x48/mimetypes + doins build/package/debian/application-x-root.png + + insinto /usr/share/icons/hicolor/48x48/apps + doicon build/package/debian/root-system-bin.xpm +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + doenvd 99root || die "doenvd failed" + + # The build system installs Emacs support unconditionally and in the wrong + # directory. Remove it and call elisp-install in case of USE=emacs. + rm -rf "${ED}"/usr/share/emacs + if use emacs; then + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" + fi + + doc_install + daemon_install + desktop_install + + # Cleanup of files either already distributed or unused on Gentoo + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} + rm "${ED}"usr/share/root/fonts/LICENSE + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null + rm -f posix/mktypes dll_stl/setup \ + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib + rm -f "${ED}"/etc/root/proof/*.sample + rm -rf "${ED}"/etc/root/daemons + popd > /dev/null + # these should be in PATH + mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \ + "${ED}"usr/bin +} + +pkg_postinst() { + fdo-mime_desktop_database_update + use python && python_mod_optimize /usr/$(get_libdir)/root +} + +pkg_postrm() { + fdo-mime_desktop_database_update + use python && python_mod_cleanup /usr/$(get_libdir)/root +} diff --git a/sci-physics/root/root-5.32.00-r2.ebuild b/sci-physics/root/root-5.32.00-r2.ebuild new file mode 100644 index 000000000..093c935bc --- /dev/null +++ b/sci-physics/root/root-5.32.00-r2.ebuild @@ -0,0 +1,340 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=4 +PYTHON_DEPEND="python? 2" +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolchain-funcs flag-o-matic + +#DOC_PV=$(get_major_version)_$(get_version_component_range 2) +DOC_PV=5_26 +ROOFIT_DOC_PV=2.91-33 +TMVA_DOC_PV=4.03 +PATCH_PV=5.28.00b +PATCH_PV2=5.32.00 + +DESCRIPTION="C++ data analysis framework and interpreter from CERN" +HOMEPAGE="http://root.cern.ch/" +SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz + doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf + math? ( + ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )" + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz kerberos ldap + llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres prefix + pythia6 pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd" + +CDEPEND=" + app-arch/xz-utils + >=dev-lang/cfortran-4.4-r2 + dev-libs/libpcre + media-libs/freetype + media-libs/giflib + media-libs/libpng:0 + media-libs/tiff:0 + sys-apps/shadow + sys-libs/zlib + virtual/jpeg + X? ( + media-libs/ftgl + media-libs/glew + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + || ( >=media-libs/libafterimage-1.20 >=x11-wm/afterstep-2.2.11 ) + opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) + qt4? ( + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + x11-libs/qt-qt3support:4 + x11-libs/qt-svg:4 + x11-libs/qt-webkit:4 + x11-libs/qt-xmlpatterns:4 ) + xft? ( x11-libs/libXft ) + ) + afs? ( net-fs/openafs ) + avahi? ( net-dns/avahi ) + clarens? ( dev-libs/xmlrpc-c[curl] ) + emacs? ( virtual/emacs ) + fits? ( sci-libs/cfitsio ) + fftw? ( sci-libs/fftw:3.0 ) + graphviz? ( media-gfx/graphviz ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + llvm? ( sys-devel/llvm ) + math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) + oracle? ( dev-db/oracle-instantclient-basic ) + postgres? ( dev-db/postgresql-base ) + pythia6? ( sci-physics/pythia:6 ) + pythia8? ( sci-physics/pythia:8 ) + ruby? ( + dev-lang/ruby + dev-ruby/rubygems ) + ssl? ( dev-libs/openssl ) + xml? ( dev-libs/libxml2 ) + xrootd? ( net-libs/xrootd )" + +DEPEND="${CDEPEND} + dev-util/pkgconfig" + +RDEPEND=" + virtual/fortran + ${CDEPEND} + reflex? ( dev-cpp/gccxml ) + xinetd? ( sys-apps/xinetd )" + +REQUIRED_USE="!X? ( !opengl !qt4 !xft )" + +S="${WORKDIR}/${PN}" + +pkg_setup() { + fortran-2_pkg_setup + python_pkg_setup + echo + elog "There are extra options on packages not yet in Gentoo:" + elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," + elog "HDFS, Monalisa, MaxDB/SapDB, SRP." + elog "You can use the env variable EXTRA_ECONF variable for this." + elog "For example, for SRP, you would set: " + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" + echo + enewgroup rootd + enewuser rootd -1 -1 /var/spool/rootd rootd + + if use math; then + if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then + ewarn "You are using gcc and OpenMP is available with gcc >= 4.2" + ewarn "If you want to build this package with OpenMP, abort now," + ewarn "and set CC to an OpenMP capable compiler" + elif use openmp; then + export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 + elif use mpi; then + export USE_MPI=1 USE_PARALLEL_MINUIT2=1 + fi + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch + + # make sure we use system libs and headers + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc + rm -rf graf2d/asimage/src/libAfterImage + rm -rf graf3d/ftgl/{inc,src} + rm -rf graf2d/freetype/src + rm -rf graf3d/glew/{inc,src} + rm -rf core/pcre/src + rm -rf math/unuran/src/unuran-*.tar.gz + LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" | xargs rm + rm -rf core/lzma/src/*.tar.gz + rm graf3d/gl/{inc,src}/gl2ps.* + sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk + + # In Gentoo, libPythia6 is called libpythia6 + # libungif is called libgif, + # iodbc is in /usr/include/iodbc + # pg_config.h is checked instead of libpq-fe.h + sed -i \ + -e 's:libPythia6:libpythia6:g' \ + -e 's:ungif:gif:g' \ + -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ + -e 's:libpq-fe.h:pg_config.h:' \ + configure || die "adjusting configure for Gentoo failed" + + # prefixify the configure script + sed -i \ + -e 's:/usr:${EPREFIX}/usr:g' \ + configure || die "prefixify configure failed" + + # QTDIR only used for qt3 in gentoo, and configure looks for it. + unset QTDIR +} + +src_configure() { + # the configure script is not the standard autotools + ./configure \ + --prefix="${EPREFIX}"/usr \ + --etcdir="${EPREFIX}"/etc/root \ + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ + --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ + --with-cc=$(tc-getCC) \ + --with-cxx=$(tc-getCXX) \ + --with-f77=$(tc-getFC) \ + --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ + --disable-builtin-afterimage \ + --disable-builtin-freetype \ + --disable-builtin-ftgl \ + --disable-builtin-glew \ + --disable-builtin-pcre \ + --disable-builtin-zlib \ + --disable-builtin-lzma \ + --enable-astiff \ + --enable-exceptions \ + --enable-explicitlink \ + --enable-gdml \ + --enable-memstat \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --enable-table \ + --fail-on-missing \ + --with-afs-shared=yes \ + $(use_enable X x11) \ + $(use_enable X asimage) \ + $(use_enable afs) \ + $(use_enable avahi bonjour) \ + $(use_enable clarens) \ + $(use_enable clarens peac) \ + $(use_enable ncurses editline) \ + $(use_enable fits fitsio) \ + $(use_enable fftw fftw3) \ + $(use_enable graphviz gviz) \ + $(use_enable kerberos krb5) \ + $(use_enable ldap) \ + $(use_enable llvm cling) \ + $(use_enable math gsl-shared) \ + $(use_enable math genvector) \ + $(use_enable math mathmore) \ + $(use_enable math minuit2) \ + $(use_enable math roofit) \ + $(use_enable math tmva) \ + $(use_enable math unuran) \ + $(use_enable mysql) \ + $(use_enable odbc) \ + $(use_enable opengl) \ + $(use_enable postgres pgsql) \ + $(use_enable prefix rpath) \ + $(use_enable pythia6) \ + $(use_enable pythia8) \ + $(use_enable python) \ + $(use_enable qt4 qt) \ + $(use_enable qt4 qtgsi) \ + $(use_enable reflex cintex) \ + $(use_enable reflex) \ + $(use_enable ruby) \ + $(use_enable ssl) \ + $(use_enable xft) \ + $(use_enable xml) \ + $(use_enable xrootd) \ + ${EXTRA_ECONF} \ + || die "configure failed" +} + +src_compile() { + emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed" + if use emacs; then + elisp-compile build/misc/*.el || die "elisp-compile failed" + fi +} + +doc_install() { + cd "${S}" + if use doc; then + einfo "Installing user's guides" + dodoc "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf + use math && dodoc \ + "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf + fi + + if use examples; then + # these should really be taken care of by the root make install + insinto /usr/share/doc/${PF}/examples/tutorials/tmva + doins -r tmva/test + else + rm -rf "${ED}"/usr/share/doc/${PF}/examples + fi +} + +daemon_install() { + cd "${S}" + local daemons="rootd proofd" + dodir /var/spool/rootd + fowners rootd:rootd /var/spool/rootd + dodir /var/spool/rootd/{pub,tmp} + fperms 1777 /var/spool/rootd/{pub,tmp} + + for i in ${daemons}; do + newinitd "${FILESDIR}"/${i}.initd ${i} + newconfd "${FILESDIR}"/${i}.confd ${i} + done + if use xinetd; then + insinto /etc/xinetd + doins etc/daemons/{rootd,proofd}.xinetd + fi +} + +desktop_install() { + cd "${S}" + sed -e 's,@prefix@,/usr,' \ + build/package/debian/root-system-bin.desktop.in > root.desktop + domenu root.desktop + doicon "${S}"/build/package/debian/root-system-bin.png + + insinto /usr/share/icons/hicolor/48x48/mimetypes + doins build/package/debian/application-x-root.png + + insinto /usr/share/icons/hicolor/48x48/apps + doicon build/package/debian/root-system-bin.xpm +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root + use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root + doenvd 99root || die "doenvd failed" + + # The build system installs Emacs support unconditionally and in the wrong + # directory. Remove it and call elisp-install in case of USE=emacs. + rm -rf "${ED}"/usr/share/emacs + if use emacs; then + elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" + fi + + doc_install + daemon_install + desktop_install + + # Cleanup of files either already distributed or unused on Gentoo + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} + rm "${ED}"usr/share/root/fonts/LICENSE + pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null + rm -f posix/mktypes dll_stl/setup \ + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib + rm -f "${ED}"/etc/root/proof/*.sample + rm -rf "${ED}"/etc/root/daemons + popd > /dev/null + # these should be in PATH + mv "${ED}"usr/share/root/proof/utils/pq2/pq2* \ + "${ED}"usr/bin +} + +pkg_postinst() { + fdo-mime_desktop_database_update + use python && python_mod_optimize /usr/$(get_libdir)/root +} + +pkg_postrm() { + fdo-mime_desktop_database_update + use python && python_mod_cleanup /usr/$(get_libdir)/root +} |