diff options
Diffstat (limited to 'sci-libs/matio/matio-1.1.4.ebuild')
-rw-r--r-- | sci-libs/matio/matio-1.1.4.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-libs/matio/matio-1.1.4.ebuild b/sci-libs/matio/matio-1.1.4.ebuild new file mode 100644 index 000000000..da4c24a19 --- /dev/null +++ b/sci-libs/matio/matio-1.1.4.ebuild @@ -0,0 +1,47 @@ +# 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() { + use fortran && ! built_with_use gcc fortran && die "Re-emerge gcc with USE flag fortran" +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}/matio-1.1.4.patch" +} + +src_compile() { + aclocal + automake || die "automake failed" + 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 +} |