# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Adventure/Strategy game where you play as Robin Hood" HOMEPAGE="http://www.rune-soft.com/englisch/Projektseiten/robin/robin.html" SRC_URI=" http://www.3ddownloads.com/Strategy/Robin%20Hood/Demos/rh-linux-demo-x86.run ppc? (http://www.greyhound-data.com/gunnar/robinhood/robin_demo.gz)" LICENSE="as-is" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" RESTRICT="fetch mirror" DEPEND="" RDEPEND="" GAME_DIR="${GAMES_PREFIX_OPT}/${PN}" D_GAME_DIR="${D}/${GAME_DIR}" S="${WORKDIR}" src_unpack(){ unpack_makeself rh-linux-demo-x86.run if use ppc; then unpack robin_demo.gz fi } src_install(){ cd ${S} ### Remove the executables on ppc (where they don't work) if use ppc; then rm robinhood_demo/robin_demo.dynamic robinhood_demo/robin_demo fi ### Copy in the game data insinto ${GAME_DIR} doins -r ${S}/robinhood_demo/Data ${D_GAME_DIR} doins -r ${S}/robinhood_demo/1033 ${D_GAME_DIR} doins -r ${S}/robinhood_demo/arial.ttf ${D_GAME_DIR} doins -r ${S}/robinhood_demo/rh.png ${D_GAME_DIR} ### Copy the documentation dodoc robinhood_demo/Readme.html ### Make sure the exec is executable exeinto ${GAME_DIR} if use ppc; then doexe robin_demo else doexe robinhood_demo/robin_demo.dynamic doexe robinhood_demo/robin_demo fi ### Make a "wrapper" games_make_wrapper robinhood_demo ./robin_demo "${GAME_DIR}" }