diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-08-24 22:09:08 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-08-24 22:09:08 +0000 |
commit | ae0c06ba36861830754a9515ff1dc5d745df60f9 (patch) | |
tree | 0326ccc360351b9cacd7b5a3b73d7341aeeb52f2 /sci-physics/root | |
parent | unmask cern in use.mask (diff) | |
download | gentoo-2-ae0c06ba36861830754a9515ff1dc5d745df60f9.tar.gz gentoo-2-ae0c06ba36861830754a9515ff1dc5d745df60f9.tar.bz2 gentoo-2-ae0c06ba36861830754a9515ff1dc5d745df60f9.zip |
Version bump. Added cern use flag. Upstream fixed xrootd for sparc and parallell makes.
(Portage version: 2.1.2.12)
Diffstat (limited to 'sci-physics/root')
-rw-r--r-- | sci-physics/root/ChangeLog | 9 | ||||
-rw-r--r-- | sci-physics/root/files/digest-root-5.16.00 | 6 | ||||
-rw-r--r-- | sci-physics/root/files/root-5.16.00-fortran.patch | 165 | ||||
-rw-r--r-- | sci-physics/root/root-5.16.00.ebuild | 169 |
4 files changed, 348 insertions, 1 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog index db22c6c78620..d10bf9d15f09 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.7 2007/07/22 06:53:29 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.8 2007/08/24 22:09:08 bicatali Exp $ + +*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: diff --git a/sci-physics/root/files/digest-root-5.16.00 b/sci-physics/root/files/digest-root-5.16.00 new file mode 100644 index 000000000000..eab76dfaaa06 --- /dev/null +++ b/sci-physics/root/files/digest-root-5.16.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 506e9cc17e700c8ccb2b9d97c98bf307 root_v5.16.00.source.tar.gz 22210601 +RMD160 3e9a29e6b899e3fb0986ef8a7b4a162d4933bf47 root_v5.16.00.source.tar.gz 22210601 +SHA256 41a36d9a469c8b86247aca59317fa40371db846555045679e759f7f332a927f8 root_v5.16.00.source.tar.gz 22210601 diff --git a/sci-physics/root/files/root-5.16.00-fortran.patch b/sci-physics/root/files/root-5.16.00-fortran.patch new file mode 100644 index 000000000000..c7c9183127cb --- /dev/null +++ b/sci-physics/root/files/root-5.16.00-fortran.patch @@ -0,0 +1,165 @@ +diff -Nur config.orig/Makefile.linux config/Makefile.linux +--- config.orig/Makefile.linux 2007-05-30 11:59:15.000000000 +0100 ++++ config/Makefile.linux 2007-07-05 15:17:22.000000000 +0100 +@@ -44,7 +44,8 @@ + CRYPTLIBS = -lcrypt + + # Fortran: +-F77 = ++F77 = gfortran ++ + ifeq ($(shell which gfortran 2>&1 | sed -ne "s/.*\/gfortran/gfortran/p"),gfortran) + ifeq ($(shell gfortran -print-libgcc-file-name),$(shell $(CC) -print-libgcc-file-name)) + F77 = gfortran +@@ -53,7 +54,8 @@ + F77LD = gfortran + endif + endif +-ifneq ($(F77),gfortran) ++ ++ifeq ($(F77),g77) + F77 = g77 + F77FLAGS = -fPIC + ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so) +@@ -63,4 +65,11 @@ + endif + endif + ++ifeq ($(F77),ifort) ++F77 = ifort ++F77FLAGS = -fPIC ++F77LIBS := -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ ++ -lifcore ++endif ++ + # Extras +diff -Nur config.orig/Makefile.linuxicc config/Makefile.linuxicc +--- config.orig/Makefile.linuxicc 2007-02-13 00:23:09.000000000 +0000 ++++ config/Makefile.linuxicc 2007-07-05 15:17:55.000000000 +0100 +@@ -67,18 +67,33 @@ + CRYPTLIBS = -lcrypt + + # Fortran: +-F77 = ifort +-F77FLAGS = +-# check for libg2c and libfrtbegin +-ifneq ($(shell g77 -print-file-name=libg2c.so),libg2c.so) +-LIBG2C := $(shell g77 -print-file-name=libg2c.so) -lnsl ++F77 = gfortran ++ ++ifeq ($(shell which gfortran 2>&1 | sed -ne "s/.*\/gfortran/gfortran/p"),gfortran) ++ifeq ($(shell gfortran -print-libgcc-file-name),$(shell $(CC) -print-libgcc-file-name)) ++F77 = gfortran ++F77FLAGS = -fPIC -std=legacy ++F77LIBS = -lgfortran -lgfortranbegin -lnsl ++F77LD = gfortran ++endif ++endif ++ ++ifeq ($(F77),g77) ++F77 = g77 ++F77FLAGS = -fPIC ++ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so) ++F77LIBS := $(shell $(F77) -print-file-name=libg2c.so) -lnsl + else +-LIBG2C := $(shell g77 -print-file-name=libg2c.a) -lnsl ++F77LIBS := $(shell $(F77) -print-file-name=libg2c.a) -lnsl ++endif ++endif ++ ++ifeq ($(F77),ifort) ++F77 = ifort ++F77FLAGS = -fPIC ++F77LIBS := -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ ++ -lifcore + endif +-LIBFRTBEGIN := $(shell g77 -print-file-name=libfrtbegin.a) +-F77LIBS = $(LIBFRTBEGIN) $(LIBG2C) \ +- -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ +- -lifcore + + # Precompiled headers: + PCHSUPPORTED := $(ENABLEPCH) +diff -Nur config.orig/Makefile.linuxx8664gcc config/Makefile.linuxx8664gcc +--- config.orig/Makefile.linuxx8664gcc 2006-06-04 00:48:43.000000000 +0100 ++++ config/Makefile.linuxx8664gcc 2007-07-05 15:18:16.000000000 +0100 +@@ -43,6 +43,18 @@ + CRYPTLIBS = -lcrypt + + # Fortran: ++F77 = gfortran ++ ++ifeq ($(shell which gfortran 2>&1 | sed -ne "s/.*\/gfortran/gfortran/p"),gfortran) ++ifeq ($(shell gfortran -print-libgcc-file-name),$(shell $(CC) -print-libgcc-file-name)) ++F77 = gfortran ++F77FLAGS = -fPIC -std=legacy ++F77LIBS = -lgfortran -lgfortranbegin -lnsl ++F77LD = gfortran ++endif ++endif ++ ++ifeq ($(F77),g77) + F77 = g77 + F77FLAGS = -fPIC + ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so) +@@ -50,5 +62,13 @@ + else + F77LIBS := $(shell $(F77) -print-file-name=libg2c.a) -lnsl + endif ++endif ++ ++ifeq ($(F77),ifort) ++F77 = ifort ++F77FLAGS = -fPIC ++F77LIBS := -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ ++ -lifcore ++endif + + # Extras +diff -Nur config.orig/Makefile.linuxx8664icc config/Makefile.linuxx8664icc +--- config.orig/Makefile.linuxx8664icc 2007-01-18 13:00:33.000000000 +0000 ++++ config/Makefile.linuxx8664icc 2007-07-05 15:18:32.000000000 +0100 +@@ -67,18 +67,34 @@ + CRYPTLIBS = -lcrypt + + # Fortran: +-F77 = ifort ++F77 = gfortran ++ ++ifeq ($(shell which gfortran 2>&1 | sed -ne "s/.*\/gfortran/gfortran/p"),gfortran) ++ifeq ($(shell gfortran -print-libgcc-file-name),$(shell $(CC) -print-libgcc-file-name)) ++F77 = gfortran ++F77FLAGS = -fPIC -std=legacy ++F77LIBS = -lgfortran -lgfortranbegin -lnsl ++F77LD = gfortran ++endif ++endif ++ ++ifeq ($(F77),g77) ++F77 = g77 + F77FLAGS = -fPIC +-# check for libg2c and libfrtbegin +-ifneq ($(shell g77 -print-file-name=libg2c.so),libg2c.so) +-LIBG2C := $(shell g77 -print-file-name=libg2c.so) -lnsl ++ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so) ++F77LIBS := $(shell $(F77) -print-file-name=libg2c.so) -lnsl + else +-LIBG2C := $(shell g77 -print-file-name=libg2c.a) -lnsl ++F77LIBS := $(shell $(F77) -print-file-name=libg2c.a) -lnsl + endif +-LIBFRTBEGIN := $(shell g77 -print-file-name=libfrtbegin.a) +-F77LIBS = $(LIBFRTBEGIN) $(LIBG2C) \ +- -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ +- -lifcore ++endif ++ ++ifeq ($(F77),ifort) ++F77 = ifort ++F77FLAGS = -fPIC ++F77LIBS := -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \ ++ -lifcore ++endif ++ + + # Precompiled headers: + PCHSUPPORTED := $(ENABLEPCH) diff --git a/sci-physics/root/root-5.16.00.ebuild b/sci-physics/root/root-5.16.00.ebuild new file mode 100644 index 000000000000..76e31b1bbf28 --- /dev/null +++ b/sci-physics/root/root-5.16.00.ebuild @@ -0,0 +1,169 @@ +# 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.16.00.ebuild,v 1.1 2007/08/24 22:09:08 bicatali Exp $ + +inherit versionator flag-o-matic eutils toolchain-funcs qt3 fortran + +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 cern doc fftw kerberos ldap mysql odbc opengl postgres + python ruby qt3 ssl truetype 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? ( virtual/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 ) + cern? ( sci-physics/cernlib ) + odbc? ( dev-db/unixODBC ) + truetype? ( x11-libs/libXft )" + +S=${WORKDIR}/${PN} + +pkg_setup() { + elog + elog "You may want to build ROOT with these non Gentoo extra packages:" + elog "AliEn, castor, Chirp, clarens, 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 + elog "You can also build root with icc, simply by letting CC=icc" + + if use cern; then + FORTRAN="gfortran g77 ifc" + fortran_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + # patch to properly set link flags with fortran compilers + epatch "${FILESDIR}"/${P}-fortran.patch +} + +src_compile() { + + local target + if [[ "$(tc-getCXX)" == icc* ]]; then + if use amd64; then + target=linuxx8664icc + elif use x86; then + target=linuxicc + fi + fi + + local myfortran + use cern && myfortran="F77=${FORTRANC}" + + # watch: the configure script is not the standard autotools + # disable-pch: precompiled headers buggy with icc + + ./configure ${target} \ + --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-chirp \ + --disable-dcache \ + --disable-globus \ + --disable-pch \ + --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-unuran \ + --enable-xrootd \ + $(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 opengl) \ + $(use_enable postgres pgsql) \ + $(use_enable python) \ + $(use_enable qt3 qt) \ + $(use_enable qt3 qtgsi) \ + $(use_enable ruby) \ + $(use_enable ssl) \ + $(use_enable truetype xft) \ + $(use_enable xml) \ + ${EXTRA_CONF} \ + || die "configure failed" + + emake \ + OPTFLAGS="${CXXFLAGS}" \ + ${myfortran} \ + || 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 +} |