summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-01-17 20:58:45 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-01-17 20:58:45 +0000
commit8546a3f6418bd8ae855e8f2c15abe471c0914c8a (patch)
tree183e7773cca362f4209ad5f94eddce7a9771339a /sci-physics/root
parentwhitespace (diff)
downloadgentoo-2-8546a3f6418bd8ae855e8f2c15abe471c0914c8a.tar.gz
gentoo-2-8546a3f6418bd8ae855e8f2c15abe471c0914c8a.tar.bz2
gentoo-2-8546a3f6418bd8ae855e8f2c15abe471c0914c8a.zip
Version bump. Compiles with pic shared libs (via patches). Most earlier patches and problems have been sent upstream.
(Portage version: 2.1.4)
Diffstat (limited to 'sci-physics/root')
-rw-r--r--sci-physics/root/ChangeLog10
-rw-r--r--sci-physics/root/files/digest-root-5.18.006
-rw-r--r--sci-physics/root/files/root-pic.patch35
-rw-r--r--sci-physics/root/files/root-xrootd-flags.patch12
-rw-r--r--sci-physics/root/root-5.18.00.ebuild178
5 files changed, 240 insertions, 1 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
index a7fc1bb59bd4..02673dbbef36 100644
--- a/sci-physics/root/ChangeLog
+++ b/sci-physics/root/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-physics/root
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.19 2008/01/10 00:08:22 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.20 2008/01/17 20:58:44 bicatali Exp $
+
+*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,
diff --git a/sci-physics/root/files/digest-root-5.18.00 b/sci-physics/root/files/digest-root-5.18.00
new file mode 100644
index 000000000000..943868a1bc1d
--- /dev/null
+++ b/sci-physics/root/files/digest-root-5.18.00
@@ -0,0 +1,6 @@
+MD5 52332670de3d20f9cd5d7ec5bb87df41 Users_Guide_5_16.pdf 11196352
+RMD160 149c2421b7453273e6e1d849e17b736878ebb316 Users_Guide_5_16.pdf 11196352
+SHA256 c20fb206aa3eff6f3ec034c24483c4ceed04e08a1eef8b117da7956c2f471d34 Users_Guide_5_16.pdf 11196352
+MD5 0526f0478c829cc5d858462bfbdf2e48 root_v5.18.00.source.tar.gz 23804036
+RMD160 e38e075706102cce5b97c4f0e921cf9ff4a53409 root_v5.18.00.source.tar.gz 23804036
+SHA256 a47ac29a826bd55717e4793806277c15d1e186bae9abe291bd2ff72843c19772 root_v5.18.00.source.tar.gz 23804036
diff --git a/sci-physics/root/files/root-pic.patch b/sci-physics/root/files/root-pic.patch
new file mode 100644
index 000000000000..796ff34530ef
--- /dev/null
+++ b/sci-physics/root/files/root-pic.patch
@@ -0,0 +1,35 @@
+--- configure.orig 2008-01-17 17:11:16.765239211 +0000
++++ configure 2008-01-17 17:38:57.088901480 +0000
+@@ -1539,7 +1539,7 @@
+ if pkg-config --exists ftgl ; then
+ result "ok"
+ ftglincdir=`pkg-config --cflags-only-I ftgl | sed 's/-I//g'`
+- ftgllibs=`pkg-config --libs-only-l ftgl | sed s'/-lftgl/-lftgl_pic/'`
++ ftgllibs=`pkg-config --libs-only-l ftgl`
+ ftgllibdir=`pkg-config --libs-only-L ftgl | sed 's/-L//g'`
+ enable_builtin_ftgl=no
+ else
+@@ -3868,8 +3868,8 @@
+ gslskip=
+ hasmathmore="define"
+ # by default use now static GSL library everywhere
+- #enable_gsl_shared=$enable_shared"
+- enable_gsl_shared="no"
++ enable_gsl_shared="$enable_shared"
++ #enable_gsl_shared="no"
+
+ check_header "gsl/gsl_version.h" "$gslincdir" $GSL $GSL/include \
+ $GSL/api /usr/local/include /usr/include /opt/gsl/include \
+@@ -3955,10 +3955,10 @@
+ # and linker flags
+ result "ok"
+ gslflags=`gsl-config --cflags`
+- #gsllibs=`gsl-config --libs`
++ gsllibs=`gsl-config --libs`
+ #use static libs
+ gslprefix=`gsl-config --prefix`
+- gsllibs="$gslprefix/lib/libgsl.a $gslprefix/lib/libgslcblas.a"
++ #gsllibs="$gslprefix/lib/libgsl.a $gslprefix/lib/libgslcblas.a"
+ gsllibdir=""
+ gslversion=$gsl_version
+ fi
diff --git a/sci-physics/root/files/root-xrootd-flags.patch b/sci-physics/root/files/root-xrootd-flags.patch
new file mode 100644
index 000000000000..ed4ef22dfa37
--- /dev/null
+++ b/sci-physics/root/files/root-xrootd-flags.patch
@@ -0,0 +1,12 @@
+--- xrootd/Module.mk.orig 2008-01-17 17:16:53.152329508 +0000
++++ xrootd/Module.mk 2008-01-17 17:18:27.318594421 +0000
+@@ -77,6 +77,9 @@
+ gunzip -c $(XROOTDVERS).src.tgz | tar xf -; \
+ etag=`basename $(XROOTDETAG)` ; \
+ touch $$etag ; \
++ sed -i \
++ -e 's:$$(CFOP):$$(CFOP) $$(OPTFLAGS):g' \
++ xrootd/config/GNUmake.env.in ; \
+ fi)
+ ifeq ($(PLATFORM),win32)
+ @(if [ -d $(XROOTDDIRD)/pthreads-win32 ]; then \
diff --git a/sci-physics/root/root-5.18.00.ebuild b/sci-physics/root/root-5.18.00.ebuild
new file mode 100644
index 000000000000..9f699ee7c1a0
--- /dev/null
+++ b/sci-physics/root/root-5.18.00.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.18.00.ebuild,v 1.1 2008/01/17 20:58:44 bicatali Exp $
+
+inherit versionator flag-o-matic eutils toolchain-funcs qt3 qt4 fortran
+
+#DOC_PV=$(get_major_version)_$(get_version_component_range 2)
+DOC_PV=5_16
+
+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 cern cint7 doc fftw kerberos ldap mysql odbc pch postgres
+ python ruby qt3 qt4 ssl truetype xml"
+
+RDEPEND="sys-apps/shadow
+ x11-libs/libXpm
+ media-libs/ftgl
+ >=sci-libs/gsl-1.8
+ dev-libs/libpcre
+ virtual/opengl
+ virtual/glu
+ || ( >=media-libs/libafterimage-1.15 x11-wm/afterstep )
+ afs? ( net-fs/openafs )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ qt3? ( !qt4? ( $(qt_min_version 3.3.4) ) )
+ qt4? ( $(qt_min_version 4.3) )
+ fftw? ( >=sci-libs/fftw-3 )
+ python? ( dev-lang/python )
+ ruby? ( dev-lang/ruby )
+ ssl? ( dev-libs/openssl )
+ xml? ( dev-libs/libxml2 )
+ cern? ( sci-physics/cernlib )
+ odbc? ( dev-db/unixODBC )
+ truetype? ( x11-libs/libXft )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ elog
+ elog "You may want to build ROOT with these non Gentoo extra packages:"
+ elog "AliEn, castor, Chirp, clarens, gfal, Globus, GEANT4, Monalisa, "
+ elog "Oracle, peac, PYTHIA, PYTHIA6, SapDB, SRP, Venus"
+ elog "You can use the EXTRA_ECONF variable for this."
+ elog "Example, for PYTHIA, you would do: "
+ elog "EXTRA_ECONF=\"--enable-pythia --with-pythia-libdir=/usr/$(get_libdir)\" emerge root"
+ elog
+ epause 7
+ if use cern; then
+ FORTRAN="gfortran g77 ifc"
+ fortran_pkg_setup
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-5.16.00-xft.patch
+ epatch "${FILESDIR}"/${PN}-pic.patch
+}
+
+src_compile() {
+
+ local target
+ local myconf="--disable-pch"
+ use pch && myconf="--enable-pch"
+ if [[ "$(tc-getCXX)" == icc* ]]; then
+ if use amd64; then
+ target=linuxx8664icc
+ elif use x86; then
+ target=linuxicc
+ fi
+ myconf="--disable-pch"
+ fi
+
+ local myfortran
+ use cern && \
+ myfortran="${FORTRANC} ${FFLAGS}"
+
+ # watch: the configure script is not the standard autotools
+ ./configure \
+ ${target} \
+ ${myconf} \
+ --with-f77="${myfortran}" \
+ --with-cc="$(tc-getCC) ${CFLAGS}" \
+ --with-cxx="$(tc-getCXX) ${CXXFLAGS}" \
+ --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-builtin-afterimage \
+ --disable-builtin-freetype \
+ --disable-builtin-ftgl \
+ --disable-builtin-pcre \
+ --disable-builtin-zlib \
+ --enable-asimage \
+ --enable-astiff \
+ --enable-cintex \
+ --enable-exceptions \
+ --enable-explicitlink \
+ --enable-gdml \
+ --enable-mathcore \
+ --enable-mathmore \
+ --enable-minuit2 \
+ --enable-opengl \
+ --enable-reflex \
+ --enable-roofit \
+ --enable-shadowpw \
+ --enable-shared \
+ --enable-soversion \
+ --enable-table \
+ --enable-unuran \
+ --enable-xrootd \
+ $(use_enable cint7) \
+ $(use_enable pch) \
+ $(use_enable afs) \
+ $(use_enable cern) \
+ $(use_enable fftw fftw3) \
+ $(use_enable kerberos krb5) \
+ $(use_enable ldap) \
+ $(use_enable mysql) \
+ $(use_enable odbc) \
+ $(use_enable postgres pgsql) \
+ $(use_enable python) \
+ $(use_enable qt3 qt) \
+ $(use_enable qt3 qtgsi) \
+ $(use_enable qt4 qt) \
+ $(use_enable qt4 qtgsi) \
+ $(use_enable ruby) \
+ $(use_enable ssl) \
+ $(use_enable truetype xft) \
+ $(use_enable xml) \
+ ${EXTRA_ECONF} \
+ || die "configure failed"
+
+ emake || die "emake failed"
+
+ # is this only for windows? not quite sure.
+ emake cintdlls || die "emake cintdlls failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ echo "LDPATH=/usr/$(get_libdir)/root" > 99root
+ doenvd 99root || die "doenvd failed"
+
+ if use doc; then
+ einfo "Installing user's guide and ref manual"
+ insinto /usr/share/doc/${PF}
+ doins "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
+ || die "pdf install failed"
+ fi
+}