# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/tome/tome-2.1.0.ebuild,v 1.2 2003/02/13 07:55:27 vapier Exp $ MY_PV=${PV//./} S="${WORKDIR}/tome-${MY_PV}-src" DESCRIPTION="ToME is a roguelike game, where you can save the world from Morgoth and battle evil (or become evil ;]). It also acts as a game engine for modules(see http://modules.t-o-m-e.net/)." LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tgz" HOMEPAGE="http://t-o-m-e.net/" DEPEND="virtual/glibc >=sys-libs/ncurses-5 >=x11-base/xfree-4.0" src_compile() { cd ${S}/src cp makefile.std makefile.std.old sed -e "s:-O1:${CFLAGS}:" \ makefile.std.old > makefile.std make -f makefile.std BINDIR=/usr/games/bin LIBDIR=/usr/share/games/tome/lib || die "compile failed" } src_install () { cd ${S}/src make -f makefile.std BINDIR=${D}/usr/games/bin LIBDIR=${D}/usr/share/games/tome/lib install || die "install failed" }