# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/gdl/gdl-0.9_rc2.ebuild,v 1.1 2009/08/26 02:46:16 markusle Exp $ EAPI="2" inherit eutils flag-o-matic autotools MYP=${P/_/} DESCRIPTION="An Interactive Data Language compatible incremental compiler" LICENSE="GPL-2" HOMEPAGE="http://gnudatalanguage.sourceforge.net/" SRC_URI="mirror://sourceforge/gnudatalanguage/${MYP}.tar.gz" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="python fftw hdf hdf5 netcdf imagemagick proj" RDEPEND=">=sys-libs/readline-4.3 sci-libs/gsl =dev-java/antlr-2.7*[cxx] >=sci-libs/plplot-5.3 imagemagick? ( media-gfx/imagemagick ) hdf? ( sci-libs/hdf ) hdf5? ( sci-libs/hdf5 ) netcdf? ( sci-libs/netcdf ) python? ( dev-python/numarray dev-python/matplotlib ) fftw? ( >=sci-libs/fftw-3 ) proj? ( sci-libs/proj )" DEPEND="${RDEPEND} sys-devel/libtool" S="${WORKDIR}/${MYP}" src_prepare() { epatch "${FILESDIR}"/${PN}-0.9_rc1-proj4.patch epatch "${FILESDIR}"/${PN}-0.9_rc1-magick.patch epatch "${FILESDIR}"/${P}-gcc4.4.patch epatch "${FILESDIR}"/${P}-antlr.patch # we need to blow away the directory with antlr # otherwise the build system picks up bogus # header files rm -fr "${S}"/src/antlr || die "failed to remove antlr directory" eautoreconf } src_configure() { # need to check for old plplot local myconf if has_version ' 99gdl echo "GDL_PATH=/usr/share/${PN}" >> 99gdl doenvd 99gdl || die "doenvd failed" }