--- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ files/root-4.02.00-xrootd+TU.patch 2005-03-30 15:42:03.000000000 +0000 @@ -0,0 +1,51 @@ +--- root-/xrootd/src/xrootd/configure 2004-12-14 12:02:11.000000000 +0000 ++++ root/xrootd/src/xrootd/configure 2005-03-29 15:10:28.000000000 +0000 +@@ -395,6 +395,7 @@ + linux:x86_64:2.6*) arch=x86_64_linux_26 ; platform=linux; ccflv=gccx8664;; + linux:x86_64:*) arch=x86_64_linux ; platform=linux; ccflv=gccx8664;; + linux:alpha:*) arch=alpha_linux ; platform=linux; ccflv=gcc;; ++ linux:sparc*:*) arch=sparc_linux ; platform=linux; ccflv=gcc;; + linux:arm*:*) arch=arm_linux ; platform=linux; ccflv=gcc;; + linux:ppc*:*) arch=ppc_linux ; platform=linux; ccflv=gcc;; + darwin:power*:7.5*) arch=ppc_darwin_70 ; platform=macosx; ccflv=macos;; +--- root-/xrootd/src/xrootd/config/ARCHS 2004-10-22 06:19:28.000000000 +0000 ++++ root/xrootd/src/xrootd/config/ARCHS 2005-03-29 15:11:43.000000000 +0000 +@@ -33,6 +33,7 @@ + x86_64_linux_26 iccx8664 all for AMD Opteron 64 Linux kernel 2.6.x Intel icc + x86_64_linux iccx8664 all for AMD Opteron 64 Linux Intel icc + alpha_linux gcc no for Alpha Linux egcs and glibc ++sparc_linux gcc all for Sparc Linux gcc and glibc + arm_linux gcc no for ARM Linux egcs and glibc + ppc_linux gcc no for PPC Linux egcs and glibc + ppc_darwin_70 macos all for MacOSX gcc +--- root-/xrootd/src/xrootd/config/GNUmake.rules.gcc 2004-10-22 06:19:28.000000000 +0000 ++++ root/xrootd/src/xrootd/config/GNUmake.rules.gcc 2005-03-30 12:32:08.000000000 +0000 +@@ -11,7 +11,7 @@ + -Wall -Wno-deprecated -D__linux__ $(CFTRACE) + TYPECF32 = + TYPECF64 = -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +-TYPEOPT = $(TYPEMISC) ++TYPEOPT = $(TYPEMISC) $(OPT) + TYPEDBG = $(TYPEMISC) -g + TYPELDSO = -shared + TYPESHLIB = so +--- root-/unix/src/TUnixSystem.cxx 2004-12-15 22:26:04.000000000 +0000 ++++ root/unix/src/TUnixSystem.cxx 2005-03-30 15:41:19.000000000 +0000 +@@ -597,7 +597,7 @@ + fenv_t oldenv; + fegetenv(&oldenv); + fesetenv(&oldenv); +- #ifdef __alpha__ ++ #if defined(__alpha__ )|| defined(__sparc__) + ULong_t oldmask = ~oldenv; + #elif __ia64__ + Int_t oldmask = ~oldenv; +@@ -646,7 +646,7 @@ + + fenv_t cur; + fegetenv(&cur); +- #if defined __ia64__ || defined __alpha__ ++ #if defined(__ia64__ ) || defined(__alpha__) || defined(__sparc__) + cur &= ~newm; + #else + cur.__control_word &= ~newm; --- root-4.02.00.ebuild- 2005-03-30 14:59:57.000000000 +0000 +++ root-4.02.00.ebuild 2005-03-30 17:15:16.000000000 +0000 @@ -13,8 +13,8 @@ SLOT="0" LICENSE="as-is" -KEYWORDS="x86 -sparc" -IUSE="afs kerberos ldap mysql opengl postgres python qt" +KEYWORDS="x86 ~sparc" +IUSE="afs kerberos ldap mysql opengl postgres python ruby qt" DEPEND="virtual/x11 >=media-libs/freetype-2.0.9 @@ -28,6 +28,22 @@ qt? ( x11-libs/qt ) python? ( dev-lang/python )" +src_unpack() { + ebegin "Unpack ${P} source" + unpack root_v${MY_VER}.source${MY_PATCH}.tar.gz + eend 0 + ebegin "Look-ahead patch for sparc support" + cd ${S}/xrootd/src + tar xzf xrootd-20041124-0752.src.tgz + cd ${S} + einfo "Apply sparc patch" + epatch ${FILESDIR}/${P}-xrootd+TU.patch + cd ${S}/xrootd/src + einfo "Repackage so that build later will allow sparc" + tar czf xrootd-20041124-0752.src.tgz xrootd + eend 0 +} + src_compile() { local myconf @@ -155,6 +171,7 @@ $USEPYTHIA6 \ `use_enable qt` \ `use_enable python` \ + `use_enable ruby` \ --disable-rfio \ --disable-rpath \ --disable-sapdb \