summaryrefslogtreecommitdiff
blob: 2626d310c41ca111de8a89d83abdb4d3245fa4f8 (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-roguelike/angband/angband-3.0.3.ebuild,v 1.2 2004/01/02 07:59:43 vapier Exp $

inherit games

DESCRIPTION="A Roguelike adventure game"
HOMEPAGE="http://thangorodrim.net/"
SRC_URI="ftp://clockwork.dementia.org/${PN}/Source/${P}.tar.gz"

LICENSE="Moria"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE="X"

DEPEND="virtual/glibc
	>=sys-apps/sed-4
	>=sys-libs/ncurses-5
	X? ( >=x11-base/xfree-4.0 )"

src_compile() {
	local myconf="--bindir=/usr/games/bin --with-setgid=games"
	myconf="${myconf} `use_with X x`"
	sed -i "s:/games/:/:" configure || die "sed configure failed"
	chmod +x configure
	egamesconf ${myconf} || die "configure failed"
	emake || die "make failed"
}

pkg_preinst() {
	rm ${D}/usr/share/games/angband/lib/apex/scores.raw
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc AUTHORS COPYING THANKS TODO changes.txt compile.txt readme.txt
	prepgamesdirs
}

pkg_postinst() {
	chmod -R g+w /usr/share/games/angband/lib/{apex,save,user}
}