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