# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="gretl is a cross-platform software package for econometric analysis" HOMEPAGE="http://gretl.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="png readline gnome gmp nosource gtk2 ole2 gtkextra" DEPEND="x11-libs/gtk+ dev-libs/libxml media-gfx/gnuplot app-sci/lapack media-libs/gdk-pixbuf png? (media-libs/libpng) readline? (sys-libs/readline) gnome? (gnome-base/gnome) gmp? (dev-libs/gmp) !nosource? (x11-libs/gtksourceview) !gtk2 ( ole2? (dev-libs/libole2) )" RDEPEND="" src_compile() { local myconf if ! use gtk2 ; then ewarn "Running ${PN} without GTK+-2.0 reduces functionality" myconf="${myconf} --without-gtk2" if ! use ole2 ; then ewarn "Running ${PN} without libole2 reduces functionality" myconf="${myconf} --without-libole2" fi if ! use gtkextra ; then ewarn "Running ${PN} without gtkextra reduces functionality" myconf="${myconf} --without-gtkextra" fi fi if ! use gnome ; then ewarn "Running ${PN} without Gnome reduces functionality" myconf="${myconf} --without-gnome" fi if ! use gmp ; then ewarn "Running ${PN} without GMP reduces functionality" myconf="${myconf} --without-gmp" fi econf || die "econf failed" emake || die "emake failed" } src_install() { make check # You must *personally verify* that this trick doesn't install # anything outside of DESTDIR; do this by reading and # understanding the install part of the Makefiles. # This is the preferred way to install. make DESTDIR=${D} install || die # For Makefiles that don't make proper use of DESTDIR, setting # prefix is often an alternative. However if you do this, then # you also need to specify mandir and infodir, since they were # passed to ./configure as absolute paths (overriding the prefix # setting). #make \ # prefix=${D}/usr \ # mandir=${D}/usr/share/man \ # infodir=${D}/usr/share/info \ # libdir=${D}/usr/$(get_libdir) \ # install || die # Again, verify the Makefiles! We don't want anything falling # outside of ${D}. # The portage shortcut to the above command is simply: # #einstall || die }