summaryrefslogtreecommitdiff
blob: 16fdc7f4eb2a0b6e42a33ff24fd9e91fc8f89147 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/teg/teg-0.11.0-r1.ebuild,v 1.4 2004/06/24 22:21:49 agriffis Exp $

inherit games gnome2

DESCRIPTION="Gnome Risk Clone"
HOMEPAGE="http://teg.sourceforge.net/"
SRC_URI="mirror://sourceforge/teg/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc"
IUSE="nls"

DEPEND="virtual/glibc
	virtual/x11
	dev-libs/glib
	gnome-base/libgnomeui
	gnome-base/libgnome
	readline? ( sys-libs/readline )"
RDEPEND="${DEPEND}
	nls? ( sys-devel/gettext )"

src_compile() {
	econf \
		$(use_enable nls) \
		--bindir="${GAMES_BINDIR}" \
		|| die
	emake || die "emake failed"
}

src_install() {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
	make \
		DESTDIR="${D}" install \
		" sScrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" \
		|| die "make install failed"
	unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
	prepgamesdirs
}

pkg_postinst() {
	gnome2_gconf_install
}