summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}