# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit multilib games DESCRIPTION="Sega SG1000/SC3000/Master System/Game Gear/Genesis/Megadrive/SVP/Pico/SegaCD/MegaCD/32X emulator" HOMEPAGE="http://www.eidolons-inn.net/tiki-index.php?page=Kega" SRC_URI="http://www.eidolons-inn.net/tiki-download_file.php?fileId=572 -> ${P}.tar.gz" LICENSE="freedist" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="mp3" QA_PRESTRIPPED="${GAMES_PREFIX_OPT:1}/bin/${PN}" S="${WORKDIR}/Fusion" DEPEND="virtual/opengl x86? ( x11-libs/gtk+:2 x11-libs/libXinerama media-libs/alsa-lib mp3? ( media-sound/mpg123 ) ) amd64? ( app-emulation/emul-linux-x86-gtklibs app-emulation/emul-linux-x86-soundlibs[alsa] )" RDEPEND="${DEPEND}" pkg_setup() { # x86 binary package, ABI=x86 has_multilib_profile && ABI="x86" games_pkg_setup } src_install() { exeinto "${GAMES_PREFIX_OPT}"/bin newexe Fusion ${PN} || die "dobin failed" dodoc History.txt Readme.txt || die "dodoc failed" make_desktop_entry ${PN} "Kega Fusion" doicon "${FILESDIR}/kega-fusion.png" || die prepgamesdirs } pkg_postinst() { if use mp3 ; then elog "For ISO+MP3 support to work, you will" elog "need to set the right libmpg123path" elog "in ~/.Kega Fusion/Fusion.ini." elog "" fi elog "Additional graphics filters may be" elog "downloaded from ${HOMEPAGE}." elog "To use them, extract the filter pack" elog "to ~/.Kega Fusion/Plugins." games_pkg_postinst }