kde-apps/ksirk: x86 stable (bug #661810)
[gentoo.git] / eclass / kodi-addon.eclass
1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 # @ECLASS: kodi-addon.eclass
5 # @MAINTAINER:
6 # candrews@gentoo.org
7 # @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
8 # @DESCRIPTION:
9 # Provides a src_configure function for correct CMake configuration
10
11 inherit multilib cmake-utils
12
13 case "${EAPI:-0}" in
14         4|5|6)
15                 EXPORT_FUNCTIONS src_configure
16                 ;;
17         *) die "EAPI=${EAPI} is not supported" ;;
18 esac
19
20 # @FUNCTION: kodi-addon_src_configure
21 # @DESCRIPTION:
22 # Configure handling for Kodi addons
23 kodi-addon_src_configure() {
24
25         mycmakeargs+=(
26                 -DCMAKE_INSTALL_LIBDIR=$(get_libdir)/kodi
27         )
28
29         cmake-utils_src_configure
30 }