summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarlson2k (Evgeny Grin) <k2k@narod.ru>2020-08-02 12:58:16 +0300
committerCraig Andrews <candrews@gentoo.org>2020-08-13 16:50:40 -0400
commit55f6eabade493363cda68f4f941538fdb55211cf (patch)
tree94032843c24f3704bd36df188c5c9f9c885c5779 /media-plugins/kodi-visualization-spectrum
parentmedia-plugins/kodi-visualization-shadertoy: fixed build (diff)
downloadgentoo-55f6eabade493363cda68f4f941538fdb55211cf.tar.gz
gentoo-55f6eabade493363cda68f4f941538fdb55211cf.tar.bz2
gentoo-55f6eabade493363cda68f4f941538fdb55211cf.zip
media-plugins/kodi-visualization-spectrum: fixed build, deps, licence
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Closes: https://github.com/gentoo/gentoo/pull/16950 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-plugins/kodi-visualization-spectrum')
-rw-r--r--media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.0.3.ebuild28
-rw-r--r--media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.2.0.ebuild28
-rw-r--r--media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-9999.ebuild28
-rw-r--r--media-plugins/kodi-visualization-spectrum/metadata.xml1
4 files changed, 45 insertions, 40 deletions
diff --git a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.0.3.ebuild b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.0.3.ebuild
index d80cf89a5104..c5bfc95f2070 100644
--- a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.0.3.ebuild
+++ b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.0.3.ebuild
@@ -3,41 +3,43 @@
EAPI=7
-inherit cmake kodi-addon
+inherit kodi-addon
DESCRIPTION="Spectrum visualizer for Kodi"
HOMEPAGE="https://github.com/xbmc/visualization.spectrum"
-SRC_URI=""
+KODI_PLUGIN_NAME="visualization.spectrum"
case ${PV} in
9999)
SRC_URI=""
- EGIT_REPO_URI="https://github.com/xbmc/visualization.spectrum.git"
+ EGIT_REPO_URI="https://github.com/xbmc/${KODI_PLUGIN_NAME}.git"
inherit git-r3
+ DEPEND="~media-tv/kodi-9999"
;;
*)
CODENAME="Leia"
KEYWORDS="~amd64 ~x86"
- SRC_URI="https://github.com/xbmc/visualization.spectrum/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/visualization.spectrum-${PV}-${CODENAME}"
+ SRC_URI="https://github.com/xbmc/${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"
+LICENSE="GPL-2+"
SLOT="0"
IUSE=""
-DEPEND="
- =media-tv/kodi-18*
- media-libs/glm
+DEPEND+="
+ >=media-libs/glm-0.9.9.8-r1
virtual/opengl
"
-RDEPEND="
- ${DEPEND}
- "
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
src_prepare() {
- [ -d depends ] && rm -rf depends || die
+ if [ -d depends ]; then rm -rf depends || die; fi
+
cmake_src_prepare
}
diff --git a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.2.0.ebuild b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.2.0.ebuild
index 0627d7500eac..3284a024509a 100644
--- a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.2.0.ebuild
+++ b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-3.2.0.ebuild
@@ -3,41 +3,43 @@
EAPI=7
-inherit cmake kodi-addon
+inherit kodi-addon
DESCRIPTION="Spectrum visualizer for Kodi"
HOMEPAGE="https://github.com/xbmc/visualization.spectrum"
-SRC_URI=""
+KODI_PLUGIN_NAME="visualization.spectrum"
case ${PV} in
9999)
SRC_URI=""
- EGIT_REPO_URI="https://github.com/xbmc/visualization.spectrum.git"
+ EGIT_REPO_URI="https://github.com/xbmc/${KODI_PLUGIN_NAME}.git"
inherit git-r3
+ DEPEND="~media-tv/kodi-9999"
;;
*)
CODENAME="Matrix"
KEYWORDS="~amd64 ~x86"
- SRC_URI="https://github.com/xbmc/visualization.spectrum/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/visualization.spectrum-${PV}-${CODENAME}"
+ SRC_URI="https://github.com/xbmc/${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="
- =media-tv/kodi-19*
- media-libs/glm
+DEPEND+="
+ >=media-libs/glm-0.9.9.8-r1
virtual/opengl
"
-RDEPEND="
- ${DEPEND}
- "
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
src_prepare() {
- [ -d depends ] && rm -rf depends || die
+ if [ -d depends ]; then rm -rf depends || die; fi
+
cmake_src_prepare
}
diff --git a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-9999.ebuild b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-9999.ebuild
index d8ead2f073fd..3284a024509a 100644
--- a/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-9999.ebuild
+++ b/media-plugins/kodi-visualization-spectrum/kodi-visualization-spectrum-9999.ebuild
@@ -3,41 +3,43 @@
EAPI=7
-inherit cmake kodi-addon
+inherit kodi-addon
DESCRIPTION="Spectrum visualizer for Kodi"
HOMEPAGE="https://github.com/xbmc/visualization.spectrum"
-SRC_URI=""
+KODI_PLUGIN_NAME="visualization.spectrum"
case ${PV} in
9999)
SRC_URI=""
- EGIT_REPO_URI="https://github.com/xbmc/visualization.spectrum.git"
+ EGIT_REPO_URI="https://github.com/xbmc/${KODI_PLUGIN_NAME}.git"
inherit git-r3
+ DEPEND="~media-tv/kodi-9999"
;;
*)
CODENAME="Matrix"
KEYWORDS="~amd64 ~x86"
- SRC_URI="https://github.com/xbmc/visualization.spectrum/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/visualization.spectrum-${PV}-${CODENAME}"
+ SRC_URI="https://github.com/xbmc/${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="
- ~media-tv/kodi-9999
- media-libs/glm
+DEPEND+="
+ >=media-libs/glm-0.9.9.8-r1
virtual/opengl
"
-RDEPEND="
- ${DEPEND}
- "
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
src_prepare() {
- [ -d depends ] && rm -rf depends || die
+ if [ -d depends ]; then rm -rf depends || die; fi
+
cmake_src_prepare
}
diff --git a/media-plugins/kodi-visualization-spectrum/metadata.xml b/media-plugins/kodi-visualization-spectrum/metadata.xml
index 673ffc320649..7199132488ae 100644
--- a/media-plugins/kodi-visualization-spectrum/metadata.xml
+++ b/media-plugins/kodi-visualization-spectrum/metadata.xml
@@ -5,7 +5,6 @@
<email>candrews@gentoo.org</email>
<name>Craig Andrews</name>
</maintainer>
- <longdescription>Spectrum visualizer for Kodi</longdescription>
<upstream>
<remote-id type="github">xbmc/visualization.spectrum</remote-id>
</upstream>