/[gentoo-x86]/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild
Gentoo

Contents of /games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Mar 7 20:13:41 2008 UTC (6 years, 9 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
QA cleanup: Fix quoting.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/falconseye/falconseye-1.9.3-r1.ebuild,v 1.7 2007/03/12 17:15:10 genone Exp $
4
5 DESCRIPTION="A graphical version of nethack"
6 SRC_URI="mirror://sourceforge/falconseye/nethack_source_331_jtp_193.zip"
7 HOMEPAGE="http://falconseye.sourceforge.net/"
8
9 KEYWORDS="x86 ppc"
10 IUSE=""
11 LICENSE="nethack"
12 SLOT="0"
13
14 DEPEND="media-libs/libsdl
15 dev-util/yacc
16 app-arch/unzip"
17 RDEPEND="media-libs/libsdl
18 app-arch/gzip
19 media-sound/timidity++"
20
21 src_unpack() {
22 unpack ${A}
23 patch -p1 < ${FILESDIR}/${PV}-gzip.diff || die
24 patch -p1 < ${FILESDIR}/${PV}-midiplayer.diff || die
25 patch -p1 < ${FILESDIR}/${PV}-musicsavefix.diff || die
26 }
27
28 src_compile() {
29 cd ${WORKDIR}/sys/unix
30 source setup.sh
31 cd ../../
32 make PREFIX=/usr GAME=falconseye GAMEDIR=/usr/share/falconseye SHELLDIR=/usr/bin || die
33 cd doc
34 make || die
35 }
36
37 src_install() {
38 cd ${WORKDIR}
39 make PREFIX=${D}/usr GAME=falconseye GAMEDIR=${D}/usr/share/falconseye SHELLDIR=${D}/usr/bin install
40 # Have to remake the shell script with real path information
41 sed -e 's;/usr/games/lib/nethackdir;/usr/share/falconseye;' \
42 -e 's;HACKDIR/nethack;HACKDIR/falconseye;' \
43 -e '7a\
44 if [[ -f ${HOME}/.falconseyerc ]] ; then\
45 export NETHACKOPTIONS=${HOME}/.falconseyerc;\
46 else\
47 echo 'OPTIONS=noautopickup,toptenwin,showexp,rest_on_space' > ${HOME}/.falconseyerc;\
48 export NETHACKOPTIONS=${HOME}/.falconseyerc;\
49 fi' \
50 < ${WORKDIR}/sys/unix/nethack.sh \
51 > ${D}/usr/bin/falconseye
52 cd doc
53 doman *.6
54 }
55
56 pkg_postinst() {
57 elog "Falconseye now supports a ~/.falconseyerc file to set options."
58 elog "Click ? then 'List of game options' in falconseye for more info."
59 }

  ViewVC Help
Powered by ViewVC 1.1.20