summaryrefslogtreecommitdiff
blob: 6ac8935fb40fcdbb98788d7a5425426bf238ea9b (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
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

GCONF_DEBUG="no"
SCROLLKEEPER_UPDATE="0"

inherit gnome2 eutils

DESCRIPTION="Fyre renders and animates Peter de Jong maps"
HOMEPAGE="http://fyre.navi.cx/"
SRC_URI="http://releases.navi.cx/${PN}/${P}.tar.bz2"

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

RDEPEND="dev-libs/glib:2
	gnome-base/libglade
	x11-libs/gtk+:2
	gnet? ( net-libs/gnet )
	openexr? ( media-libs/openexr )"
DEPEND="${RDEPEND}
	dev-util/desktop-file-utils
	dev-util/pkgconfig
	x11-misc/shared-mime-info"

pkg_setup() {
	G2CONF="$(use_enable gnet) $(use_enable openexr)"
}

src_prepare() {
	epatch "${FILESDIR}"/${PN}_file_dialog_pause_fix.patch
}

src_install() {
	#...=/bin/true prevents the makefile from updating mime and .desktop
	# databases on its own
	emake DESTDIR="${D}" \
		update_xdgmime=/bin/true update_fdodesktop=/bin/true \
		install || die
	dodoc AUTHORS ChangeLog README TODO || die

	if use gnet; then
		newconfd "${FILESDIR}/${P}-conf" ${PN} || die
		newinitd "${FILESDIR}/${P}-init" ${PN} || die
	fi
}