/[gentoo-x86]/games-roguelike/zangband/zangband-2.7.4c.ebuild
Gentoo

Contents of /games-roguelike/zangband/zangband-2.7.4c.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Mar 4 00:52:42 2010 UTC (4 years, 9 months ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
inherit eutils
(Portage version: 2.2_rc64/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/zangband/zangband-2.7.4c.ebuild,v 1.10 2009/11/23 09:33:19 volkmar Exp $
4
5 EAPI=2
6 inherit autotools eutils games
7
8 DESCRIPTION="An enhanced version of the Roguelike game Angband"
9 HOMEPAGE="http://www.zangband.org/"
10 SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz"
11
12 LICENSE="Moria"
13 SLOT="0"
14 KEYWORDS="~amd64 ppc x86 ~x86-fbsd"
15 IUSE="tk"
16
17 RDEPEND="tk? (
18 dev-lang/tcl
19 dev-lang/tk )
20 x11-libs/libXaw"
21 DEPEND="${RDEPEND}
22 x11-proto/xextproto"
23
24 S=${WORKDIR}/${PN}
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-tk85.patch \
28 "${FILESDIR}"/${P}-rng.patch
29 eautoreconf
30 }
31
32 src_configure() {
33 egamesconf \
34 --datadir="${GAMES_DATADIR_BASE}" \
35 --with-setgid="${GAMES_GROUP}" \
36 --without-gtk \
37 $(use_with tk tcltk)
38 }
39
40 src_install() {
41 # Keep some important dirs we want to chmod later
42 keepdir "${GAMES_DATADIR}"/${PN}/lib/apex \
43 "${GAMES_DATADIR}"/${PN}/lib/user \
44 "${GAMES_DATADIR}"/${PN}/lib/save
45
46 # Install the basic files but remove unneeded crap
47 emake DESTDIR="${D}/${GAMES_DATADIR}"/${PN}/ installbase \
48 || die "emake installbase failed"
49 rm "${D}${GAMES_DATADIR}"/${PN}/{angdos.cfg,readme,z_faq.txt,z_update.txt}
50
51 # Install everything else and fix the permissions
52 dogamesbin zangband || die "dogamesbin failed"
53 dodoc readme z_faq.txt z_update.txt || die "dodoc failed"
54 find "${D}${GAMES_DATADIR}/zangband/lib" -type f -exec chmod a-x \{\} \;
55
56 prepgamesdirs
57 # All users in the games group need write permissions to
58 # some important dirs
59 fperms -R g+w "${GAMES_DATADIR}"/zangband/lib/{apex,data,save,user}
60 }

  ViewVC Help
Powered by ViewVC 1.1.20