blob: ecc062d6c34548650749c3a23b7bc2a896b31d4e (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/angband-3.0.6.ebuild,v 1.7 2007/03/12 16:43:41 gustavoz Exp $
inherit flag-o-matic games
DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R.Tolkien"
HOMEPAGE="http://thangorodrim.net/"
SRC_URI="ftp://ftp.thangorodrim.net/pub/${PN}/Source/${P}.tar.gz"
LICENSE="Moria"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc-macos sparc x86 ~x86-fbsd"
IUSE="X gtk"
DEPEND=">=sys-libs/ncurses-5
gtk? ( =x11-libs/gtk+-1.2* )
X? ( x11-libs/libXaw )"
src_compile() {
egamesconf \
--disable-dependency-tracking \
--bindir="${GAMES_BINDIR}" \
--with-setgid="${GAMES_GROUP}" \
$(use_enable gtk) \
$(use_with X x) \
|| die "egamesconf failed"
append-ldflags -Wl,-z,now
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog THANKS TODO changes.txt compile.txt readme.txt
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
chmod -R g+w "${ROOT}${GAMES_DATADIR}"/angband/lib/{apex,save,user}
}
|