# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils games DESCRIPTION="Warp Rogue is a gothic science fantasy roguelike game." HOMEPAGE="http://todoom.sourceforge.net/" SRC_URI="mirror://sourceforge/todoom/${P}b.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=">=media-libs/libsdl-1.2.9" DEPEND="${RDEPEND}" S=${WORKDIR}/${P}b src_unpack() { unpack ${A} cd ${S} sed -i -e 's:\"\.\/data\/:\"\/usr\/share\/games\/wrogue\/:' src/unix/be_unix.c || die "sed failed" } src_compile() { cd ${S}/src emake CFLAGS="-std=c99 ${CFLAGS} -I. -I./lib -I./ui `sdl-config --cflags`" -f unixgcc.mak || die "emake failed" } src_install() { dogamesbin src/${PN} || die "dogamesbin failed" insinto "${GAMES_DATADIR}/${PN}" doins -r data/* || die "doins failed" dodoc *.txt newicon data/graphics/logo.bmp ${PN}.png prepgamesdirs make_desktop_entry ${PN} "Warp Rogue" ${PN}.png }