blob: 44c8178328b1aa2ac1ed37f634749d4fb6442ad4 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/freemat-3.6.ebuild,v 1.1 2008/03/24 09:48:10 bicatali Exp $
inherit eutils qt4 autotools
MY_PN=FreeMat
MY_P=${MY_PN}-${PV}
DESCRIPTION="Environment for rapid engineering and scientific processing"
HOMEPAGE="http://freemat.sourceforge.net/"
SRC_URI="mirror://sourceforge/freemat/${MY_P}.tar.gz"
IUSE="arpack ffcall fftw ncurses portaudio umfpack"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="$(qt4_min_version 4.2)
dev-libs/libpcre
virtual/lapack
ncurses? ( >=sys-libs/ncurses-5.4 )
umfpack? ( sci-libs/umfpack )
arpack? ( sci-libs/arpack )
fftw? ( >=sci-libs/fftw-3 )
portaudio? ( media-libs/portaudio )
ffcall? ( dev-libs/ffcall )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
QT4_BUILT_WITH_USE_CHECK="opengl"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
# allow enable/disable for configure
epatch "${FILESDIR}"/${P}-optional-deps.patch
eautoreconf
}
src_compile() {
econf \
--with-blas="$(pkg-config --libs blas)" \
--with-lapack="$(pkg-config --libs lapack)" \
$(use_with ncurses) \
$(use_enable umfpack) \
$(use_enable arpack) \
$(use_enable fftw) \
$(use_enable portaudio) \
$(use_enable ffcall) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog || die "dodoc failed"
newicon images/freemat_small_mod_64.png ${PN}.png
make_desktop_entry FreeMat FreeMat
}
pkg_postint() {
einfo "Initializing freemat data directory"
FreeMat -i "${ROOT}"/usr/share/${MY_P}
}
|