summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2017-01-09 15:24:47 -0500
committerDavid Seifert <soap@gentoo.org>2017-01-09 22:25:55 +0200
commit2825b6e93761621c6162913df20b21169df024c8 (patch)
tree9bad032591663c2da65d9c2f00b06ff74e2cc45c /eclass
parentdev-python/ansicolor: add missing dev-python/setuptools DEPEND (diff)
downloadgentoo-2825b6e93761621c6162913df20b21169df024c8.tar.gz
gentoo-2825b6e93761621c6162913df20b21169df024c8.tar.bz2
gentoo-2825b6e93761621c6162913df20b21169df024c8.zip
media-plugins/kodi-*: add live ebuilds for all add-ons currently available in kodi upstream
Gentoo-bug: 555792 Closes: https://github.com/gentoo/gentoo/pull/3195
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kodi-addon.eclass31
1 files changed, 31 insertions, 0 deletions
diff --git a/eclass/kodi-addon.eclass b/eclass/kodi-addon.eclass
new file mode 100644
index 000000000000..8f48b33c3cce
--- /dev/null
+++ b/eclass/kodi-addon.eclass
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# @ECLASS: kodi-addon.eclass
+# @MAINTAINER:
+# candrews@integralblue.com
+# @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
+# @DESCRIPTION:
+# Provides a src_configure function for correct CMake configuration
+
+inherit multilib cmake-utils
+
+case "${EAPI:-0}" in
+ 4|5|6)
+ EXPORT_FUNCTIONS src_configure
+ ;;
+ *) die "EAPI=${EAPI} is not supported" ;;
+esac
+
+# @FUNCTION: kodi-addon_src_configure
+# @DESCRIPTION:
+# Configure handling for Kodi addons
+kodi-addon_src_configure() {
+
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_LIBDIR=$(get_libdir)/kodi
+ )
+
+ cmake-utils_src_configure
+}