blob: 920112d3b75b5bf5a1efdfbf76a951dc1d98d86c (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/freemat/freemat-3.3.ebuild,v 1.1 2007/08/13 15:16:24 bicatali Exp $
inherit eutils flag-o-matic autotools qt4
MY_PN=FreeMat
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Environment for rapid engineering and scientific prototyping and data processing"
HOMEPAGE="http://freemat.sourceforge.net/"
SRC_URI="mirror://sourceforge/freemat/${MY_P}.tar.gz"
IUSE="ncurses ffcall fftw umfpack arpack"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="dev-libs/libpcre
virtual/lapack
dev-util/pkgconfig
ncurses? ( >=sys-libs/ncurses-5.4 )
umfpack? ( sci-libs/umfpack )
arpack? ( sci-libs/arpack )
fftw? ( >=sci-libs/fftw-3 )
portaudio? ( media-libs/portaudio )"
RDEPEND="${DEPEND}
ffcall? ( dev-libs/ffcall )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
# fix 64bits pointer
epatch "${FILESDIR}"/${P}-pointer.patch
}
src_compile() {
# -O3 won't compile for freemat-3.2
replace-flags "-O3" "-O2"
econf $(use_with ncurses) || die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README AUTHORS ChangeLog
}
pkg_postint() {
einfo "Initializing freemat data directory"
FreeMat -i /usr/share/${MY_P}
}
|