blob: ae39a3d001668e2f82ee5e7f9afcf64eb82135a3 (
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
46
|
# Copyright 1999-2004 Gentoo Foundation
# 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.8 2004/09/23 09:32:47 mr_bones_ 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 ~amd64"
IUSE="X"
RDEPEND="virtual/libc
>=sys-libs/ncurses-5
X? ( virtual/x11 )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_compile() {
local myconf="--bindir=/usr/games/bin --with-setgid=games"
myconf="${myconf} `use_with X x`"
sed -i \
-e "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 "make install failed"
dodoc AUTHORS THANKS TODO changes.txt compile.txt readme.txt
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
chmod -R g+w "${ROOT}"/usr/share/games/angband/lib/{apex,save,user}
}
|