DIST kodi-game-libretro-nestopia-1.50.0.8.tar.gz 793551 BLAKE2B d616ec3b69c0e996136e2977860c08537dee8a9ba5682ade887de59ead6d02e6ec7426025f562e2b67700cf525149f3bafa427dd365ad87020377c52b080d5f9 SHA512 97e6cc6253c52bc4d5697210004dcaea775f2537db81cfa2131be149b53cd2e0204f3618d15e2f5bce3b334a75525cc220a8b05f61a4aa3a0979608ec8f0a8d2
+DIST kodi-game-libretro-nestopia-1.50.0.9.tar.gz 793618 BLAKE2B 367dde5b556dca45b86b94ae4592d2a07d63b5b136ec77e32d51cbc9ec7cc6e6ba48b409d66984e54988e79bdf8034cde871cd4898b1c3673830a06692fadeff SHA512 1bac70812ecf58f74adcebbe9bb0520eee5eb070b307b79d9c0b7c2d5393b7191eea89b8a8b490c4626701993164b142864c999abb34f525d7e73a673c60b5a4
--- /dev/null
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake kodi-addon
+
+DESCRIPTION="Nestopia GameClient for Kodi"
+HOMEPAGE="https://github.com/kodi-game/game.libretro.nestopia"
+SRC_URI=""
+
+if [[ ${PV} == *9999 ]]; then
+ SRC_URI=""
+ EGIT_REPO_URI="https://github.com/kodi-game/game.libretro.nestopia.git"
+ inherit git-r3
+else
+ KEYWORDS="~amd64 ~x86"
+ CODENAME="Leia"
+ SRC_URI="https://github.com/kodi-game/game.libretro.nestopia/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/game.libretro.nestopia-${PV}-${CODENAME}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ =media-tv/kodi-18*
+ games-emulation/libretro-nestopia
+ "
+RDEPEND="
+ media-plugins/kodi-game-libretro
+ ${DEPEND}
+ "
+src_prepare() {
+ echo 'find_library(NESTOPIA_LIB NAMES nestopia_libretro${CMAKE_SHARED_LIBRARY_SUFFIX} PATH_SUFFIXES libretro)' > "${S}/Findlibretro-nestopia.cmake" || die
+ cmake_src_prepare
+}