kodi-addons.eclass: Switch EAPI-7 to cmake.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 4 Jan 2020 17:06:09 +0000 (18:06 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 4 Jan 2020 17:07:09 +0000 (18:07 +0100)
All EAPI-7 consumers in Gentoo ebuild repository have been ported.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kodi-addon.eclass

index e924dbdd69729c255af0755c999b05c72257f3e7..914ee3e9f75069007791f9c6b596b52d5fbbc512 100644 (file)
@@ -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
 }