Lines 2-54
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
#inherit eutils libtool |
5 |
inherit eutils |
6 |
|
6 |
|
7 |
DESCRIPTION="A free IDL (Interactive Data Language) compatible incremental compiler" |
7 |
DESCRIPTION="A Interactive Data Language compatible incremental compiler" |
|
|
8 |
LICENSE="GPL" |
8 |
HOMEPAGE="http://gnudatalanguage.sourceforge.net/" |
9 |
HOMEPAGE="http://gnudatalanguage.sourceforge.net/" |
9 |
SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" |
10 |
SRC_URI="mirror://sourceforge/gnudatalanguage/${P}.tar.gz" |
10 |
LICENSE="GPL-2" |
11 |
|
|
|
12 |
|
11 |
SLOT="0" |
13 |
SLOT="0" |
12 |
KEYWORDS="~x86 ~amd64" |
14 |
KEYWORDS="~x86" |
13 |
IUSE="python fftw hdf hdf5 imagemagick netcdf fftw" |
15 |
IUSE="python fftw hdf hdf5 netcdf imagemagick" |
14 |
|
16 |
|
15 |
DEPEND=">=sys-libs/readline-4.3 |
17 |
DEPEND=">=sys-libs/readline-4.3 |
16 |
sci-libs/gsl |
18 |
sci-libs/gsl |
17 |
>=sci-libs/plplot-5.3 |
19 |
>=sci-libs/plplot-5.3 |
18 |
imagemagick? ( media-gfx/imagemagick ) |
20 |
imagemagick? ( media-gfx/imagemagick ) |
19 |
hdf? ( sci-libs/hdf ) |
21 |
hdf? ( sci-libs/hdf ) |
20 |
hdf5? ( sci-libs/hdf5 ) |
22 |
hdf5? ( sci-libs/hdf5 ) |
21 |
netcdf? ( sci-libs/netcdf ) |
23 |
netcdf? ( sci-libs/netcdf ) |
22 |
python? ( >=dev-lang/python-2.3 ) |
24 |
python? ( dev-lang/python |
23 |
python? ( >=dev-python/numarray-0.9 ) |
25 |
dev-python/numarray |
24 |
python? ( >=dev-python/matplotlib-0.52 ) |
26 |
dev-python/matplotlib ) |
25 |
fftw? ( sci-libs/fftw ) |
27 |
fftw? ( sci-libs/fftw )" |
26 |
" |
|
|
27 |
|
28 |
|
28 |
src_compile() { |
29 |
src_compile() { |
29 |
local myconf="--without-Magick" |
|
|
30 |
use imagemagick && myconf=" --with-Magick " |
31 |
econf \ |
30 |
econf \ |
32 |
${myconf} \ |
31 |
$(use_with python) \ |
33 |
$(use_with hdf ) \ |
32 |
$(use_with fftw) \ |
34 |
$(use_with hdf5 ) \ |
33 |
$(use_with hdf) \ |
35 |
$(use_with netcdf ) \ |
34 |
$(use_with hdf5) \ |
36 |
$(use_with python ) \ |
35 |
$(use_with netcdf) \ |
37 |
$(use_with fftw ) \ |
36 |
$(use_with imagemagick Magick) \ |
38 |
|| die "econf failed" |
37 |
|| die "econf failed!" |
|
|
38 |
|
39 |
emake || die "emake failed" |
39 |
emake || die "emake failed" |
40 |
} |
40 |
} |
41 |
|
41 |
|
42 |
src_install() { |
42 |
src_install() { |
43 |
make DESTDIR=${D} install || die "make install failed" |
43 |
make DESTDIR=${D} install || die "failed to install" |
44 |
dodir /usr/share/${PN} |
44 |
|
45 |
insinto /usr/share/${PN} |
45 |
insinto /usr/share/${PN} |
46 |
doins -r src/pro |
46 |
doins -r src/pro |
47 |
dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO |
47 |
doins -r src/py |
48 |
echo IDL_PATH=":/usr/share/gdl/pro:" > 99gdl |
48 |
dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO |
|
|
49 |
|
50 |
# add GDL provided routines to IDL_PATH |
51 |
echo "IDL_STARTUP=/usr/share/${PN}/pro" > 99gdl |
49 |
doenvd 99gdl |
52 |
doenvd 99gdl |
50 |
} |
53 |
} |
51 |
|
|
|
52 |
|
53 |
#TODO |
54 |
# - test the python modules src/py, install them. |