# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit fdo-mime gnome2-utils games DESCRIPTION="ePSXe PlayStation Emulator" HOMEPAGE="http://www.epsxe.com/" SRC_URI="http://www.epsxe.com/files/epsxe${PV//.}lin.zip http://dev.gentoo.org/~hasufell/distfiles/${PN}.png" LICENSE="freedist" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="opengl" RESTRICT="strip" DEPEND="app-arch/unzip" RDEPEND="games-emulation/psemu-peopsspu opengl? ( games-emulation/psemu-gpupetexgl2 games-emulation/psemu-gpupetemesagl ) !opengl? ( games-emulation/psemu-peopssoftgpu ) amd64? ( app-emulation/emul-linux-x86-gtklibs ) x86? ( x11-libs/gtk+:1 )" S=${WORKDIR} src_install() { local dir="${GAMES_PREFIX_OPT}/${PN}" dogamesbin "${FILESDIR}"/epsxe sed -i \ -e "s:GAMES_PREFIX_OPT:${GAMES_PREFIX_OPT}:" \ -e "s:GAMES_LIBDIR:$(games_get_libdir):" \ "${D}${GAMES_BINDIR}"/epsxe \ || die exeinto "${dir}" doexe epsxe insinto "${dir}" doins keycodes.lst insinto "$(games_get_libdir)"/psemu/cheats doins cheats/* dodoc docs/* doicon -s 32 "${DISTDIR}"/${PN}.png domenu "${FILESDIR}"/epsxe.desktop prepgamesdirs } pkg_preinst() { games_pkg_preinst gnome2_icon_savelist } pkg_postinst() { fdo-mime_desktop_database_update gnome2_icon_cache_update games_pkg_postinst ewarn " " ewarn "You need at least plugins for sound and video and" ewarn "a BIOS file! " ewarn " " ewarn "Plugins can also be added to ~/.epsxe/plugins " ewarn "manually. " ewarn " " } pkg_postrm() { fdo-mime_desktop_database_update gnome2_icon_cache_update }