# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-libs/root/root-3.03.04-r2.ebuild,v 1.2 2003/02/28 21:59:21 vapier 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/xpm-3.4k >=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 ) afs? ( net-fs/openafs ) krb5? ( virtual/krb5 )" 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}" # NOTE: no "--{enable/disable}-star" option anymore ./configure \ linux \ --prefix=/usr \ --docdir=/usr/share/doc/${P} \ --enable-shared \ --disable-rpath \ --enable-thread \ --enable-ttf \ --disable-cern \ --disable-sapdb \ --disable-rfio \ --disable-dcache \ --disable-srp \ `use_enable afs` \ `use_enable 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 }