# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/scigraphica/scigraphica-0.8.0-r2.ebuild,v 1.2 2005/05/09 18:04:34 dholm Exp $ inherit eutils DESCRIPTION="Scientific application for data analysis and technical graphics" SRC_URI="mirror://sourceforge/scigraphica/${P}.tar.gz" HOMEPAGE="http://scigraphica.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc" # We need to block using numeric, otherwise sg won't build, # pretenting not to find arrayobject.h from the numarray project. DEPEND=">=x11-libs/gtk+extra-2.1.0 >=x11-libs/libscigraphica-2.1.0 >=dev-python/pygtk-2.6.1-r1 >=dev-python/numarray-1.3.1 >=dev-libs/libxml2-2.4.10 >=media-libs/imlib-1.9.7 >=intltool-0.27.2 !dev-python/numeric" src_unpack() { unpack ${A} cd ${S} # Get correct version using scigraphica --version epatch $FILESDIR/configure.in.patch libtoolize --force || die "libtoolize Failed" aclocal || die "aclocal Failed" autoconf || die "autoconf Failed" autoheader || die "autoheader Failed" automake || die "automake Failed" } src_compile() { local myconf="" ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die "Configuration Failed" emake || die "Make Failed" } src_install() { make DESTDIR=${D} install || die "Installation Failed" dodoc AUTHORS ChangeLog FAQ.compile \ INSTALL NEWS README TODO } pkg_postinst() { ewarn "Please be shure to rm your old scigraphica" ewarn "configureation directory." ewarn "Otherwise sg won't work." sleep 5 }