From cccda3c0822835111a8de07c930d9fc1f5a2881e Mon Sep 17 00:00:00 2001 From: "Karlson2k (Evgeny Grin)" Date: Mon, 3 Aug 2020 13:52:17 +0300 Subject: media-plugins/kodi-inputstream-adaptive: fixed deps, licence; tweaks Signed-off-by: Karlson2k (Evgeny Grin) Closes: https://github.com/gentoo/gentoo/pull/16971 Signed-off-by: Craig Andrews --- .../kodi-inputstream-adaptive-2.4.5-r1.ebuild | 43 ++++++++++++++++++++++ .../kodi-inputstream-adaptive-9999.ebuild | 27 +++++++------- 2 files changed, 57 insertions(+), 13 deletions(-) create mode 100644 media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-2.4.5-r1.ebuild (limited to 'media-plugins/kodi-inputstream-adaptive') diff --git a/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-2.4.5-r1.ebuild b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-2.4.5-r1.ebuild new file mode 100644 index 000000000000..1185349b60ef --- /dev/null +++ b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-2.4.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kodi-addon + +DESCRIPTION="Kodi's Adaptive inputstream addon" +HOMEPAGE="https://github.com/peak3d/inputstream.adaptive.git" +KODI_PLUGIN_NAME="inputstream.adaptive" + +case ${PV} in +9999) + SRC_URI="" + EGIT_REPO_URI="https://github.com/peak3d/${KODI_PLUGIN_NAME}.git" + EGIT_BRANCH="Matrix" + inherit git-r3 + DEPEND="~media-tv/kodi-9999" + ;; +*) + CODENAME="Leia" + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/peak3d/${KODI_PLUGIN_NAME}/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${KODI_PLUGIN_NAME}-${PV}-${CODENAME}" + DEPEND="=media-tv/kodi-18*:=" + ;; +esac + +LICENSE="GPL-2+" +SLOT="0" +IUSE="" + +DEPEND+=" + dev-libs/expat + " + +RDEPEND="${DEPEND}" + +src_prepare() { + if [ -d depends ]; then rm -rf depends || die; fi + + cmake_src_prepare +} diff --git a/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-9999.ebuild b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-9999.ebuild index 5b4d4f3e9ca0..18e80d341a6d 100644 --- a/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-9999.ebuild +++ b/media-plugins/kodi-inputstream-adaptive/kodi-inputstream-adaptive-9999.ebuild @@ -3,40 +3,41 @@ EAPI=7 -inherit cmake kodi-addon +inherit kodi-addon DESCRIPTION="Kodi's Adaptive inputstream addon" HOMEPAGE="https://github.com/peak3d/inputstream.adaptive.git" -SRC_URI="" +KODI_PLUGIN_NAME="inputstream.adaptive" case ${PV} in 9999) SRC_URI="" - EGIT_REPO_URI="https://github.com/peak3d/inputstream.adaptive.git" + EGIT_REPO_URI="https://github.com/peak3d/${KODI_PLUGIN_NAME}.git" EGIT_BRANCH="Matrix" inherit git-r3 + DEPEND="~media-tv/kodi-9999" ;; *) - KEYWORDS="~amd64 ~x86" CODENAME="Matrix" - SRC_URI="https://github.com/peak3d/inputstream.adaptive/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/inputstream.adaptive-${PV}-${CODENAME}" + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/peak3d/${KODI_PLUGIN_NAME}/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${KODI_PLUGIN_NAME}-${PV}-${CODENAME}" + DEPEND="=media-tv/kodi-19*:=" ;; esac -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0" IUSE="" -DEPEND=" +DEPEND+=" dev-libs/expat - ~media-tv/kodi-9999 - " -RDEPEND=" - ${DEPEND} " +RDEPEND="${DEPEND}" + src_prepare() { - [ -d depends ] && rm -rf depends || die + if [ -d depends ]; then rm -rf depends || die; fi + cmake_src_prepare } -- cgit v1.2.3-65-gdbad