From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QoMq7-0005ia-W9 for garchives@archives.gentoo.org; Tue, 02 Aug 2011 21:49:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AA7F21C09B; Tue, 2 Aug 2011 21:49:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9C7EC21C09B for ; Tue, 2 Aug 2011 21:49:20 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E720F1B4031 for ; Tue, 2 Aug 2011 21:49:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 532323C006 for ; Tue, 2 Aug 2011 21:49:19 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/files/, sci-physics/root/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/root/ChangeLog sci-physics/root/files/olbd.confd sci-physics/root/files/olbd.initd sci-physics/root/files/proofd.confd sci-physics/root/files/proofd.initd sci-physics/root/files/root-5.28.00b-asneeded.patch sci-physics/root/files/root-5.28.00b-glibc212.patch sci-physics/root/files/root-5.28.00b-prop-ldflags.patch sci-physics/root/files/root-5.28.00b-unuran.patch sci-physics/root/files/root-5.30.00-lzma.patch sci-physics/root/files/root-5.30.00-nobyte-compile.patch sci-physics/root/files/root-5.30.00-xrootd-prop-flags.patch sci-physics/root/files/rootd.confd sci-physics/root/files/rootd.initd sci-physics/root/files/xrootd.confd sci-physics/root/files/xrootd.initd sci-physics/root/metadata.xml sci-physics/root/root-5.30.00.ebuild X-VCS-Directories: sci-physics/root/files/ sci-physics/root/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: b7ed6121e261e9cc3bfe7f354230cb3568a5b527 Date: Tue, 2 Aug 2011 21:49:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 0e8d02b353e7d20e563b9b369dceb419 commit: b7ed6121e261e9cc3bfe7f354230cb3568a5b527 Author: Andrew Savchenko gmail com> AuthorDate: Tue Aug 2 21:47:15 2011 +0000 Commit: Andrew Savchenko gmail com> CommitDate: Tue Aug 2 21:47:15 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Db7ed6121 Version bump based on bug 374709. (Portage version: 2.2.0_alpha47/git/Linux i686, unsigned Manifest commit) --- sci-physics/root/ChangeLog | 24 + sci-physics/root/files/olbd.confd | 9 + sci-physics/root/files/olbd.initd | 26 + sci-physics/root/files/proofd.confd | 12 + sci-physics/root/files/proofd.initd | 26 + .../root/files/root-5.28.00b-asneeded.patch | 20 + .../root/files/root-5.28.00b-glibc212.patch | 11 + .../root/files/root-5.28.00b-prop-ldflags.patch | 13 + sci-physics/root/files/root-5.28.00b-unuran.patch | 39 ++ sci-physics/root/files/root-5.30.00-lzma.patch | 13 + .../root/files/root-5.30.00-nobyte-compile.patch | 137 +++++ .../files/root-5.30.00-xrootd-prop-flags.patch | 623 ++++++++++++++= ++++++ sci-physics/root/files/rootd.confd | 8 + sci-physics/root/files/rootd.initd | 28 + sci-physics/root/files/xrootd.confd | 8 + sci-physics/root/files/xrootd.initd | 26 + sci-physics/root/metadata.xml | 31 + sci-physics/root/root-5.30.00.ebuild | 339 +++++++++++ 18 files changed, 1393 insertions(+), 0 deletions(-) diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog new file mode 100644 index 0000000..0a930ca --- /dev/null +++ b/sci-physics/root/ChangeLog @@ -0,0 +1,24 @@ +# ChangeLog for sci-physics/root +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*root-5.30.00 (02 Aug 2011) + + 02 Aug 2011; +files/root-5.28.00b-asneeded.patch, + +files/root-5.28.00b-glibc212.patch, +files/root-5.28.00b-prop-ldflags= .patch, + +files/root-5.28.00b-unuran.patch, +root-5.30.00.ebuild, + +files/root-5.30.00-lzma.patch, +files/root-5.30.00-nobyte-compile.pat= ch, + +files/root-5.30.00-xrootd-prop-flags.patch, +files/olbd.confd, + +files/olbd.initd, +files/proofd.confd, +files/proofd.initd, + +files/rootd.confd, +files/rootd.initd, +files/xrootd.confd, + +files/xrootd.initd, +metadata.xml: + Version bump. This are changes from bug 374709 including: + - upatchset update; + - lzma support (for root file data compression); + - X support is now optional (but enabled by default, of course), + this is extremely useful on X-less computating stations; + - fix tmva and roofit documentation installation (pdfs were missed due= to + ebuild typo; + - some missed deps. + - libXft dep is controlled by xft flag. + diff --git a/sci-physics/root/files/olbd.confd b/sci-physics/root/files/o= lbd.confd new file mode 100644 index 0000000..848f4d7 --- /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=3D"root" + +# +# Please refer to the olbd(1) man(1) page for more +# information on command line parameters.=20 +OLBD_OPTS=3D"" diff --git a/sci-physics/root/files/olbd.initd b/sci-physics/root/files/o= lbd.initd new file mode 100644 index 0000000..95b7bc5 --- /dev/null +++ b/sci-physics/root/files/olbd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2011 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=3D${OLBD_USER} \ + --make-pidfile --pidfile=3D/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=3D/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 0000000..81720a7 --- /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=20 +# command line parameters.=20 +# +PROOFD_OPTS=3D + +# Specify your base of your PROOF directory here. If left blank, it +# will use the system default (e.g., /usr/share/root/proof).=20 +# Note, however, that ROOT recommends that this directory is shared (via +# NFS or similar) among all the nodes of the cluster. +PROOF_DIR=3D diff --git a/sci-physics/root/files/proofd.initd b/sci-physics/root/files= /proofd.initd new file mode 100644 index 0000000..3fac75c --- /dev/null +++ b/sci-physics/root/files/proofd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2011 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.2 2009/01/20 18:04:09 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.28.00b-asneeded.patch b/sci-ph= ysics/root/files/root-5.28.00b-asneeded.patch new file mode 100644 index 0000000..b845247 --- /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 < conftest.mk + include ${ac_srcdir}/config/Makefile.${arch} + conftest: conftest.c +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@ ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@ +=20 + conftest.c: + echo "int main() { return 0; }" > \$@ +@@ -723,7 +723,7 @@ + cat < conftest.mk + include ${ac_srcdir}/config/Makefile.${arch} + conftest:conftest.c +- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@ ++ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@ +=20 + conftest.c: + echo "extern int $linksymbol (); " > \$@ diff --git a/sci-physics/root/files/root-5.28.00b-glibc212.patch b/sci-ph= ysics/root/files/root-5.28.00b-glibc212.patch new file mode 100644 index 0000000..a365431 --- /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 @@ +=20 + #ifndef WIN32 + # include ++# include + #else + # define ssize_t int + # include + diff --git a/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch b/sc= i-physics/root/files/root-5.28.00b-prop-ldflags.patch new file mode 100644 index 0000000..7324319 --- /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 @@ +=20 + EXTRA_CFLAGS :=3D -Iinclude @cflags@ + EXTRA_CXXFLAGS :=3D -Iinclude @cflags@ +-EXTRA_LDFLAGS :=3D @ldflags@ ++EXTRA_LDFLAGS :=3D @ldflags@ $(LDFLAGS) + WINRTDEBUG :=3D @winrtdebug@ +=20 + GLBPATCHFLAGS :=3D @glbpatchcflags@ + diff --git a/sci-physics/root/files/root-5.28.00b-unuran.patch b/sci-phys= ics/root/files/root-5.28.00b-unuran.patch new file mode 100644 index 0000000..76422da --- /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/Mo= dule.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 :=3D $(call stripsrc,$(UNURANDIRS)/headers.d) + UNRCFG :=3D $(call stripsrc,$(UNURANDIRS)/$(UNRVERS)/config.h) +=20 +-UNRTARCONTENT:=3D$(subst $(UNRVERS),$(UNRDIRS),$(shell mkdir -p $(UNRDI= R); cd $(UNRDIR); gunzip -c $(UNRSRCS) | tar tf -)) ++UNRTARCONTENT:=3D + UNRS :=3D $(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) +=20 +-include/%.h: $(UNURANDIRI)/%.h $(UNURANETAG) ++include/%.h: $(UNURANDIRI)/%.h + cp $< $@ +=20 +-$(UNURANDEP): $(UNRCFG) + $(UNRS): $(UNURANETAG) +=20 + $(UNURANETAG): $(UNRSRCS) +@@ -125,12 +124,12 @@ + GNUMAKE=3D$(MAKE) ./configure CC=3D"$$ACC" \ + CFLAGS=3D"$$ACFLAGS"); +=20 +-$(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" +=20 + $(UNURANDS): $(UNRINIT) $(UNURANDH1) $(UNURANL) $(ROOTCINTTMPDEP) + $(MAKEDIR) diff --git a/sci-physics/root/files/root-5.30.00-lzma.patch b/sci-physics= /root/files/root-5.30.00-lzma.patch new file mode 100644 index 0000000..b35f7fd --- /dev/null +++ b/sci-physics/root/files/root-5.30.00-lzma.patch @@ -0,0 +1,13 @@ +--- root/configure.orig 2011-07-10 11:51:42.000000000 +0400 ++++ root/configure 2011-07-10 11:54:40.053175390 +0400 +@@ -2430,8 +2430,8 @@ + check_header "lzma.h" "" \ + $LZMA ${LZMA:+$LZMA/include} \ + ${finkdir:+$finkdir/include} \ +- /usr/local/include /usr/include/lzma /usr/local/include/lzma \ +- /opt/lzma/include /usr/include ++ /usr/local/include /usr/include /usr/local/include \ ++ /opt/lzma/include + if test "x$found_dir" =3D "x" ; then + enable_builtin_lzma=3Dyes + else diff --git a/sci-physics/root/files/root-5.30.00-nobyte-compile.patch b/s= ci-physics/root/files/root-5.30.00-nobyte-compile.patch new file mode 100644 index 0000000..179e579 --- /dev/null +++ b/sci-physics/root/files/root-5.30.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)" !=3D "x"; then \ + rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \ + fi; \ +- if test "x$(RFLX_GRFLXPYC)" !=3D "x"; then \ +- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \ +- fi; \ +- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" !=3D "x"; then \ ++ if test "x$(RFLX_GRFLXPY)" !=3D "x"; then \ + dir=3D$(RFLX_GRFLXDD:lib/=3D); \ + while test "x$${dir}" !=3D "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.9915613= 04 +0400 ++++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400 +@@ -48,8 +48,6 @@ + ROOTPY :=3D $(subst $(MODDIR),$(LPATH),$(ROOTPYS)) + $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@ + endif +-ROOTPYC :=3D $(ROOTPY:.py=3D.pyc) +-ROOTPYO :=3D $(ROOTPY:.py=3D.pyo) +=20 + # used in the main Makefile + ALLHDRS +=3D $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH)) +@@ -68,10 +66,8 @@ + include/%.h: $(PYROOTDIRI)/%.h + cp $< $@ +=20 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" = )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$= <" )' +=20 +-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) = \ ++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \ + $(ROOTLIBSDEP) $(PYTHONLIBDEP) + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ + "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \ +@@ -113,7 +109,7 @@ +=20 + distclean-$(MODNAME): clean-$(MODNAME) + @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \ +- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \ ++ $(ROOTPY) $(PYROOTMAP) \ + $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64) +=20 + 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.241549= 346 +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 :=3D $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS)) + $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@ + endif +-ifneq ($(BUILDPYTHON),no) +-CINTEXPYC :=3D $(CINTEXPY:.py=3D.pyc) +-CINTEXPYO :=3D $(CINTEXPY:.py=3D.pyo) +-endif +=20 + # used in the main Makefile + ALLHDRS +=3D $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$= (CINTEXH)) +@@ -86,8 +82,6 @@ + fi) + cp $< $@ +=20 +-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" = )' +-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$= <" )' +=20 + $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \ + $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLI= BDEP) +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 :=3D $(wildcard $(RFLX_GRFLXSD)/*.py) + RFLX_GRFLXPY :=3D $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py= ,$(RFLX_GRFLXS)) + RFLX_GRFLXPY +=3D $(RFLX_GCCXMLPATHPY) +-ifneq ($(BUILDPYTHON),no) +-RFLX_GRFLXPYC :=3D $(subst .py,.pyc,$(RFLX_GRFLXPY)) +-endif +=20 + RFLX_LIBDIR =3D $(LIBDIR) +=20 +@@ -92,7 +89,7 @@ +=20 + ALLEXECS +=3D $(RFLX_GENMAPX) +=20 +-POSTBIN +=3D $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY) ++POSTBIN +=3D $(RFLX_GRFLXPY) +=20 + ##### local rules ##### + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \ +@@ -122,8 +119,6 @@ + mkdir -p lib/python/genreflex; fi ) + cp $< $@ +=20 +-$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py +- @python -c 'import py_compile; py_compile.compile( "$<" )' +=20 + $(RFLX_GENMAPO) : CXXFLAGS +=3D -I$(REFLEXDIRS)/genmap +=20 +@@ -149,7 +144,7 @@ + $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \ + -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL) +=20 +-all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_G= RFLXPYC) $(RFLX_GRFLXPY) ++all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_G= RFLXPY) +=20 + clean-genreflex: + @rm -rf lib/python/genreflex +diff -Naur root.as-needed/cint/reflex/python/CMakeLists.txt root/cint/re= flex/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 #################### +=20 + FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} g= enreflex/*.py) +-SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.py= c PARENT_SCOPE) ++SET(GENREFLEX_SCRIPT PARENT_SCOPE) +=20 + ##################### gccxmlpath #################### +=20 diff --git a/sci-physics/root/files/root-5.30.00-xrootd-prop-flags.patch = b/sci-physics/root/files/root-5.30.00-xrootd-prop-flags.patch new file mode 100644 index 0000000..671cfe3 --- /dev/null +++ b/sci-physics/root/files/root-5.30.00-xrootd-prop-flags.patch @@ -0,0 +1,623 @@ +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.env.in root/ne= t/xrootd/src/xrootd/config/GNUmake.env.in +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.env.in 2011-06-28 13:= 49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.env.in 2011-07-10 10:27:45= .001375019 +0400 +@@ -47,6 +47,7 @@ + CFHASXRDCRYPTO =3D @hasxrdcrypto@ +=20 + CFLAGS +=3D $(CFSTRLCPY) $(CFHASOLDHDRS) $(CFFSTATAT) $(CFHASLIBZ) $(CF= ATOMICS) ++CFLAGS +=3D $(CXXFLAGS) +=20 + # AFS relevant variables + @incafs@ +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.options.in roo= t/net/xrootd/src/xrootd/config/GNUmake.options.in +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.options.in 2011-06-28= 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.options.in 2011-07-10 10:2= 4:16.131357441 +0400 +@@ -16,7 +16,7 @@ + CF32=3D"$(TYPECF32)" \ + CFOP=3D"$(@buildopt@)" \ + LD=3D"$(TYPELD)" \ +-LDOP=3D"$(@buildopt@)" \ ++LDOP=3D"$(LDFLAGS)" \ + LDSO=3D"$(TYPELDSO)" \ + LIBS=3D" @ldsyslibs@ $(TYPELIBS)" \ + TYPE=3D"$(TYPE)" +@@ -33,7 +33,7 @@ + CF32=3D"$(TYPECF32)" \ + CFOP=3D"$(@buildopt@)" \ + LD=3D"$(TYPELD)" \ +-LDOP=3D"$(@buildopt@)" \ ++LDOP=3D"$(LDFLAGS)" \ + LDSO=3D"$(TYPELDSO)" \ + LIBS=3D" @ldsyslibs@ $(TYPELIBS)" \ + TYPE=3D"$(TYPE)" +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.fbsd roo= t/net/xrootd/src/xrootd/config/GNUmake.rules.fbsd +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.fbsd 2011-06-28= 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.fbsd 2011-07-10 10:2= 4:16.131357441 +0400 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gcc root= /net/xrootd/src/xrootd/config/GNUmake.rules.gcc +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gcc 2011-06-28 = 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.gcc 2011-07-10 10:24= :16.131357441 +0400 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated -D__linux__ $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gccia64 = root/net/xrootd/src/xrootd/config/GNUmake.rules.gccia64 +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gccia64 2011-06= -28 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.gccia64 2011-07-10 1= 0:24:16.131357441 +0400 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated -D__linux__ $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gccx8664= root/net/xrootd/src/xrootd/config/GNUmake.rules.gccx8664 +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.gccx8664 2011-0= 6-28 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.gccx8664 2011-07-10 = 10:24:16.131357441 +0400 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated -D__linux__ $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -m64 -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.icc root= /net/xrootd/src/xrootd/config/GNUmake.rules.icc +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.icc 2011-06-28 = 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.icc 2011-07-10 10:24= :16.131357441 +0400 +@@ -13,7 +13,7 @@ + -ansi -D__linux__ -D__ICC__ -wd1476 -wd191 -wd468 -wd858 -= wd1224 -wd584 $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -m32 -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.iccx8664= root/net/xrootd/src/xrootd/config/GNUmake.rules.iccx8664 +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.iccx8664 2011-0= 6-28 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.iccx8664 2011-07-10 = 10:24:16.131357441 +0400 +@@ -14,7 +14,7 @@ + -wd1572 -wd584 -i-dynamic $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -m64 -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.macos ro= ot/net/xrootd/src/xrootd/config/GNUmake.rules.macos +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.macos 2011-06-2= 8 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.macos 2011-07-10 10:= 24:16.131357441 +0400 +@@ -18,7 +18,7 @@ + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 + TYPELINK =3D -undefined dynamic_lookup -multiply_defined suppress=20 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + ifeq ($(subst $(MACOSX_MINOR),,1234),1234) + TYPELDSO =3D $(TYPELINK) -dynamiclib -single_module -m32 +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.macos64 = root/net/xrootd/src/xrootd/config/GNUmake.rules.macos64 +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.macos64 2011-06= -28 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.macos64 2011-07-10 1= 0:24:16.131357441 +0400 +@@ -15,7 +15,7 @@ + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET= _BITS=3D64 + TYPELINK =3D -undefined dynamic_lookup -multiply_defined suppress=20 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + ifeq ($(subst $(MACOSX_MINOR),,1234),1234) + TYPELDSO =3D $(TYPELINK) -dynamiclib -single_module -m64 +diff -Naur root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.sungcc r= oot/net/xrootd/src/xrootd/config/GNUmake.rules.sungcc +--- root.orig/net/xrootd/src/xrootd/config/GNUmake.rules.sungcc 2011-06-= 28 13:49:44.000000000 +0400 ++++ root/net/xrootd/src/xrootd/config/GNUmake.rules.sungcc 2011-07-10 10= :24:16.131357441 +0400 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated -DSUNGCC $(CFTRACE) + TYPECF32 =3D + TYPECF64 =3D -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 +-TYPEOPT =3D $(TYPEMISC) -O2 ++TYPEOPT =3D $(TYPEMISC) $(CXXFLAGS) + TYPEDBG =3D $(TYPEMISC) -g + TYPELDSO =3D -shared + TYPESHLIB =3D so +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdAcc/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdAcc/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdAcc/GNUmakefile 2011-06-28 13= :49:42.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdAcc/GNUmakefile 2011-07-10 10:24:1= 6.131357441 +0400 +@@ -71,7 +71,7 @@ +=20 + $(TESTBIN): $(OBJECTB) $(LIBDEPS) + @echo Creating executable $(TESTBIN)=20 +- $(ECHO)$(LD) $(CFLAGS) $(LDOP) $(OBJECTB) $(BINLIBS) $(LIBS) -o $(TEST= BIN) ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTB) $(BINLIBS) $(LIBS) -o $(T= ESTBIN) +=20 + $(OBJDIR)/XrdAccAccess.o: XrdAccAccess.cc XrdAccAccess.hh \ + XrdAccCapability.hh XrdAccConfig.hh XrdAcc= Groups.hh \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdApps/GNUmakefile root/= net/xrootd/src/xrootd/src/XrdApps/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdApps/GNUmakefile 2011-06-28 1= 3:49:42.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdApps/GNUmakefile 2011-07-10 10:24:= 16.131357441 +0400 +@@ -59,7 +59,7 @@ + =20 + $(XRDADLER32): $(XRDADLER32_OBJ) $(XRDADLERDEPT) + @echo Creating executable $(XRDADLER32) +- $(ECHO)$(LD) $(LDOP) $(XRDADLER32_OBJ) $(XRDADLERDEPS) $(XRDADLERLIBS)= -o $(XRDADLER32) ++ $(ECHO) $(LD) $(LDFLAGS) $(XRDADLER32_OBJ) $(XRDADLERDEPS) $(XRDADLERL= IBS) -o $(XRDADLER32) +=20 + $(XRDADLER32_OBJ): Xrdadler32.cc \ + XrdPosixExtern.hh XrdPosixXrootd.hh \ +@@ -90,7 +90,7 @@ +=20 + $(XRDMPXBIN): $(XRDMPXOBJ) $(XrdMPXDEPS) + @echo Creating executable $(XRDMPXBIN) +- $(ECHO)$(LD) $(LDOP) $(XRDMPXOBJ) $(XRDMPXLIBS) $(LIBS) -o $(XRDMPXBIN= ) ++ $(ECHO)$(CC) $(CXXFLAGS) $(LDFLAGS) $(XRDMPXOBJ) $(XRDMPXLIBS) $(LIBS)= -o $(XRDMPXBIN) + =20 + $(XRDMPXOBJ): XrdMpxStats.cc \ + XrdNetDNS.hh XrdNetSocket.hh XrdNetOpts.hh \ +@@ -106,7 +106,7 @@ + =20 + $(XRDW41): $(XRDW41_OBJ) $(XRDW41_DEPS) + @echo Creating executable $(XRDW41) +- $(ECHO)$(LD) $(LDOP) $(XRDW41_OBJ) $(XRDW41LIBS) -o $(XRDW41) ++ $(ECHO)$(CC) $(CXXFLAGS) $(LDFLAGS) $(XRDW41_OBJ) $(XRDW41LIBS) -o $(X= RDW41) +=20 + $(XRDW41_OBJ): XrdWait41.cc \ + XrdOucTList.hh \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdBwm/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdBwm/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdBwm/GNUmakefile 2011-06-28 13= :49:43.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdBwm/GNUmakefile 2011-07-10 10:24:1= 6.131357441 +0400 +@@ -67,7 +67,7 @@ + $(ECHO)ranlib $(LIBARCH) +=20 + @echo Creating shared library $(LIBRARY)=20 +- $(ECHO)$(CC) $(CFLAGS) $(OBJECTS) $(OBJFS) $(LDSO) $(MORELIBS) $(LIBS)= -o $(LIBRARY) ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(OBJFS) $(LDSO) $(MORELI= BS) $(LIBS) -o $(LIBRARY) +=20 + $(OBJDIR)/XrdBwm.o: XrdBwm.cc XrdBwm.hh \ + XrdAccAuthorize.hh \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdClient/GNUmakefile roo= t/net/xrootd/src/xrootd/src/XrdClient/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdClient/GNUmakefile 2011-06-28= 13:49:41.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdClient/GNUmakefile 2011-07-10 10:2= 4:16.131357441 +0400 +@@ -160,17 +160,17 @@ + $(LIBSHARED): $(OBJECTS) $(LIBDEP) + @echo Creating shared library $(LIBSHARED)=20 + $(ECHO)rm -f $(LIBSHARED) +- $(ECHO)$(CC) $(CFLAGS) $(OBJECTS) $(LDSO) $(LIBLIBS) $(LIBS) -o $(LIBS= HARED) ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LDSO) $(LIBLIBS) $(LIBS= ) -o $(LIBSHARED) + ifneq ($(subst $(MACOSX_MINOR),,1234),1234) + $(ECHO)if [ "x$(TYPE)" =3D "xDarwin" ]; then \ +- $(CC) $(CFLAGS) $(OBJECTS) $(TYPELDDY) $(LIBLIBS) $(LIBS) -o= $(LIBDIR)/libXrdClient.$(TYPEDYLIB); \ ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(TYPELDDY) $(LIBLIBS)= $(LIBS) -o $(LIBDIR)/libXrdClient.$(TYPEDYLIB); \ + fi + endif +=20 + $(LIBRARY_JNI): $(OBJECT_JNI) + @echo Creating shared library $(LIBRARY_JNI)=20 + $(ECHO)rm -f $(LIBRARY_JNI); +- $(ECHO)$(CC) $(CFLAGS) $(OBJECT_JNI) $(LDSO) $(MORELIBS) $(LIBS) -o $(= LIBRARY_JNI) ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECT_JNI) $(LDSO) $(MORELIBS) $(= LIBS) -o $(LIBRARY_JNI) +=20 + $(CLASS_JNI_TARGET): $(CLASS_JNI).java + @echo Creating JNI class file $(CLASS_JNI_TARGET) +@@ -178,27 +178,27 @@ +=20 + $(BINDIR)/TestXrdClient_read: $(OBJECTS) $(OBJECTD) $(LIBDEPS) + @echo Creating executable $(BINDIR)/TestXrdClient_read=20 +- $(ECHO)$(LD) $(LDOP) $(OBJECTD) $(BINLIBS) $(LIBS) -o $(BINDIR)/TestXr= dClient_read ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECTD) $(BINLIBS) $(LIBS) -o $(BINDIR)/Tes= tXrdClient_read +=20 + $(BINDIR)/TestXrdClient: $(OBJECTS) $(OBJECTB) $(LIBDEPS) + @echo Creating executable $(BINDIR)/TestXrdClient=20 +- $(ECHO)$(LD) $(LDOP) $(OBJECTB) $(BINLIBS) $(LIBS) -o $(BINDIR)/TestXr= dClient ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECTB) $(BINLIBS) $(LIBS) -o $(BINDIR)/Tes= tXrdClient +=20 + $(XRDCP): $(OBJECTS) $(OBJECTC) $(LIBDEPS) + @echo Creating executable $(XRDCP)=20 +- $(ECHO)$(LD) $(LDOP) $(OBJECTC) $(BINLIBS) $(LIBS) $(LIBZ) -o $(XRDCP) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECTC) $(BINLIBS) $(LIBS) $(LIBZ) -o $(XRD= CP) +=20 + $(XRDPREPTOOL): $(OBJECTS) $(OBJECT_PREPTOOL) $(LIBDEPS) + @echo Creating executable $(XRDPREPTOOL) +- $(ECHO)$(LD) $(LDOP) $(OBJECT_PREPTOOL) $(BINLIBS) $(LIBS) -o $(XRDPRE= PTOOL) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECT_PREPTOOL) $(BINLIBS) $(LIBS) -o $(XRD= PREPTOOL) +=20 + $(XRDSTAGETOOL): $(OBJECTS) $(OBJECT_STAGETOOL) $(LIBDEPS) + @echo Creating executable $(XRDSTAGETOOL)=20 +- $(ECHO)$(LD) $(LDOP) $(OBJECT_STAGETOOL) $(BINLIBS) $(LIBS) -o $(XRDST= AGETOOL) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECT_STAGETOOL) $(BINLIBS) $(LIBS) -o $(XR= DSTAGETOOL) +=20 + $(XRDCLI): $(OBJECTS) $(OBJECT_CLI) $(LIBDEPS) + @echo Creating executable $(XRDCLI)=20 +- $(ECHO)$(LD) $(LDOP) $(OBJECT_CLI) $(BINLIBS) $(LIBS) $(LIBREADLINE) -= o $(XRDCLI) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECT_CLI) $(BINLIBS) $(LIBS) $(LIBREADLINE= ) -o $(XRDCLI) +=20 + $(XRDADMIN): $(PERLMOD) + $(ECHO)if [ "$(PERLBIN)" !=3D "" ]; then \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdCms/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdCms/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdCms/GNUmakefile 2011-06-28 13= :49:43.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdCms/GNUmakefile 2011-07-10 10:24:1= 6.138023789 +0400 +@@ -136,7 +136,7 @@ +=20 + $(BINARY): $(OBJSRVR) $(OBJBOTH) $(LIBDEPS) + @echo Creating executable $(BINARY)=20 +- $(ECHO)$(LD) $(LDOP) $(OBJSRVR) $(OBJBOTH) $(BINLIBS) $(LIBS) $(TYPELI= BMT) -o $(BINARY) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJSRVR) $(OBJBOTH) $(BINLIBS) $(LIBS) $(TYP= ELIBMT) -o $(BINARY) +=20 +=20 + $(LIBRARY): $(OBJCLNT) $(OBJBOTH) +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdCns/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdCns/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdCns/GNUmakefile 2011-06-28 13= :49:41.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdCns/GNUmakefile 2011-07-10 10:24:1= 6.138023789 +0400 +@@ -90,11 +90,11 @@ +=20 + $(TARGCNSD): $(OBJCNSD) $(OBJCOM) $(LIBDEP) + @echo Creating executable $(BINDIR)/XrdCnsd +- $(ECHO)$(LD) $(LDOP) $(CFLAGS) $(OBJCNSD) $(OBJCOM) $(LIBDEP) $(MORELI= BS) $(LIBS) -o $(BINDIR)/XrdCnsd ++ $(ECHO)$(CC) $(LDFLAGS) $(CFLAGS) $(OBJCNSD) $(OBJCOM) $(LIBDEP) $(MOR= ELIBS) $(LIBS) -o $(BINDIR)/XrdCnsd +=20 + $(TARGSSI): $(OBJSSI) $(OBJCOM) $(LIBDEP) + @echo Creating executable $(BINDIR)/cns_ssi +- $(ECHO)$(LD) $(LDOP) $(CFLAGS) $(OBJSSI) $(OBJCOM) $(LIBDEP) $(MORELIB= S) $(LIBS) -o $(BINDIR)/cns_ssi ++ $(ECHO)$(CC) $(LDFLAGS) $(CFLAGS) $(OBJSSI) $(OBJCOM) $(LIBDEP) $(MORE= LIBS) $(LIBS) -o $(BINDIR)/cns_ssi +=20 + $(OBJDIR)/XrdCnsConfig.o: XrdCnsConfig.hh XrdCnsConfig.cc \ + XrdCnsDaemon.hh XrdCnsLogRec.hh \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdCrypto/GNUmakefile roo= t/net/xrootd/src/xrootd/src/XrdCrypto/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdCrypto/GNUmakefile 2011-06-28= 13:49:42.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdCrypto/GNUmakefile 2011-07-10 10:2= 4:16.138023789 +0400 +@@ -139,7 +139,7 @@ +=20 + $(LIBRARY): $(OBJECTS) $(LIBUTIL) + @echo Creating shared library $(LIBRARY)=20 +- $(ECHO)$(CC) $(OBJECTS) $(LDSO) $(LIBUTIL) -o $(LIBRARY) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECTS) $(LDSO) $(LIBUTIL) -o $(LIBRARY) +=20 + $(LIBASSL): $(OBJCSSL) + @echo Creating archive $(LIBASSL)=20 +@@ -149,11 +149,11 @@ +=20 + $(LIBCSSL): $(OBJCSSL) $(LIBARCH) $(LIBUTIL) + @echo Creating shared library $(LIBCSSL)=20 +- $(ECHO)$(LD) $(OBJCSSL) $(LDSO) $(LIBSSL) $(LIBARCH) $(LIBUTIL) -o $(L= IBCSSL) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJCSSL) $(LDSO) $(LIBSSL) $(LIBARCH) $(LIBU= TIL) -o $(LIBCSSL) +=20 + $(CRYPTOTEST): $(OBJECTA) $(LIBARCH) $(LIBDEPS) + @echo Creating executable $(CRYPTOTEST)=20 +- $(ECHO)$(LD) $(OBJECTA) $(LIBARCH) $(BINLIBS) $(LIBS) -o $(CRYPTOTEST) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJECTA) $(LIBARCH) $(BINLIBS) $(LIBS) -o $(= CRYPTOTEST) +=20 + $(OBJDIR)/XrdCryptotest.o: XrdCryptotest.cc XrdSutAux.hh XProtocol.hh X= rdSutBucket.hh \ + XrdCryptoAux.hh XrdCryptoFactory.hh XrdCryptoCipher.hh \ +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdFfs/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdFfs/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdFfs/GNUmakefile 2011-06-28 13= :49:41.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdFfs/GNUmakefile 2011-07-10 10:37:0= 8.791154841 +0400 +@@ -82,7 +82,7 @@ +=20 + $(BINARY): $(OBJECTS) $(OBJBIN) $(BINDEPS) + @echo Creating executable $(BINARY) +- $(ECHO)$(LD) $(LDOP) $(OBJBIN) $(BINDEPS) $(BINLIBS) $(LIBS) $(TYPELIB= MT) -o $(BINARY) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJBIN) $(BINDEPS) $(BINLIBS) $(LIBS) $(TYPE= LIBMT) -o $(BINARY) +=20 + $(OBJDIR)/XrdFfsDent.o: XrdFfsDent.cc XrdFfsDent.hh + @echo Compiling XrdFfsDent.cc +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdFrm/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdFrm/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdFrm/GNUmakefile 2011-06-28 13= :49:42.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdFrm/GNUmakefile 2011-07-10 10:24:1= 6.138023789 +0400 +@@ -134,15 +134,15 @@ +=20 + $(BINADMIN): $(OBJLIB) $(OBJADMIN) $(OBJDEPS) + @echo Creating executable $(BINADMIN) +- $(ECHO)$(LD) $(LDOP) $(OBJADMIN) $(OBJADDS) $(LIBREADLINE) $(LIBS) $(B= INLIBS) $(TYPELIBMT) -o $(BINADMIN) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJADMIN) $(OBJADDS) $(LIBREADLINE) $(BINLIB= S) $(LIBS) $(TYPELIBMT) -o $(BINADMIN) +=20 + $(BINPURGD): $(OBJLIB) $(OBJPURG) $(OBJADDS) $(OBJDEPS) + @echo Creating executable $(BINPURGD) +- $(ECHO)$(LD) $(LDOP) $(OBJPURG) $(OBJADDS) $(LIBS) $(BINLIBS) $(TYPELI= BMT) -o $(BINPURGD) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJPURG) $(OBJADDS) $(BINLIBS) $(LIBS) $(TYP= ELIBMT) -o $(BINPURGD) +=20 + $(BINXFRD): $(OBJLIB) $(OBJXFR) $(OBJADDS) $(OBJDEPS) + @echo Creating executables $(BINXFRD) +- $(ECHO)$(LD) $(LDOP) $(OBJXFR) $(OBJADDS) $(LIBS) $(BINLIBS) $(TYPELIB= MT) -o $(BINXFRD) ++ $(ECHO)$(CC) $(LDFLAGS) $(OBJXFR) $(OBJADDS) $(BINLIBS) $(LIBS) $(TYPE= LIBMT) -o $(BINXFRD) +=20 + $(BINAGNT): $(BINXFRD) + @echo Creating executables $(BINAGNT) +diff -Naur root.orig/net/xrootd/src/xrootd/src/XrdMon/GNUmakefile root/n= et/xrootd/src/xrootd/src/XrdMon/GNUmakefile +--- root.orig/net/xrootd/src/xrootd/src/XrdMon/GNUmakefile 2011-06-28 13= :49:43.000000000 +0400 ++++ root/net/xrootd/src/xrootd/src/XrdMon/GNUmakefile 2011-07-10 10:24:1= 6.138023789 +0400 +@@ -141,45 +141,45 @@ +=20 + $(ADMIN): $(OBJECTS_BIN_ADM) $(LIBRARY_SND) $(LIBRARY_OUC) $(LIBRARY_CO= MMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -lresolv -o $@ $^ -L$(LIBDIR) -= lXrdSys ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lresolv -o $@ $^ -L$(LIBDIR= ) -lXrdSys +=20 + $(COLLECTOR): $(OBJECTS_BIN_CTR) $(LIBRARY_CTR) \ + $(LIBRARY_DEC) $(LIBRARY_OUC) $(LIBRARY_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -o $@ $^ -L$(LIBDIR) -lXrdSys ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^ -L$(LIBDIR) -lXrdSy= s +=20 + $(CONVTIME): $(OBJECTS_BIN_CTM) $(LIBRARY_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^ +=20 + $(COUT2FILE): $(OBJECTS_BIN_C2F) $(LIBRARY_DEC) $(LIBRARY_OUC) $(LIBRAR= Y_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -lresolv -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lresolv -o $@ $^ +=20 + $(DEBUGPACKET): $(OBJECTS_BIN_DBP) $(LIBRARY_DEC) $(LIBRARY_OUC) $(LIBR= ARY_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^ +=20 + $(DECODER): $(OBJECTS_BIN_DEC) $(LIBRARY_DEC) $(LIBRARY_OUC) \ + $(LIBRARY_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^ +=20 + $(DUMPPACKETS): $(OBJECTS_BIN_DMP) $(LIBRARY_DEC) $(LIBRARY_COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ $^ +=20 + $(FSENDER): $(OBJECTS_BIN_FSD) $(LIBRARY_SND) $(LIBRARY_OUC) $(LIBRARY_= COMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -lresolv -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lresolv -o $@ $^ +=20 + $(SENDER): $(OBJECTS_BIN_SND) $(LIBRARY_SND) $(LIBRARY_OUC) $(LIBRARY_C= OMMON)=20 + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -lresolv -o $@ $^ -L$(LIBDIR) -= lXrdSys ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lresolv -o $@ $^ -L$(LIBDIR= ) -lXrdSys +=20 + $(TESTPARSER): $(OBJECTS_BIN_TPR) $(LIBRARY_COMMON) + @echo Creating executable $(@F) +- $(ECHO)$(CC) $(CFLAGS) $(LDOP) $(LIBS) -lresolv -o $@ $^ ++ $(ECHO)$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -lresolv -o $@ $^ +=20 + $(OBJDIR)/%.o : %.cc + @echo Compiling $( /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 0000000..e725cd1 --- /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=3D"root" + +# Please refer to the xrootd(1) man(1) page for more +# information on command line parameters.=20 +XROOTD_OPTS=3D"" diff --git a/sci-physics/root/files/xrootd.initd b/sci-physics/root/files= /xrootd.initd new file mode 100644 index 0000000..27e0001 --- /dev/null +++ b/sci-physics/root/files/xrootd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2011 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.xm= l new file mode 100644 index 0000000..ba73668 --- /dev/null +++ b/sci-physics/root/metadata.xml @@ -0,0 +1,31 @@ + + + +sci-physics + + 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. + + + + Buld the Clarens and PEAC plug-ins, to use in a GRID enabled + analysis. + Support for images and data from FITS files with <= pkg>sci-libs/cfitsio + Build the new cling interactive interpreter based = on sys-devel/llvm + Build all math related libraries plugins, needs sci-libs/gsl + + Builds the interface to Pythia-6 (sci-physics/pythia) + high energy physics generation events library + + + Builds the interface to Pythia-8 (sci-physics/pythia) + high energy physics generation events library + + Builds the reflection database for the C++ inter= pretor + Build the xrootd low latency file server + + diff --git a/sci-physics/root/root-5.30.00.ebuild b/sci-physics/root/root= -5.30.00.ebuild new file mode 100644 index 0000000..a4c4bf8 --- /dev/null +++ b/sci-physics/root/root-5.30.00.ebuild @@ -0,0 +1,339 @@ +# Copyright 1999-2011 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.3 2011/06/21 14:31:50 jlec Exp $ + +EAPI=3D3 +PYTHON_DEPEND=3D"python? 2" +inherit versionator eutils fortran-2 elisp-common fdo-mime python toolch= ain-funcs flag-o-matic + +#DOC_PV=3D$(get_major_version)_$(get_version_component_range 2) +DOC_PV=3D5_26 +ROOFIT_DOC_PV=3D2.91-33 +TMVA_DOC_PV=3D4.03 +PATCH_PV=3D5.28.00b + +DESCRIPTION=3D"C++ data analysis framework and interpreter from CERN" +HOMEPAGE=3D"http://root.cern.ch/" +SRC_URI=3D"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=3D"0" +LICENSE=3D"LGPL-2.1" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"+X afs avahi clarens doc emacs examples fits fftw graphviz kerbe= ros ldap + llvm +math mpi mysql ncurses odbc +opengl openmp oracle postgres pythia= 6 + pythia8 python +reflex ruby qt4 ssl xft xml xinetd xrootd" + +CDEPEND=3D"app-arch/xz-utils + >=3Ddev-lang/cfortran-4.4-r2 + dev-libs/libpcre + media-libs/freetype + media-libs/giflib + media-libs/libpng + media-libs/tiff + sys-apps/shadow + sys-libs/zlib + virtual/jpeg + X? ( + media-libs/ftgl + media-libs/glew + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + || ( >=3Dmedia-libs/libafterimage-1.20 >=3Dx11-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 ) + 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 )" + +DEPEND=3D"${CDEPEND} + dev-util/pkgconfig" + +RDEPEND=3D" + virtual/fortran +${CDEPEND} + reflex? ( dev-cpp/gccxml ) + xinetd? ( sys-apps/xinetd )" + +S=3D"${WORKDIR}/${PN}" + +pkg_setup() { + fortran-2_pkg_setup + elog + 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=3D\"--enable-srp --with-srp-libdir=3D/usr/$(get_libdi= r)\"" + elog + enewgroup rootd + enewuser rootd -1 -1 /var/spool/rootd rootd + + if use math; then + if use openmp && [[ $(tc-getCC)$ =3D=3D *gcc* ]] && ! tc-has-openmp; t= hen + ewarn "You are using gcc and OpenMP is available with gcc >=3D 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=3D1 USE_PARALLEL_MINUIT2=3D1 + elif use mpi; then + export USE_MPI=3D1 USE_PARALLEL_MINUIT2=3D1 + fi + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-xrootd-prop-flags.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \ + "${FILESDIR}"/${P}-nobyte-compile.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ + "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \ + "${FILESDIR}"/${P}-lzma.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 -rf core/lzma/src/*.tar.gz + rm graf3d/gl/{inc,src}/gl2ps.* + sed -i -e 's/^GLLIBS *:=3D .* $(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=3D"${EPREFIX}"/usr \ + --etcdir=3D"${EPREFIX}"/etc/root \ + --libdir=3D"${EPREFIX}"/usr/$(get_libdir)/${PN} \ + --docdir=3D"${EPREFIX}"/usr/share/doc/${PF} \ + --tutdir=3D"${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ + --testdir=3D"${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ + --with-cc=3D$(tc-getCC) \ + --with-cxx=3D$(tc-getCXX) \ + --with-f77=3D$(tc-getFC) \ + --with-sys-iconpath=3D"${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 \ + --disable-rpath \ + --enable-astiff \ + --enable-exceptions \ + --enable-explicitlink \ + --enable-gdml \ + --enable-memstat \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --enable-table \ + --fail-on-missing \ + --with-afs-shared=3Dyes \ + $(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 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=3D"${CFLAGS}" F77OPT=3D"${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=3D"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=3D"${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=3D"${D}" install || die "emake install failed" + + echo "LDPATH=3D${EPREFIX}/usr/$(get_libdir)/root" > 99root + use pythia8 && echo "PYTHIA8=3D${EPREFIX}/usr" >> 99root + use python && echo "PYTHONPATH=3D${EPREFIX}/usr/$(get_libdir)/root" >> = 99root + use ruby && echo "RUBYLIB=3D${EPREFIX}/usr/$(get_libdir)/root" >> 99roo= t + doenvd 99root || die "doenvd failed" + + # The build system installs Emacs support unconditionally and in the wr= ong + # directory. Remove it and call elisp-install in case of USE=3Demacs. + 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 +}