# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Gerris Flow Solver is a library for the solution of the partial differential equations describing fluid flow. " HOMEPAGE="http://gfs.sourceforge.net/" SRC_URI="mirror://sourceforge/gfs/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=dev-libs/glib-1.2.8 >=sci-libs/gts-0.7.4" src_unpack() { unpack "${A}" || die "Unpacking the source failed" cd "${S}" || die "Could not change directory." sed -i "s:tutorial::g" "doc/Makefile.am" || die "Couldn't remove tutorial" sed -i "s:tutorial::g" "doc/Makefile.in" || die "Couldn't remove tutorial" } src_compile() { econf || die "Configure failed" emake || die "Make failed" } src_install() { make DESTDIR="${D}" install || die "Install failed" dodoc AUTHORS ChangeLog NEWS README THANKS TODO docinto doc/figures dodoc doc/figures/* docinto doc/html dodoc doc/html/* docinto doc/tutorial dodoc doc/tutorial/* }