summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-01-04 18:06:09 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-01-04 18:07:09 +0100
commit958c50e9e40c11e3a56f520e3cf032b538906515 (patch)
treebe240a42b63ed3d18aa3d95aaafc445fa848e6d8 /eclass
parentx11-misc/py3status: version bump (diff)
downloadgentoo-958c50e9e40c11e3a56f520e3cf032b538906515.tar.gz
gentoo-958c50e9e40c11e3a56f520e3cf032b538906515.tar.bz2
gentoo-958c50e9e40c11e3a56f520e3cf032b538906515.zip
kodi-addons.eclass: Switch EAPI-7 to cmake.eclass
All EAPI-7 consumers in Gentoo ebuild repository have been ported. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kodi-addon.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/kodi-addon.eclass b/eclass/kodi-addon.eclass
index e924dbdd6972..914ee3e9f750 100644
--- a/eclass/kodi-addon.eclass
+++ b/eclass/kodi-addon.eclass
@@ -9,13 +9,12 @@
# @DESCRIPTION:
# Provides a src_configure function for correct CMake configuration
-inherit cmake-utils
-
case "${EAPI:-0}" in
4|5|6)
- inherit multilib
+ inherit cmake-utils multilib
;;
7)
+ inherit cmake
;;
*) die "EAPI=${EAPI} is not supported" ;;
esac
@@ -31,5 +30,8 @@ kodi-addon_src_configure() {
-DCMAKE_INSTALL_LIBDIR=${EPREFIX%/}/usr/$(get_libdir)/kodi
)
- cmake-utils_src_configure
+ case ${EAPI} in
+ 4|5|6) cmake-utils_src_configure ;;
+ 7) cmake_src_configure ;;
+ esac
}