# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="FX-Repton is a clone of the old BBC Micro Repton 3 game" HOMEPAGE="http://www.sigala.it/sandro/software.html#fxrepton" SRC_URI="http://www.sigala.it/sandro/files/fx/${P}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="doc" DEPEND="${RDEPEND} >=sys-apps/sed-4" RDEPEND=">=x11-libs/fox-1.0.49" S="${WORKDIR}/${P}/${PN}" src_unpack() { unpack ${A} cd ${S} # Modify paths and patch headers sed -i \ -e "s:/usr/local/share:${GAMES_DATADIR}:" \ paths.h || die "sed paths.h failed" sed -i \ -e "s:local/include:include:" \ -e "s:/usr/local/bin:${D}${GAMES_BINDIR}:" \ -e "s:/usr/local/share:${D}${GAMES_DATADIR}:" \ -e "s:doc ::" \ Makefile.unix || die "sed Makefile.unix failed" epatch ${FILESDIR}/${P}-vector.patch cp Makefile.unix Makefile } src_compile() { emake || die "emake failed" } src_install() { make install || die "make install failed" use doc && dohtml ../doc/* prepgamesdirs }