# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Ryan Phillips based off of jano lukac nethack 3.3.1 emerge # /space/gentoo/cvsroot/gentoo-x86/app-games/ltris/ltris-1.0.1.ebuild,v 1.2 2002/02/06 22:58:01 verwilst Exp S=${WORKDIR}/${P} DESCRIPTION="NetHack is a dungeon RPG" SRC_URI="ftp://ftp.nethack.org/pub/nethack/nh340/src/nethack-340.tgz" HOMEPAGE="http://www.nethack.org/" DEPEND="virtual/glibc dev-util/yacc" src_compile() { patch -R -p1 < ${FILESDIR}/nethack-console-3.4.0.patch sh ./sys/unix/setup.sh links emake all || die "Emake failed. Whimper whimper " cd util emake recover || die "You have died. recover failed." cd .. } src_install () { dodir /usr/share/man/man6 dodir /usr/X11R6/lib/X11/app-defaults dodir /usr/games/lib/nethackdir/save dodir /usr/bin emake PREFIX=${D}/usr install || die cd doc make PREFIX=${D}/usr mandir=${D}/usr/share/man cd .. dosed /usr/games/lib/nethack dosed /usr/games/nethack install -s -m755 util/recover ${D}/usr/games/lib/nethackdir install -m444 win/X11/NetHack.ad ${D}/usr/X11R6/lib/X11/app-defaults/ cd win/X11 dodir /usr/X11R6/lib/X11/fonts/misc /usr/X11R6/bin/bdftopcf < nh10.bdf > ${D}/usr/X11R6/lib/X11/fonts/misc/nh10.pcf /usr/X11R6/bin/bdftopcf < ibm.bdf > ${D}/usr/X11R6/lib/X11/fonts/misc/ibm.pcf echo "after X11 stuff" dosym /usr/games/nethack /usr/bin/nethack # dodoc AUTHORS COPYING README TODO ChangeLog echo "*NOTE*: To enable color support within most terminals \ create a ~/.nethackrc file with the following command: \ OPTIONS=color" }