Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623 - falconeye - a graphical version of nethack
Summary: falconeye - a graphical version of nethack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Ferry Meyndert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-09 17:16 UTC by Jeld The Dark Elf
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeld The Dark Elf 2002-02-09 17:16:05 UTC
Attached to this bug is my first .ebuild. It will build and install Falcons Eye.
This is a hacked up version of nethack providing graphical representation of th
dungeon, monsters, items etc. It depends on SDL libraries and uses yacc during
build. Since this is my first experiment at writing .ebuild I am open to any
suggestions/improvements etc.
Comment 1 Jeld The Dark Elf 2002-02-09 17:20:23 UTC
Since I seem to have problems creating attachment here is the .ebuild
-------------------------------------------cut
here----------------------------------------------
#Copyright 2002 Gentoo Technologies, Inc.
#Distributed under the terms of the GNU General Public License, v2 or later
#Author Dmitriy Kropivnitskiy <nigde@mitechki.net>

A=nethack_source_331_jtp_193.zip
S=${WORKDIR}/${P}
DESCRIPTION=""
SRC_URI="http://falconseye.sourceforge.net/nethack_source_331_jtp_193.zip"
HOMEPAGE="http://falconseye.sourceforge.net/"

DEPEND="media-libs/libsdl
        dev-util/yacc"

RDEPEND="media-libs/libsdl"

src_unpack() {
        unzip /usr/portage/distfiles/${A}

}

src_compile() {
        cd ${WORKDIR}/sys/unix
        source setup.sh
        cd ../../
        make PREFIX=/usr GAME=falconseye GAMEDIR=/usr/share/falconseye
SHELLDIR=/usr/bin
        cd doc
        make
}

src_install() {
        cd ${WORKDIR}
        make PREFIX=${D}/usr GAME=falconseye GAMEDIR=${D}/usr/share/falconseye
SHELLDIR=${D}/usr/bin install
        # Have to remake the shell script with real path information
        sed -e 's;/usr/games/lib/nethackdir;/usr/share/falconseye;' \
        -e 's;HACKDIR/nethack;HACKDIR/falconseye;' \
        < ${WORKDIR}/sys/unix/nethack.sh \
        > ${D}/usr/bin/falconseye
        cd doc
        doman *.6
}
--------------------------------------------------------------------------------------------------------------------
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-09 21:43:32 UTC
Good, except you don't need the A= definition ($A is auto-defined using $SRC_URI
by Portage) and you need to add zip to the DEPEND.  Resubmit with fixes and I'll
forward it to a dev to add to cvs.
Comment 3 Jeld The Dark Elf 2002-02-10 16:49:28 UTC
Here is the fix
---------------------------------------------------------------------------------------------------
#Copyright 2002 Gentoo Technologies, Inc.
#Distributed under the terms of the GNU General Public License, v2 or later
#Author Dmitriy Kropivnitskiy <nigde@mitechki.net> aka Jeld The Dark Elf

S=${WORKDIR}/${P}
DESCRIPTION=""
SRC_URI="http://falconseye.sourceforge.net/nethack_source_331_jtp_193.zip"
HOMEPAGE="http://falconseye.sourceforge.net/"

DEPEND="media-libs/libsdl
        dev-util/yacc 
        app-arch/unzip"

RDEPEND="media-libs/libsdl"

src_unpack() {
        unzip /usr/portage/distfiles/${A}

}
 
src_compile() {
        cd ${WORKDIR}/sys/unix
        source setup.sh
        cd ../../
        make PREFIX=/usr GAME=falconseye GAMEDIR=/usr/share/falconseye
SHELLDIR=/usr/bin
        cd doc
        make  
}
 
src_install() {
        cd ${WORKDIR}
        make PREFIX=${D}/usr GAME=falconseye GAMEDIR=${D}/usr/share/falconseye
SHELLDIR=${D}/usr/bin install
        # Have to remake the shell script with real path information
        sed -e 's;/usr/games/lib/nethackdir;/usr/share/falconseye;' \
        -e 's;HACKDIR/nethack;HACKDIR/falconseye;' \
        < ${WORKDIR}/sys/unix/nethack.sh \
        > ${D}/usr/bin/falconseye
        cd doc
        doman *.6
}
---------------------------------------------------------------------------------------------------