You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/matio/matio-1.3.4.ebuild

48 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/matio/matio-1.3.4.ebuild,v 1.1 2012/04/05 20:26:26 grozin Exp $
EAPI=3
inherit autotools eutils fortran-2
DESCRIPTION="Library for reading and writing matlab files"
HOMEPAGE="http://sourceforge.net/projects/matio/"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
# disabling (until fix) doxygen doc generation
IUSE="examples fortran static-libs"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
#DEPEND="doc? ( app-doc/doxygen virtual/latex-base )"
RDEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${P}-autotools.patch
eautoreconf
}
src_configure() {
econf \
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
--enable-shared \
--disable-test \
$(use_enable fortran) \
$(use_enable doc docs) \
$(use_enable static-libs static)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README ChangeLog
#if use doc; then
# insinto /usr/share/doc/${PF}
# doins -r doxygen/html || die
#fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins test/test* || die
insinto /usr/share/${PN}
doins share/test* || die
fi
}