# $Header: $ inherit eutils libtool DESCRIPTION="A free IDL (Interactive Data Language) compatible incremental compiler" HOMEPAGE="http://gnudatalanguage.sourceforge.net/" SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="python fftw" DEPEND=">=sys-libs/readline-4.3 sci-libs/gsl >=sci-libs/plplot-5.3 media-gfx/imagemagick sci-libs/hdf sci-libs/hdf5 sci-libs/netcdf python? ( dev-python/numarray ) python? ( dev-python/matplotlib ) fftw? ( sci-libs/fftw )" src_compile() { econf \ $(use_with python) \ $(use_with fftw) \ || die "Error: econf failed!" # use python || myconf="${myconf} --with-python=no" # use fftw || myconf="${myconf} --with-fftw" # econf || die "econf failed" libtoolize --copy --force || die "libtoolize failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }