blob: 8ca16e0eb82b8b94d8de0e4255eb00e143da8b50 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/falconseye/falconseye-1.9.4a.ebuild,v 1.10 2009/09/06 17:52:22 ssuominen Exp $
inherit eutils games
DESCRIPTION="A graphical version of nethack (unofficially developed version 1.94)"
HOMEPAGE="http://falconseye.sourceforge.net/"
SRC_URI="http://cage.ugent.be/~jdemeyer/nethack/nethack-341-jtp-194a.tar.bz2"
KEYWORDS="x86 ppc ~amd64"
LICENSE="nethack"
SLOT="0"
IUSE=""
DEPEND="media-libs/libsdl
dev-util/yacc
dev-util/byacc"
RDEPEND="media-libs/libsdl
media-sound/timidity++
media-sound/mpg123"
S=${WORKDIR}/nethack-341-jtp-194a
src_unpack() {
unpack ${A}
cd "${S}"
source sys/unix/setup.sh
cd ../../
epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
epatch "${FILESDIR}/${PV}-default-options.patch"
sed -i "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h || die "setting statedir"
sed -i "s:GENTOO_HACKDIR:${GAMES_DATADIR}/${PN}:" include/config.h || die "seting hackdir"
sed -i 's:/usr/local/bin/timidity:/usr/bin/timidity:' win/jtp/gamedata/config/jtp_opts.txt
}
src_compile() {
emake -j1 \
GAME=falconseye \
CFLAGS="${CFLAGS} -I../include -I../win/jtp" \
|| die "game failed"
cd doc
emake || die "doc failed"
}
src_install() {
emake \
GAMEPERM=0755 \
PREFIX=${D}/usr \
GAME=falconseye \
GAMEUID=${GAMES_USER} \
GAMEGRP=${GAMES_GROUP} \
GAMEDIR=${D}/${GAMES_DATADIR}/${PN} \
VARDIR=${D}/${GAMES_STATEDIR}/${PN} \
SHELLDIR=${D}/${GAMES_BINDIR} \
install \
|| die "install failed"
dosed "s:${D}/::" "${GAMES_BINDIR}/falconseye"
sed 's:nethack:falconseye:g' doc/nethack.6 > doc/falconseye.6
doman doc/falconseye.6
dodoc ChangeLog README falcon.txt
prepgamesdirs
chmod -R g+w "${D}/${GAMES_STATEDIR}"
}
|