# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Provides a rendering system for chaotic maps, with an interactive GTK+ frontend and the ability to create high-resolution images from the command line."
SRC_URI="http://navi.cx/releases/${P}.tar.gz"
HOMEPAGE="http://fyre.navi.cx/"

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

DEPEND="dev-util/pkgconfig
	>=gnome-base/libglade-2.0
	>=x11-libs/gtk+-2.0"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PN}-0.6.gentoo.diff
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	dobin fyre
	dodir /usr/share/fyre
	insinto /usr/share/fyre
	doins data/*.glade
	dodoc README BUGS
}