blob: 9e1cbbf065d222d51ffb2faba0579f747efb17c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# 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_rc1.ebuild,v 1.5 2009/08/26 02:46:16 markusle Exp $
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
>=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_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-proj4.patch
epatch "${FILESDIR}"/${P}-magick.patch
epatch "${FILESDIR}"/${P}-gcc4.3.patch
#if has_version ">=sci-libs/plplot-5.9.0"; then
#epatch "${FILESDIR}"/${PN}-0.9_pre6-plplot-5.9.patch
#fi
eautoreconf
}
src_compile() {
# need to check for old plplot
local myconf
if has_version '<sci-libs/plplot-5.9.0'; then
myconf="${myconf} --enable-oldplplot"
fi
use proj && append-cppflags -DPJ_LIB__
econf \
$(use_with python) \
$(use_with fftw) \
$(use_with hdf) \
$(use_with hdf5) \
$(use_with netcdf) \
$(use_with imagemagick Magick) \
$(use_with proj libproj4) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
}
src_test() {
cd "${S}"/testsuite
PATH="${S}"/src gdl <<-EOF
test_suite
EOF
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/share/${PN}
doins -r src/pro src/py || die "install pro and py files failed"
dodoc README PYTHON.txt AUTHORS ChangeLog NEWS TODO HACKING || die
# add GDL provided routines to IDL_PATH
echo "GDL_STARTUP=/usr/share/${PN}/pro" > 99gdl
echo "GDL_PATH=/usr/share/${PN}" >> 99gdl
doenvd 99gdl
}
|