# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="An Object-Oriented Data Analysis Framework" HOMEPAGE="http://root.cern.ch/" SRC_URI="ftp://root.cern.ch/root/root_v5.11.06.source.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="x86" DEPEND="" RDEPEND=" virtual/x11 x11-libs/libXpm >=media-libs/freetype-2.0.9 fftw? (>=sci-libs/fftw-3) opengl? (virtual/opengl virtual/glu) qt? (=x11-libs/qt-3*) python? (dev-lang/python) shadow? (sys-apps/shadow) ssl? (dev-libs/openssl) xml? (dev-libs/libxml) !builtin_gsl (sci-libs/gsl) sys-libs/zlib" S="$WORKDIR/root/" IUSE="qt qtgsi builtin_gsl fftw opengl python tiff xml shadow ssl" src_compile() { cd $S ./configure --prefix=/usr \ `use_enable fftw fftw3` \ `use_enable qt` \ `use_enable opengl` \ `use_enable python` \ `use_enable tiff astiff` \ `use_enable xml` \ `use_enable shadow shadowpw` \ `use_enable ssl`\ `use_enable qtgsi` \ --enable-soversion \ --enable-shared \ --enable-mathcore \ --enable-mathcore \ --enable-minuit2 \ --enable-roofit \ --enable-asimage \ --enable-builtin-afterimage \ --disable-builtin-zlib \ --disable-builtin-pcre \ --disable-builtin-freetype emake } 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\"" }