app-metrics/prometheus: add 3.1.0
[gentoo/gentoo.git] / media-plugins / kodi-game-libretro-dosbox / kodi-game-libretro-dosbox-9999.ebuild
blobdf2ee5fc3f2bcc26769dd697bdabeb90d1c76c36
1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit cmake kodi-addon
8 DESCRIPTION="DOSBox GameClient for Kodi"
9 HOMEPAGE="https://github.com/kodi-game/game.libretro.dosbox"
10 SRC_URI=""
12 if [[ ${PV} == *9999 ]]; then
13         SRC_URI=""
14         EGIT_REPO_URI="https://github.com/kodi-game/game.libretro.dosbox.git"
15         inherit git-r3
16         DEPEND="
17                 ${DEPEND}
18                 ~media-tv/kodi-9999"
19 else
20         KEYWORDS="~amd64 ~x86"
21         CODENAME="Matrix"
22         SRC_URI="https://github.com/kodi-game/game.libretro.dosbox/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
23         S="${WORKDIR}/game.libretro.dosbox-${PV}-${CODENAME}"
24         DEPEND="
25                 ${DEPEND}
26                 =media-tv/kodi-19*"
29 LICENSE="GPL-2"
30 SLOT="0"
31 IUSE=""
33 DEPEND="
34         ${DEPEND}
35         games-emulation/libretro-dosbox
36         "
37 RDEPEND="
38         media-plugins/kodi-game-libretro
39         ${DEPEND}
40         "
41 src_prepare() {
42         echo 'find_library(DOSBOX_LIB NAMES dosbox_libretro${CMAKE_SHARED_LIBRARY_SUFFIX} PATH_SUFFIXES libretro)' > "${S}/Findlibretro-dosbox.cmake" || die
43         cmake_src_prepare