aboutsummaryrefslogtreecommitdiff
blob: a5cc1da7404e79769ceb9b19f955e93f9755bc51 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils fortran

DESCRIPTION="Library for reading and writing matlab .mat files"
HOMEPAGE="http://sourceforge.net/projects/matio/"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~x86 ~amd64"
IUSE="doc fortran"
SRC_URI="mirror://sourceforge/matio/${P}.tar.gz"
DEPEND="doc? ( app-doc/doxygen virtual/tetex )"
FORTRAN="gfortran"

#### Remove the following line when moving this ebuild to the main tree!
RESTRICT="nomirror"

pkg_setup() {
	use fortran && fortran_pkg_setup
}

src_compile() {
	addwrite /var/cache/fonts
	addwrite /usr/share/texmf
	econf --enable-shared \
		--disable-test \
		$(use_enable fortran ) \
		$(use_enable doc docs ) \
		|| die "econf failed"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc README ChangeLog
}