# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="A road figher remake" HOMEPAGE="http://braingames.getput.com/roadf/default.asp" SRC_URI="http://www.braingames.getput.com/roadf/download/RF-sources.zip http://www.braingames.getput.com/roadf/download/RoadFighter.zip" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-sound media-libs/sdl-ttf media-libs/sdl-image media-libs/sge" S=${WORKDIR} src_unpack() { cd ${S} unpack ${A} #patch to move the config file to the users home dir epatch ${FILESDIR}/${PN}-homedir.patch || die "HOMEDIR patch failed" #games_make_wrapper ${PN} ./rf ${GAMES_DATADIR}/${PN} echo "#!/bin/sh cd ${GAMES_DATADIR}/${PN} ./rf" > ${PN} } src_install() { dodir "${GAMES_DATADIR}/${PN}" cp -r rf RoadFighter/fonts RoadFighter/graphics RoadFighter/maps RoadFighter/sound "${D}${GAMES_DATADIR}/${PN}" || die "Installing data failed" dogamesbin ${PN} || die "Installing executable failed" prepgamesdirs }