Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 623

Summary: falconeye - a graphical version of nethack
Product: Gentoo Linux Reporter: Jeld The Dark Elf <jeld>
Component: New packagesAssignee: Ferry Meyndert (RETIRED) <m0rpheus>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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
}
---------------------------------------------------------------------------------------------------