summaryrefslogtreecommitdiff
blob: 78e2d2db6dd663b908f44b599f1d0c4fd223490c (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-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.1 2003/09/10 17:46:27 vapier 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"

DEPEND="=x11-libs/gtk+-1*
	=dev-libs/glib-1*
	gnome-base/gnome-libs
	>=sys-apps/sed-4
	gnome-base/ORBit
	sys-devel/patch"

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
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README
}