summaryrefslogtreecommitdiff
blob: 7084e4483753330cf19208e29548650a20eb0aa6 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/gnocatan-0.7.1-r3.ebuild,v 1.2 2003/10/17 08:39:29 mr_bones_ Exp $

inherit eutils

DESCRIPTION="A clone of the popular board game The Settlers of Catan"
# http://gnocatan.sourceforge.net/ is terribly outdated
HOMEPAGE="http://www.sourceforge.net/projects/gnocatan/"
SRC_URI="mirror://sourceforge/gnocatan/${P}.tar.gz"

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

RDEPEND="=x11-libs/gtk+-1*
	=dev-libs/glib-1*
	gnome-base/gnome-libs
	gnome-base/ORBit"
DEPEND="${RDEPEND}
	>=sys-apps/sed-4"

src_unpack() {
	unpack ${A}
	sed -i \
		-e "s/term1.dccs.com.au/gnocatan.debian.net/" ${S}/common/meta.h || \
			die "sed meta.h failed"
	epatch ${FILESDIR}/gnocatan-wijnen-patch.diff
}

src_compile() {
	econf `use_enable nls` || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR=${D} install || die "make install failed"
	exeinto /etc/init.d
	doexe ${FILESDIR}/gnocatan
	dodoc AUTHORS ChangeLog README
}