summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-03-05 19:02:19 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-03-05 19:02:19 +0000
commitefc0f56e4d4d98e99f31568fe43253d467d48ec2 (patch)
tree659064d64700304d9132959357bc515b23912a23 /sci-physics
parentKeyword on amd64 wrt bug #153911. (diff)
downloadgentoo-2-efc0f56e4d4d98e99f31568fe43253d467d48ec2.tar.gz
gentoo-2-efc0f56e4d4d98e99f31568fe43253d467d48ec2.tar.bz2
gentoo-2-efc0f56e4d4d98e99f31568fe43253d467d48ec2.zip
version bump + adding some fixes from bug #87305.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/root/ChangeLog9
-rw-r--r--sci-physics/root/files/digest-root-5.14.00c6
-rw-r--r--sci-physics/root/files/sparc-root-5.14.00c.patch30
-rw-r--r--sci-physics/root/root-5.14.00c.ebuild163
4 files changed, 207 insertions, 1 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
index 2a23445e97d9..ad3c44d90217 100644
--- a/sci-physics/root/ChangeLog
+++ b/sci-physics/root/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-physics/root
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.5 2007/02/05 16:04:09 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.6 2007/03/05 19:02:19 bicatali Exp $
+
+*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)
diff --git a/sci-physics/root/files/digest-root-5.14.00c b/sci-physics/root/files/digest-root-5.14.00c
new file mode 100644
index 000000000000..0298fb61e389
--- /dev/null
+++ b/sci-physics/root/files/digest-root-5.14.00c
@@ -0,0 +1,6 @@
+MD5 c52c3967606b5a07b648d03d7166a5c4 Users_Guide_5_14.pdf 11080966
+RMD160 b969430ae8309ed135de0ef9742ed650cbc9a4a6 Users_Guide_5_14.pdf 11080966
+SHA256 1879964f493777f5fe2a98aeab290bbcb9adc923a0292b328fced3830ce6fe8e Users_Guide_5_14.pdf 11080966
+MD5 4eff38190d89044d19d35856f5358a0d root_v5.14.00c.source.tar.gz 21402659
+RMD160 b4388a1f1401199e8d1b45d549a4cf73cb6de4c1 root_v5.14.00c.source.tar.gz 21402659
+SHA256 cc281db914e7c5d77be4368f6953b63237c56ba8616975b1403e491c5b99e801 root_v5.14.00c.source.tar.gz 21402659
diff --git a/sci-physics/root/files/sparc-root-5.14.00c.patch b/sci-physics/root/files/sparc-root-5.14.00c.patch
new file mode 100644
index 000000000000..8735709f7c04
--- /dev/null
+++ b/sci-physics/root/files/sparc-root-5.14.00c.patch
@@ -0,0 +1,30 @@
+--- root/configure- 2007-02-09 15:44:32.000000000 +0000
++++ root/configure 2007-02-09 15:48:07.000000000 +0000
+@@ -696,6 +696,7 @@
+ linux:x86_64:*) arch=linuxx8664gcc ;;
+ linux:alpha:*) arch=linuxalphagcc ;;
+ linux:arm*:*) arch=linuxarm ;;
++ linux:sparc*:*) arch=linux ;;
+ linux:ppc64*:*) arch=linuxppc64gcc ;;
+ linux:ppc*:*) arch=linuxppcgcc ;;
+ linux:i*86:*) arch=linux ;;
+--- root/xrootd/src/xrootd/config/ARCHS- 2007-02-09 15:40:20.000000000 +0000
++++ root/xrootd/src/xrootd/config/ARCHS 2007-02-09 15:43:33.000000000 +0000
+@@ -35,6 +35,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 all 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 all for PPC Linux egcs/gcc and glibc
+ ppc_linux gccppc64 all for PPC Linux egcs/gcc and glibc - 64 bit
+--- root/xrootd/src/xrootd/configure.classic- 2007-02-09 15:35:58.000000000 +0000
++++ root/xrootd/src/xrootd/configure.classic 2007-02-09 15:37:38.000000000 +0000
+@@ -421,6 +421,7 @@
+ linux:arm*:*) arch=arm_linux ; platform=linux; ccflv=gcc;;
+ linux:ppc64:*) arch=ppc_linux ; platform=linux; ccflv=gccppc64;;
+ linux:ppc*:*) arch=ppc_linux ; platform=linux; ccflv=gcc;;
++ linux:sparc*:*) arch=sparc_linux ; platform=linux; ccflv=gcc;;
+ darwin:power*:7.4*) arch=macosx_74 ; platform=macosx; ccflv=macos;;
+ darwin:power*:7*) arch=ppc_darwin_70 ; platform=macosx; ccflv=macos;;
+ darwin:power*:*) arch=macosx ; platform=macosx; ccflv=macos;;
diff --git a/sci-physics/root/root-5.14.00c.ebuild b/sci-physics/root/root-5.14.00c.ebuild
new file mode 100644
index 000000000000..8355d283e087
--- /dev/null
+++ b/sci-physics/root/root-5.14.00c.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.14.00c.ebuild,v 1.1 2007/03/05 19:02:19 bicatali Exp $
+
+inherit versionator flag-o-matic eutils toolchain-funcs qt3
+
+DOC_PV=$(get_major_version)_$(get_version_component_range 2)
+
+DESCRIPTION="C++ data analysis framework and interpreter from CERN"
+SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
+ doc? ( ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf )"
+HOMEPAGE="http://root.cern.ch/"
+
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="afs doc fftw kerberos ldap mysql odbc opengl postgres
+ python ruby qt3 ssl xml"
+
+DEPEND="sys-apps/shadow
+ >=sci-libs/gsl-1.8
+ dev-libs/libpcre
+ || ( media-libs/libafterimage x11-wm/afterstep )
+ opengl? ( virtual/opengl virtual/glu )
+ mysql? ( dev-db/mysql )
+ postgres? ( dev-db/postgresql )
+ afs? ( net-fs/openafs )
+ kerberos? ( app-crypt/mit-krb5 )
+ ldap? ( net-nds/openldap )
+ qt3? ( $(qt_min_version 3.3.4) )
+ fftw? ( >=sci-libs/fftw-3 )
+ python? ( dev-lang/python )
+ ruby? ( dev-lang/ruby )
+ ssl? ( dev-libs/openssl )
+ xml? ( dev-libs/libxml2 )
+ odbc? ( dev-db/unixODBC )"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ elog
+ elog "You may want to build ROOT with these non Gentoo extra packages:"
+ elog "AliEn, castor, Chirp, Globus, Monalisa, Oracle, peac, "
+ elog "PYTHIA, PYTHIA6, SapDB, SRP, Venus"
+ elog "You can use the EXTRA_CONF variable for this."
+ elog "Example, for PYTHIA, you would do: "
+ elog "EXTRA_CONF=\"--enable-pythia --with-pythia-libdir=/usr/$(get_libdir)\" emerge root"
+ elog
+}
+
+src_unpack() {
+ unpack ${A}
+ if [[ ${ARCH} == sparc ]]; then
+ einfo "Patch to allow ${ARCH} autoconf --- Bug 87305"
+ # first unpack all the way
+ cd ${S}/xrootd/src
+ einfo "Unpacking xrootd and mark it done"
+ tar xzf xrootd-20060928-1600.src.tgz
+ #touch headers.d
+ einfo "Patching for sparc..."
+ cd ${WORKDIR}
+ epatch ${FILESDIR}/sparc-${P}.patch
+ einfo "... complete. Now replace with something more sparc-friendly."
+ cd ${S}/xrootd/src
+ einfo "Building a kinder .tgz file"
+ tar czf xrootd-20060928-1600.src.tgz xrootd
+ einfo "Destroy all traces"
+ rm -rf xrootd
+ einfo "Unpacked for sparc"
+ fi
+}
+
+src_compile() {
+ # the configure script is not the standard autotools
+ ./configure ${EXTRA_CONF} \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --mandir=/usr/share/man/man1 \
+ --incdir=/usr/include/${PN} \
+ --libdir=/usr/$(get_libdir)/${PN} \
+ --aclocaldir=/usr/share/aclocal/ \
+ --datadir=/usr/share/${PN} \
+ --cintincdir=/usr/share/${PN}/cint \
+ --fontdir=/usr/share/${PN}/fonts \
+ --iconpath=/usr/share/${PN}/icons \
+ --macrodir=/usr/share/${PN}/macros \
+ --srcdir=/usr/share/${PN}/src \
+ --docdir=/usr/share/doc/${PF} \
+ --testdir=/usr/share/doc/${PF}/test \
+ --tutdir=/usr/share/doc/${PF}/tutorial \
+ --elispdir=/usr/share/emacs/site-lisp \
+ --etcdir=/etc/${PN} \
+ --disable-alien \
+ --disable-builtin-afterimage \
+ --disable-builtin-freetype \
+ --disable-builtin-pcre \
+ --disable-builtin-zlib \
+ --disable-cern \
+ --disable-chirp \
+ --disable-dcache \
+ --disable-globus \
+ --disable-rfio \
+ --disable-rpath \
+ --disable-sapdb \
+ --disable-srp \
+ --enable-asimage \
+ --enable-astiff \
+ --enable-cintex \
+ --enable-exceptions \
+ --enable-explicitlink \
+ --enable-gdml \
+ --enable-mathcore \
+ --enable-mathmore \
+ --enable-minuit2 \
+ --enable-reflex \
+ --enable-roofit \
+ --enable-shared \
+ --enable-soversion \
+ --enable-table \
+ --enable-thread \
+ --enable-xrootd \
+ $(use_enable afs) \
+ $(use_enable fftw fftw3) \
+ $(use_enable kerberos krb5) \
+ $(use_enable ldap) \
+ $(use_enable mysql) \
+ $(use_enable odbc) \
+ $(use_enable opengl) \
+ $(use_enable postgres pgsql) \
+ $(use_enable python) \
+ $(use_enable qt3 qt) \
+ $(use_enable qt3 qtgsi) \
+ $(use_enable ruby) \
+ $(use_enable ssl) \
+ $(use_enable xml) \
+ || die "configure failed"
+
+ emake \
+ OPTFLAGS="${CXXFLAGS}" \
+ rootcint compiledata || die "emake rootcint failed"
+ emake -j1 \
+ OPTFLAGS="${CXXFLAGS}" \
+ rootlibs || die "emake rootlibs failed"
+ emake \
+ OPTFLAGS="${CXXFLAGS}" \
+ || die "emake failed"
+
+ # is this only for windows? not quite sure.
+ make cintdlls || die "make cintdlls failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ echo "LDPATH=\"/usr/$(get_libdir)/root\"" > 99root
+ doenvd 99root
+
+ if use doc; then
+ einfo "Installing user's guide and ref manual"
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf
+ dohtml -r ${WORKDIR}/htmldoc
+ fi
+}