|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: $ | # $Header: $ |
| |
#inherit eutils libtool |
inherit eutils |
| |
DESCRIPTION="A free IDL (Interactive Data Language) compatible incremental compiler" |
DESCRIPTION="A Interactive Data Language compatible incremental compiler" |
|
LICENSE="GPL" |
HOMEPAGE="http://gnudatalanguage.sourceforge.net/" | HOMEPAGE="http://gnudatalanguage.sourceforge.net/" |
SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" | SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" |
LICENSE="GPL-2" |
|
|
|
SLOT="0" | SLOT="0" |
KEYWORDS="~x86 ~amd64" |
KEYWORDS="~x86" |
IUSE="python fftw hdf hdf5 imagemagick netcdf fftw" |
IUSE="python fftw hdf hdf5 netcdf imagemagick" |
| |
DEPEND=">=sys-libs/readline-4.3 | DEPEND=">=sys-libs/readline-4.3 |
sci-libs/gsl | sci-libs/gsl |
>=sci-libs/plplot-5.3 | >=sci-libs/plplot-5.3 |
imagemagick? ( media-gfx/imagemagick ) | imagemagick? ( media-gfx/imagemagick ) |
hdf? ( sci-libs/hdf ) |
hdf? ( sci-libs/hdf ) |
hdf5? ( sci-libs/hdf5 ) | hdf5? ( sci-libs/hdf5 ) |
netcdf? ( sci-libs/netcdf ) | netcdf? ( sci-libs/netcdf ) |
python? ( >=dev-lang/python-2.3 ) |
python? ( dev-lang/python |
python? ( >=dev-python/numarray-0.9 ) |
dev-python/numarray |
python? ( >=dev-python/matplotlib-0.52 ) |
dev-python/matplotlib ) |
fftw? ( sci-libs/fftw ) |
fftw? ( sci-libs/fftw )" |
" |
|
| |
src_compile() { | src_compile() { |
local myconf="--without-Magick" |
|
use imagemagick && myconf=" --with-Magick " |
|
econf \ | econf \ |
${myconf} \ |
$(use_with python) \ |
$(use_with hdf ) \ |
$(use_with fftw) \ |
$(use_with hdf5 ) \ |
$(use_with hdf) \ |
$(use_with netcdf ) \ |
$(use_with hdf5) \ |
$(use_with python ) \ |
$(use_with netcdf) \ |
$(use_with fftw ) \ |
$(use_with imagemagick Magick) \ |
|| die "econf failed" |
|| die "econf failed!" |
|
|
emake || die "emake failed" | emake || die "emake failed" |
} | } |
| |
src_install() { | src_install() { |
make DESTDIR=${D} install || die "make install failed" |
make DESTDIR=${D} install || die "failed to install" |
dodir /usr/share/${PN} |
|
insinto /usr/share/${PN} | insinto /usr/share/${PN} |
doins -r src/pro | doins -r src/pro |
dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO |
doins -r src/py |
echo IDL_PATH=":/usr/share/gdl/pro:" > 99gdl |
dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO |
|
|
|
# add GDL provided routines to IDL_PATH |
|
echo "IDL_STARTUP=/usr/share/${PN}/pro" > 99gdl |
doenvd 99gdl | doenvd 99gdl |
} | } |
|
|
|
|
#TODO |
|
# - test the python modules src/py, install them. |
|