diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 23:01:57 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 23:01:57 +0000 |
commit | 498e51ae7490788aa9c1514a78f596adcd7b58b2 (patch) | |
tree | 640728bc8a0081e8d0d9c8057e5fcf6a1907a29c /sci-libs/root | |
parent | Change encoding to UTF-8 for GLEP 31 compliance (diff) | |
download | gentoo-2-498e51ae7490788aa9c1514a78f596adcd7b58b2.tar.gz gentoo-2-498e51ae7490788aa9c1514a78f596adcd7b58b2.tar.bz2 gentoo-2-498e51ae7490788aa9c1514a78f596adcd7b58b2.zip |
Moved from dev-libs/root to sci-libs/root.
Diffstat (limited to 'sci-libs/root')
-rw-r--r-- | sci-libs/root/ChangeLog | 68 | ||||
-rw-r--r-- | sci-libs/root/Manifest | 13 | ||||
-rw-r--r-- | sci-libs/root/files/digest-root-3.03.04-r2 | 1 | ||||
-rw-r--r-- | sci-libs/root/files/digest-root-3.05.04 | 1 | ||||
-rw-r--r-- | sci-libs/root/files/digest-root-3.10.02-r1 | 1 | ||||
-rw-r--r-- | sci-libs/root/files/digest-root-4.00.06a | 1 | ||||
-rw-r--r-- | sci-libs/root/files/pgsql-no-libpq-int.patch | 10 | ||||
-rw-r--r-- | sci-libs/root/files/root-4.00.06a-gcc-3.4.patch | 47 | ||||
-rw-r--r-- | sci-libs/root/files/root-makefile.patch | 28 | ||||
-rw-r--r-- | sci-libs/root/metadata.xml | 5 | ||||
-rw-r--r-- | sci-libs/root/root-3.03.04-r2.ebuild | 70 | ||||
-rw-r--r-- | sci-libs/root/root-3.05.04.ebuild | 68 | ||||
-rw-r--r-- | sci-libs/root/root-3.10.02-r1.ebuild | 173 | ||||
-rw-r--r-- | sci-libs/root/root-4.00.06a.ebuild | 184 |
14 files changed, 670 insertions, 0 deletions
diff --git a/sci-libs/root/ChangeLog b/sci-libs/root/ChangeLog new file mode 100644 index 000000000000..96c2b2769ce5 --- /dev/null +++ b/sci-libs/root/ChangeLog @@ -0,0 +1,68 @@ +# ChangeLog for dev-libs/root +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/root/ChangeLog,v 1.1 2004/12/28 23:01:57 ribosome Exp $ + +*root-3.10.02-r1 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/pgsql-no-libpq-int.patch, +files/root-4.00.06a-gcc-3.4.patch, + +files/root-makefile.patch, +root-3.03.04-r2.ebuild, +root-3.05.04.ebuild, + +root-3.10.02-r1.ebuild, +root-4.00.06a.ebuild: + Moved from dev-libs/root to sci-libs/root. + +*root-4.00.06a (02 Jul 2004) + + 02 Jul 2004; Patrick Kursawe <phosphan@gentoo.org> metadata.xml, + root-4.00.06a.ebuild, files/root-4.00.06a-gcc-3.4.patch: + Version bump, see bug #55719 - gcc 3.4 patch extracted from "root" CVS. + +*root-3.10.02-r1 (15 Jun 2004) + + 15 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02-r1.ebuild, + root-3.10.02.ebuild: + Shared libs were not found, see bug #53095 + + 07 Jun 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02.ebuild: + According to user report (forums/slackerman) it works for amd64. + +*root-3.10.02 (20 Apr 2004) + + 20 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> root-3.10.02.ebuild: + Version bump, see bug #34412 + + 06 Oct 2003; Heinrich Wendel <lanius@gentoo.org> root-3.05.04.ebuild: + stable bump #29947 + + 12 Jun 2003; Seemant Kulleen <seemant@gentoo.org> root-3.03.04-r2.ebuild: + xfree provides xpm + +*root-3.05.04 (25 Apr 2003) + + 25 Feb 2003; Luca Barbato <kain@kain.org> root-3.05.04.ebuild : + New version, as suggested by Dmitry Kustov <dimok77@hotmail.com> + +*root-3.03.04-r2 (22 Feb 2003) + + 22 Feb 2003; Bryon Roche <kain@kain.org> root-3.03.04-r1.ebuild root-3.03.04-r2.ebuild files/digest-root-3.03.04-r2 files/pgsql-no-libpq-int.patch files/root-makefile.patch : + Fixed header include issues with the PostgreSQL api, as well as configuration/compilation issues. + + 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords + +*root-3.03.04-r1 (11 Apr 2002) + + 24 Oct 2002; J.Alberto Suárez López <bass@gentoo.org> root-3.03.04-r1.ebuild + Typo error in the ebuild appear 'econ' not 'econf'. + + 11 Apr 2002; G.Bevin <gbevin@gentoo.org> root-3.03.04-r1.ebuild + files/digest-root-3.03.04-r1 : + + Added env entry for the libs. + Removed rpath switch from configure since it created a segfaulting root + executable. + +*root-3.03.04 (11 Apr 2002) + + 11 Apr 2002; G.Bevin <gbevin@gentoo.org> root-3.03.04.ebuild + files/digest-root-3.03.04 : + + Initial release diff --git a/sci-libs/root/Manifest b/sci-libs/root/Manifest new file mode 100644 index 000000000000..561969afe394 --- /dev/null +++ b/sci-libs/root/Manifest @@ -0,0 +1,13 @@ +MD5 9893a8e3cd01c95b9ee82a60761659cf root-3.10.02-r1.ebuild 4745 +MD5 5a28f8a50ce243f5fbeba3d1d2695018 root-3.05.04.ebuild 1613 +MD5 cc509e0ccf736a6d1b4d255d00959d20 root-3.03.04-r2.ebuild 1617 +MD5 d521ea85baa62382e97b272f9bc441d8 root-4.00.06a.ebuild 4945 +MD5 48488ed7710d5111413ffed065be608d ChangeLog 2172 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 58ce6f63773b28de747663b7e908e2bb files/root-makefile.patch 742 +MD5 053f8a5dbe37435f2b62ee44c79e9523 files/digest-root-3.05.04 73 +MD5 cb6730d3f0de83973de47c6bf1d82cfa files/digest-root-3.03.04-r2 73 +MD5 1ef2792a1fad865173670aa5942bef6c files/pgsql-no-libpq-int.patch 290 +MD5 20d87dacea92f9c1128048bf8a7e5e32 files/digest-root-4.00.06a 75 +MD5 da92522ba08f8d50e5197b6a9fd7549f files/digest-root-3.10.02-r1 74 +MD5 bd215c79e54b143ed1ecdb7d3e45f10b files/root-4.00.06a-gcc-3.4.patch 2709 diff --git a/sci-libs/root/files/digest-root-3.03.04-r2 b/sci-libs/root/files/digest-root-3.03.04-r2 new file mode 100644 index 000000000000..ef93a97a2fdb --- /dev/null +++ b/sci-libs/root/files/digest-root-3.03.04-r2 @@ -0,0 +1 @@ +MD5 70edd37d08af7efb281abafd014bd9d4 root_v3.03.04.source.tar.gz 5367020 diff --git a/sci-libs/root/files/digest-root-3.05.04 b/sci-libs/root/files/digest-root-3.05.04 new file mode 100644 index 000000000000..804b7cd89bda --- /dev/null +++ b/sci-libs/root/files/digest-root-3.05.04 @@ -0,0 +1 @@ +MD5 532d4181fb7b87fe28436d19c03faa9e root_v3.05.04.source.tar.gz 9386408 diff --git a/sci-libs/root/files/digest-root-3.10.02-r1 b/sci-libs/root/files/digest-root-3.10.02-r1 new file mode 100644 index 000000000000..d94d0b216c90 --- /dev/null +++ b/sci-libs/root/files/digest-root-3.10.02-r1 @@ -0,0 +1 @@ +MD5 7e8fcc3c2c1f3590c11cb68c7f5ceeb5 root_v3.10.02.source.tar.gz 10321619 diff --git a/sci-libs/root/files/digest-root-4.00.06a b/sci-libs/root/files/digest-root-4.00.06a new file mode 100644 index 000000000000..377c130309a8 --- /dev/null +++ b/sci-libs/root/files/digest-root-4.00.06a @@ -0,0 +1 @@ +MD5 8fec2ea3252dd6bd76f9933665c7142c root_v4.00.06.sourcea.tar.gz 10953070 diff --git a/sci-libs/root/files/pgsql-no-libpq-int.patch b/sci-libs/root/files/pgsql-no-libpq-int.patch new file mode 100644 index 000000000000..e099d046d3c5 --- /dev/null +++ b/sci-libs/root/files/pgsql-no-libpq-int.patch @@ -0,0 +1,10 @@ +--- root/pgsql/inc/TPgSQLResult.h.orig 2003-02-22 04:11:06.000000000 -0600 ++++ root/pgsql/inc/TPgSQLResult.h 2003-02-22 04:11:10.000000000 -0600 +@@ -19,7 +19,6 @@ + #if !defined(__CINT__) + #include <sys/time.h> + #include <libpq-fe.h> +-#include <libpq-int.h> + #else + struct PGresult; + #endif diff --git a/sci-libs/root/files/root-4.00.06a-gcc-3.4.patch b/sci-libs/root/files/root-4.00.06a-gcc-3.4.patch new file mode 100644 index 000000000000..de8ee58ece5f --- /dev/null +++ b/sci-libs/root/files/root-4.00.06a-gcc-3.4.patch @@ -0,0 +1,47 @@ +diff -u -r1.17 -r1.18 +--- cint/src/gcc3strm.cxx 2004/04/26 21:50:31 1.17 ++++ cint/src/gcc3strm.cxx 2004/07/01 20:02:52 1.18 +@@ -139,7 +139,8 @@ + } + + static int G__G__stream_5_4_0(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) { +- G__letint(result7,108,(long)((const fpos<mbstate_t>*)(G__getstructoffset()))->operator long()); ++ const fpos<mbstate_t>*pos = (const fpos<mbstate_t>*)(G__getstructoffset()); ++ G__letint(result7,108,(long)(*pos)); + return(1 || funcname || hash || result7 || libp) ; + } + +@@ -2023,13 +2024,13 @@ + return(1 || funcname || hash || result7 || libp) ; + } + +-static int G__G__stream__1_16(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) { +- { +- const ostream& obj=operator<<(*(ostream*)libp->para[0].ref,*(streampos*)libp->para[1].ref); +- result7->ref=(long)(&obj); result7->obj.i=(long)(&obj); +- } +- return(1 || funcname || hash || result7 || libp) ; +-} ++// static int G__G__stream__1_16(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) { ++// { ++// const ostream& obj=operator<<(*(ostream*)libp->para[0].ref,*(streampos*)libp->para[1].ref); ++// result7->ref=(long)(&obj); result7->obj.i=(long)(&obj); ++// } ++// return(1 || funcname || hash || result7 || libp) ; ++// } + + static int G__G__stream__2_16(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) { + { +@@ -3621,9 +3622,9 @@ + G__memfunc_setup("operator<<",996,G__G__stream__0_16,117,G__get_linked_tagnum(&G__G__streamLN_basic_ostreamlEcharcOchar_traitslEchargRsPgR),G__defined_typename("ostream"),1,2,1,1,0, + "u 'basic_ostream<char,char_traits<char> >' 'ostream' 1 - - g - - 0 - -",(char*)NULL + ,(void*)NULL,0); +- G__memfunc_setup("operator<<",996,G__G__stream__1_16,117,G__get_linked_tagnum(&G__G__streamLN_basic_ostreamlEcharcOchar_traitslEchargRsPgR),G__defined_typename("ostream"),1,2,1,1,0, +-"u 'basic_ostream<char,char_traits<char> >' 'ostream' 1 - - u 'fpos<mbstate_t>' 'streampos' 11 - -",(char*)NULL +-,(void*)NULL,0); ++// G__memfunc_setup("operator<<",996,G__G__stream__1_16,117,G__get_linked_tagnum(&G__G__streamLN_basic_ostreamlEcharcOchar_traitslEchargRsPgR),G__defined_typename("ostream"),1,2,1,1,0, ++// "u 'basic_ostream<char,char_traits<char> >' 'ostream' 1 - - u 'fpos<mbstate_t>' 'streampos' 11 - -",(char*)NULL ++// ,(void*)NULL,0); + G__memfunc_setup("operator>>",1000,G__G__stream__2_16,117,G__get_linked_tagnum(&G__G__streamLN_basic_istreamlEcharcOchar_traitslEchargRsPgR),G__defined_typename("istream"),1,2,1,1,0, + "u 'basic_istream<char,char_traits<char> >' 'istream' 1 - - c - - 1 - -",(char*)NULL + ,(void*)NULL,0); diff --git a/sci-libs/root/files/root-makefile.patch b/sci-libs/root/files/root-makefile.patch new file mode 100644 index 000000000000..ef53d0de029e --- /dev/null +++ b/sci-libs/root/files/root-makefile.patch @@ -0,0 +1,28 @@ +--- root/config/Makefile.linux.old 2003-02-22 02:30:14.000000000 -0600 ++++ root/config/Makefile.linux 2003-02-22 02:31:00.000000000 -0600 +@@ -8,13 +8,13 @@ + OPT = -g + NOOPT = + else +-OPT = -O ++OPT = + NOOPT = + endif + + # Compiler: +-CXX = g++ +-CC = gcc ++CXX = g++ $(GENTOO_CXXFLAGS) ++CC = gcc $(GENTOO_CFLAGS) + CXXFLAGS = -pipe -Wall -Woverloaded-virtual -fPIC $(EXTRA_CXXFLAGS) + CFLAGS = -pipe -Wall -fPIC $(EXTRA_CFLAGS) + CINTCXXFLAGS = -pipe -Wall -Woverloaded-virtual -fPIC $(EXTRA_CXXFLAGS) \ +@@ -38,7 +38,7 @@ + + # Fortran: + F77 = g77 +-F77FLAGS = ++F77FLAGS = $(GENTOO_CFLAGS) + F77LIBS = -lg2c -lnsl + + # Extras diff --git a/sci-libs/root/metadata.xml b/sci-libs/root/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-libs/root/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> diff --git a/sci-libs/root/root-3.03.04-r2.ebuild b/sci-libs/root/root-3.03.04-r2.ebuild new file mode 100644 index 000000000000..b6f57e1210d0 --- /dev/null +++ b/sci-libs/root/root-3.03.04-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/root/root-3.03.04-r2.ebuild,v 1.1 2004/12/28 23:01:57 ribosome Exp $ + +inherit flag-o-matic eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="An Object-Oriented Data Analysis Framework" +SRC_URI="ftp://root.cern.ch/root/root_v${PV}.source.tar.gz" +HOMEPAGE="http://root.cern.ch/" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="x86 sparc ~ppc" +IUSE="mysql postgres opengl" + +DEPEND="virtual/x11 + >=media-libs/freetype-2.0.9 + opengl? ( virtual/opengl virtual/glu ) + mysql? ( >=dev-db/mysql-3.23.49 ) + postgres? ( >=dev-db/postgresql-7.1.3-r4 )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/root-makefile.patch + epatch ${FILESDIR}/pgsql-no-libpq-int.patch +} + +src_compile() { + + case $SYSTEM_ARCH in + ppc) + append-flags "-fsigned-char";; + esac + export GENTOO_CFLAGS="${CFLAGS}" GENTOO_CXXFLAGS="${CXXFLAGS}" + ./configure \ + linux \ + --prefix=/usr \ + --docdir=/usr/share/doc/${P} \ + --enable-shared \ + --disable-rpath \ + --enable-thread \ + --enable-star \ + --enable-ttf \ + --disable-cern \ + --disable-sapdb \ + --disable-rfio \ + --disable-dcache \ + --disable-srp \ + --disable-afs \ + --disable-krb5 \ + --enable-shadowpw \ + --disable-pythia \ + --disable-pythia6 \ + --disable-venus \ + --enable-soversion \ + `use_enable opengl` \ + `use_enable mysql` \ + `use_enable postgres pgsql` \ + ${myconf} || die "./configure failed" + make || die +} + +src_install() { + make DESTDIR=${D} install || die + + dodir /etc/env.d + echo "LDPATH=/usr/lib/root" > ${D}/etc/env.d/60root +} diff --git a/sci-libs/root/root-3.05.04.ebuild b/sci-libs/root/root-3.05.04.ebuild new file mode 100644 index 000000000000..9ae1785dbc7e --- /dev/null +++ b/sci-libs/root/root-3.05.04.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/root/root-3.05.04.ebuild,v 1.1 2004/12/28 23:01:57 ribosome Exp $ + +inherit flag-o-matic eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="An Object-Oriented Data Analysis Framework" +SRC_URI="ftp://root.cern.ch/root/root_v${PV}.source.tar.gz" +HOMEPAGE="http://root.cern.ch/" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="x86 sparc ppc" +IUSE="mysql postgres opengl" + +DEPEND="virtual/x11 + >=media-libs/freetype-2.0.9 + opengl? ( virtual/opengl virtual/glu ) + mysql? ( >=dev-db/mysql-3.23.49 ) + postgres? ( >=dev-db/postgresql-7.1.3-r4 )" + +src_unpack() { + unpack ${A} + cd ${S} + #epatch ${FILESDIR}/root-makefile.patch + #epatch ${FILESDIR}/pgsql-no-libpq-int.patch +} + +src_compile() { + + case $SYSTEM_ARCH in + ppc) + append-flags "-fsigned-char";; + esac + #export GENTOO_CFLAGS="${CFLAGS}" GENTOO_CXXFLAGS="${CXXFLAGS}" + ./configure \ + linux \ + --prefix=/usr \ + --docdir=/usr/share/doc/${P} \ + --enable-shared \ + --disable-rpath \ + --enable-thread \ + --disable-cern \ + --disable-sapdb \ + --disable-rfio \ + --disable-dcache \ + --disable-srp \ + --disable-afs \ + --disable-krb5 \ + --enable-shadowpw \ + --disable-pythia \ + --disable-pythia6 \ + --disable-venus \ + --enable-soversion \ + `use_enable opengl` \ + `use_enable mysql` \ + `use_enable postgres pgsql` \ + ${myconf} || die "./configure failed" + make OPT="$CFLAGS" || die +} + +src_install() { + make DESTDIR=${D} INSTALL="install" install || die + + dodir /etc/env.d + echo "LDPATH=/usr/lib/root" > ${D}/etc/env.d/60root +} diff --git a/sci-libs/root/root-3.10.02-r1.ebuild b/sci-libs/root/root-3.10.02-r1.ebuild new file mode 100644 index 000000000000..e891d14f3a21 --- /dev/null +++ b/sci-libs/root/root-3.10.02-r1.ebuild @@ -0,0 +1,173 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/root/root-3.10.02-r1.ebuild,v 1.1 2004/12/28 23:01:57 ribosome Exp $ + +inherit flag-o-matic eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="An Object-Oriented Data Analysis Framework" +SRC_URI="ftp://root.cern.ch/root/root_v${PV}.source.tar.gz" +HOMEPAGE="http://root.cern.ch/" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="~x86 ~amd64" +IUSE="mysql postgres opengl afs kerberos ldap qt" + +DEPEND="virtual/x11 + >=media-libs/freetype-2.0.9 + sys-apps/shadow + opengl? ( virtual/opengl virtual/glu ) + mysql? ( >=dev-db/mysql-3.23.49 ) + postgres? ( >=dev-db/postgresql-7.1.3-r4 ) + !amd64? ( afs? ( net-fs/openafs ) ) + kerberos? ( app-crypt/mit-krb5 ) + ldap? ( net-nds/openldap ) + qt? ( x11-libs/qt )" + +src_compile() { + + local myconf + + if [ "x$CERNLIB" = "x" ] + then + einfo "No support for cernlib, (h/g)2root will not be build." + einfo "To install root with cernlib support, use:" + einfo " export CERNLIB=<directory>/lib" + einfo "where <directory>/lib contains libpacklib.[so,a] and libkernlib.[so,a]" + USECERN="--disable-cern" + else + if [ -e $CERNLIB/libpacklib.[so,a] -a -e $CERNLIB/libkernlib.[so,a] ] + then + einfo "Support for cernlib found." + USECERN="--enable-cern --with-cern-libdir=$CERNLIB" + else + einfo "No support for cernlib, (h/g)2root will not be build." + einfo "CERNLIB = $CERNLIB has no libpacklib.[so,a] or no libkernlib.[so,a]" + USECERN="--disable-cern" + fi + fi + einfo + if [ "x$PYTHIA" = "x" ] + then + einfo "No support for pythia." + einfo "To install root with pythia support, use:" + einfo " export PYTHIA=<directory>/lib" + einfo "where <directory>/lib contains libPythia.[so,a]" + USEPYTHIA="--disable-pythia" + else + if [ -e $PYTHIA/libPythia.[so,a] ] + then + einfo "Support for pythia found." + USEPYTHIA="--enable-pythia --with-pythia-libdir=$PYTHIA" + else + einfo "No support for pythia." + einfo "PYTHIA = $PYTHIA has no libPythia.[so,a]" + USEPYTHIA="--disable-pythia" + fi + fi + einfo + if [ "x$PYTHIA6" = "x" ] + then + einfo "No support for pythia6." + einfo "To install root with pythia6 support, use:" + einfo " export PYTHIA6=<directory>/lib" + einfo "where <directory>/lib contains libPythia6.[so,a]" + USEPYTHIA6="--disable-pythia6" + else + if [ -e $PYTHIA6/libPythia6.[so,a] ] + then + einfo "Support for pythia6 found." + USEPYTHIA6="--enable-pythia6 --with-pythia6-libdir=$PYTHIA6" + else + einfo "No support for pythia6." + einfo "PYTHIA6 = $PYTHIA6 has no libPythia6.[so,a]" + USEPYTHIA6="--disable-pythia6" + fi + fi + einfo + if [ "x$VENUS" = "x" ] + then + einfo "No support for venus." + einfo "To install root with venus support, use:" + einfo " export VENUS=<directory>/lib" + einfo "where <directory>/lib contains libVenus.[so,a]" + USEVENUS="--disable-venus" + else + if [ -e $VENUS/libVenus.[so,a] ] + then + einfo "Support for venus found." + USEVENUS="--enable-venus --with-venus-libdir=$VENUS" + else + einfo "No support for venus." + einfo "VENUS = $VENUS has no libVenus.[so,a]" + USEVENUS="--disable-venus" + fi + fi + + case $SYSTEM_ARCH in + ppc) + append-flags "-fsigned-char";; + esac + + if ! use amd64; then + myconf="${myconf} $(use_enable afs)" + else + myconf="${myconf} --disable-afs" + fi + + ./configure linux \ + --aclocaldir=/usr/share/aclocal/ \ + --bindir=/usr/bin \ + --cintincdir=/usr/share/root/cint \ + --datadir=/usr/share/root \ + --docdir=/usr/share/doc/${P} \ + --elispdir=/usr/share/emacs/site-lisp \ + --etcdir=/etc/root \ + --fontdir=/usr/share/root/fonts \ + --iconpath=/usr/share/root/icons \ + --incdir=/usr/include/root \ + --libdir=/usr/lib/root \ + --macrodir=/usr/share/root/macros \ + --mandir=/usr/share/man/man1 \ + --prefix=/usr \ + --proofdir=/usr/share/root/proof \ + --srcdir=/usr/share/root/src \ + --testdir=/usr/share/doc/${P}/test \ + --tutdir=/usr/share/doc/${P}/tutorial \ + --disable-alien \ + --disable-asimage \ + $USECERN \ + --disable-chirp \ + --disable-dcache \ + --disable-exceptions \ + --disable-explicitlink \ + --disable-globus \ + `use_enable kerberos krb5` \ + `use_enable ldap` \ + `use_enable mysql` \ + `use_enable opengl` \ + --disable-openiv \ + `use_enable postgres pgsql` \ + $USEPYTHIA \ + $USEPYTHIA6 \ + `use_enable qt` \ + --disable-rfio \ + --disable-rpath \ + --disable-sapdb \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --disable-srp \ + --disable-table \ + --enable-thread \ + $USEVENUS \ + ${myconf} || die "configure failed" + emake OPT="$CFLAGS" || die "make failed" +} + +src_install() { + make DESTDIR=${D} INSTALL="install" install || die "install failed" + dodir /etc/env.d + echo > ${D}/etc/env.d/99root "LDPATH=\"/usr/lib/root\"" +} diff --git a/sci-libs/root/root-4.00.06a.ebuild b/sci-libs/root/root-4.00.06a.ebuild new file mode 100644 index 000000000000..91e233ecf12c --- /dev/null +++ b/sci-libs/root/root-4.00.06a.ebuild @@ -0,0 +1,184 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/root/root-4.00.06a.ebuild,v 1.1 2004/12/28 23:01:57 ribosome Exp $ + +inherit flag-o-matic eutils + +S=${WORKDIR}/${PN} +DESCRIPTION="An Object-Oriented Data Analysis Framework" +MY_VER=${PV%[a-z]} +MY_PATCH=${PV##"${MY_VER}"} +SRC_URI="ftp://root.cern.ch/root/root_v${MY_VER}.source${MY_PATCH}.tar.gz" +HOMEPAGE="http://root.cern.ch/" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="~x86" +IUSE="afs kerberos ldap mysql opengl postgres python qt" + +DEPEND="virtual/x11 + >=media-libs/freetype-2.0.9 + sys-apps/shadow + opengl? ( virtual/opengl virtual/glu ) + mysql? ( >=dev-db/mysql-3.23.49 ) + postgres? ( >=dev-db/postgresql-7.1.3-r4 ) + !amd64? ( afs? ( net-fs/openafs ) ) + kerberos? ( app-crypt/mit-krb5 ) + ldap? ( net-nds/openldap ) + qt? ( x11-libs/qt ) + python? ( dev-lang/python )" + + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-${PV}-gcc-3.4.patch +} + +src_compile() { + + local myconf + + if [ "x$CERNLIB" = "x" ] + then + einfo "No support for cernlib, (h/g)2root will not be build." + einfo "To install root with cernlib support, use:" + einfo " export CERNLIB=<directory>/lib" + einfo "where <directory>/lib contains libpacklib.[so,a] and libkernlib.[so,a]" + USECERN="--disable-cern" + else + if [ -e $CERNLIB/libpacklib.[so,a] -a -e $CERNLIB/libkernlib.[so,a] ] + then + einfo "Support for cernlib found." + USECERN="--enable-cern --with-cern-libdir=$CERNLIB" + else + einfo "No support for cernlib, (h/g)2root will not be build." + einfo "CERNLIB = $CERNLIB has no libpacklib.[so,a] or no libkernlib.[so,a]" + USECERN="--disable-cern" + fi + fi + einfo + if [ "x$PYTHIA" = "x" ] + then + einfo "No support for pythia." + einfo "To install root with pythia support, use:" + einfo " export PYTHIA=<directory>/lib" + einfo "where <directory>/lib contains libPythia.[so,a]" + USEPYTHIA="--disable-pythia" + else + if [ -e $PYTHIA/libPythia.[so,a] ] + then + einfo "Support for pythia found." + USEPYTHIA="--enable-pythia --with-pythia-libdir=$PYTHIA" + else + einfo "No support for pythia." + einfo "PYTHIA = $PYTHIA has no libPythia.[so,a]" + USEPYTHIA="--disable-pythia" + fi + fi + einfo + if [ "x$PYTHIA6" = "x" ] + then + einfo "No support for pythia6." + einfo "To install root with pythia6 support, use:" + einfo " export PYTHIA6=<directory>/lib" + einfo "where <directory>/lib contains libPythia6.[so,a]" + USEPYTHIA6="--disable-pythia6" + else + if [ -e $PYTHIA6/libPythia6.[so,a] ] + then + einfo "Support for pythia6 found." + USEPYTHIA6="--enable-pythia6 --with-pythia6-libdir=$PYTHIA6" + else + einfo "No support for pythia6." + einfo "PYTHIA6 = $PYTHIA6 has no libPythia6.[so,a]" + USEPYTHIA6="--disable-pythia6" + fi + fi + einfo + if [ "x$VENUS" = "x" ] + then + einfo "No support for venus." + einfo "To install root with venus support, use:" + einfo " export VENUS=<directory>/lib" + einfo "where <directory>/lib contains libVenus.[so,a]" + USEVENUS="--disable-venus" + else + if [ -e $VENUS/libVenus.[so,a] ] + then + einfo "Support for venus found." + USEVENUS="--enable-venus --with-venus-libdir=$VENUS" + else + einfo "No support for venus." + einfo "VENUS = $VENUS has no libVenus.[so,a]" + USEVENUS="--disable-venus" + fi + fi + + case $SYSTEM_ARCH in + ppc) + append-flags "-fsigned-char";; + esac + + if ! use amd64; then + myconf="${myconf} $(use_enable afs)" + else + myconf="${myconf} --disable-afs" + fi + + ./configure linux \ + --aclocaldir=/usr/share/aclocal/ \ + --bindir=/usr/bin \ + --cintincdir=/usr/share/root/cint \ + --datadir=/usr/share/root \ + --docdir=/usr/share/doc/${P} \ + --elispdir=/usr/share/emacs/site-lisp \ + --etcdir=/etc/root \ + --fontdir=/usr/share/root/fonts \ + --iconpath=/usr/share/root/icons \ + --incdir=/usr/include/root \ + --libdir=/usr/lib/root \ + --macrodir=/usr/share/root/macros \ + --mandir=/usr/share/man/man1 \ + --prefix=/usr \ + --proofdir=/usr/share/root/proof \ + --srcdir=/usr/share/root/src \ + --testdir=/usr/share/doc/${P}/test \ + --tutdir=/usr/share/doc/${P}/tutorial \ + --disable-alien \ + --disable-asimage \ + $USECERN \ + --disable-chirp \ + --disable-dcache \ + --disable-exceptions \ + --disable-explicitlink \ + --disable-globus \ + `use_enable kerberos krb5` \ + `use_enable ldap` \ + `use_enable mysql` \ + `use_enable opengl` \ + --disable-openiv \ + `use_enable postgres pgsql` \ + $USEPYTHIA \ + $USEPYTHIA6 \ + `use_enable qt` \ + `use_enable python` \ + --disable-rfio \ + --disable-rpath \ + --disable-sapdb \ + --enable-shadowpw \ + --enable-shared \ + --enable-soversion \ + --disable-srp \ + --disable-table \ + --enable-thread \ + $USEVENUS \ + ${myconf} || die "configure failed" + emake OPT="$CFLAGS" || die "make failed" +} + +src_install() { + make DESTDIR=${D} INSTALL="install" install || die "install failed" + dodir /etc/env.d + echo > ${D}/etc/env.d/99root "LDPATH=\"/usr/lib/root\"" +} |