summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarlson2k (Evgeny Grin) <k2k@narod.ru>2020-08-02 12:37:18 +0300
committerCraig Andrews <candrews@gentoo.org>2020-08-13 16:50:38 -0400
commit3e19aa0754adc9e3859adf5d460a693394a6fe53 (patch)
tree441b6cf465dda4a16e83924315cd20d475001bc9 /media-plugins
parentmedia-plugins/kodi-visualization-goom: 3.2.0 version bump (diff)
downloadgentoo-3e19aa0754adc9e3859adf5d460a693394a6fe53.tar.gz
gentoo-3e19aa0754adc9e3859adf5d460a693394a6fe53.tar.bz2
gentoo-3e19aa0754adc9e3859adf5d460a693394a6fe53.zip
media-plugins/kodi-visualization-projectm: fixed deps, licence
Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Closes: https://github.com/gentoo/gentoo/pull/16948 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-2.3.5-r1.ebuild45
-rw-r--r--media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-9999.ebuild31
2 files changed, 61 insertions, 15 deletions
diff --git a/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-2.3.5-r1.ebuild b/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-2.3.5-r1.ebuild
new file mode 100644
index 000000000000..f1891b47eaea
--- /dev/null
+++ b/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-2.3.5-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kodi-addon
+
+DESCRIPTION="ProjectM visualizer for Kodi"
+HOMEPAGE="https://github.com/xbmc/visualization.projectm"
+KODI_PLUGIN_NAME="visualization.projectm"
+
+case ${PV} in
+9999)
+ SRC_URI=""
+ 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/${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+="
+ virtual/opengl
+ >=media-libs/libprojectm-3.1.2:=
+ "
+
+RDEPEND="${DEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ if [ -d depends ]; then rm -rf depends || die; fi
+
+ cmake_src_prepare
+}
diff --git a/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-9999.ebuild b/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-9999.ebuild
index 06afcfe88f16..759f84a9e7e2 100644
--- a/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-9999.ebuild
+++ b/media-plugins/kodi-visualization-projectm/kodi-visualization-projectm-9999.ebuild
@@ -3,42 +3,43 @@
EAPI=7
-inherit cmake kodi-addon
+inherit kodi-addon
DESCRIPTION="ProjectM visualizer for Kodi"
HOMEPAGE="https://github.com/xbmc/visualization.projectm"
-SRC_URI=""
+KODI_PLUGIN_NAME="visualization.projectm"
case ${PV} in
9999)
SRC_URI=""
- EGIT_REPO_URI="https://github.com/xbmc/visualization.projectm.git"
+ EGIT_REPO_URI="https://github.com/xbmc/${KODI_PLUGIN_NAME}.git"
inherit git-r3
+ DEPEND="~media-tv/kodi-9999"
;;
*)
- KEYWORDS="~amd64 ~x86"
CODENAME="Matrix"
- SRC_URI="https://github.com/xbmc/visualization.projectm/archive/${PV}-${CODENAME}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/visualization.projectm-${PV}-${CODENAME}"
+ KEYWORDS="~amd64 ~x86"
+ 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/libprojectm-3.1.2:=
- >=media-libs/glm-0.9.9.5
+DEPEND+="
virtual/opengl
+ >=media-libs/libprojectm-3.1.2:=
"
-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
}