summaryrefslogtreecommitdiff
blob: 37e86b9ce73af5427325c9c0fa41396821fd6054 (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
39
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gfsview/gfsview-0.4.ebuild,v 1.1 2006/02/07 04:37:09 markusle Exp $

inherit eutils

DESCRIPTION="GfsView is a graphical viewer for Gerris simulation files."
HOMEPAGE="http://gfs.sourceforge.net/"
SRC_URI="mirror://sourceforge/gfs/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""
DEPEND=">=x11-libs/gtkglext-1.0.6
	>=x11-libs/gtk+-2.4.0
	>=sci-libs/gerris-0.8.0"

src_unpack() {
	unpack "${A}" || die "Unpacking the source failed"
	cd "${S}" || die "Failed to change directory"

	# apply upstream patch to fix crashes when
	# clicking on menu items
	epatch "${FILESDIR}"/gtk-client-events-handling.patch
}

src_compile() {
	econf || die "Configure failed"
	emake || die "Make failed"
}

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