blob: 031b9d91300457f6c33eb09252b014aa219f5204 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="Library for reading and writing matlab .mat files"
HOMEPAGE="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=8187&objectType=file"
SLOT="0"
LICENSE="LGPL"
KEYWORDS="~x86"
IUSE="doc fortran"
SRC_URI="${PN}.zip"
DEPEND="doc? ( app-doc/doxygen virtual/tetex )
fortran? ( >=gcc-4.1 )"
S="${WORKDIR}/${PN}"
RESTRICT="fetch"
pkg_nofetch() {
einfo "Please visit"
einfo "${HOMEPAGE}"
einfo "download ${PN}.zip"
einfo "and put it into ${DISTDIR}"
}
pkg_setup() {
if use fortran ; then
if ! built_with_use gcc fortran ; then
einfo "Please re-emerge gcc with the USE flag fortran and try again"
die
fi
fi
}
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/matio-1.1.4.patch"
}
src_compile() {
aclocal
automake || true
econf --enable-shared $(use_enable fortran ) $(use_enable doc docs ) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install
dodoc README ChangeLog
}
|