# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit games DESCRIPTION="A flexible frontend for video game emulators" HOMEPAGE="http://gelide.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug nls scrollkeeper" RDEPEND="app-text/gnome-doc-utils dev-cpp/gtkmm dev-libs/libxml2 dev-util/intltool scrollkeeper? ( app-text/scrollkeeper )" DEPEND="${RDEPEND}" src_prepare() { # Set emulator paths to gentoo default sed -i -e "s;l_emulator\.setPath(\"[/a-z]*/;l_emulator\.setPath(\"${GAMES_BINDIR}/;" "${S}/src/core/default_systems.cpp" } src_configure() { egamesconf \ $(use_enable debug) \ $(use_enable nls) \ $(use_enable scrollkeeper) \ --datadir=/usr/share \ || die "configure failed" } src_compile() { emake DESTDIR="${D}" || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" dodoc AUTHORS COPYING ChangeLog NEWS README doc/*.txt prepgamesdirs }