# 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-mathematics/gts-0.7.3" src_unpack() { unpack "${A}" || die "Unpacking the source failed" cd "${S}" || die "Could not change directory." epatch "${FILESDIR}"/gerris-0.6-patch-1 } src_compile() { econf || die "Configure failed" emake || die "Make failed" } src_install() { make DESTDIR="${D}" install || die "Install failed" dodoc AUTHORS COPYING ChangeLog NEWS README THANKS TODO docinto doc/figures dodoc doc/figures/* docinto doc/html dodoc doc/html/* docinto doc/tutorial dodoc doc/tutorial/* }