Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 12 Sep 2022 19:14:42
Message-Id: 1663010072.6230441073031d9f6301deb2e3017e598b22b200.arthurzam@gentoo
1 commit: 6230441073031d9f6301deb2e3017e598b22b200
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 3 11:19:24 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 19:14:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62304410
7
8 kodi-addon.eclass: drop support for EAPI<7
9
10 - No consumers for EAPI<7 remain in ::gentoo tree
11 - For those EAPIs, it tries to inherit cmake-utils eclass, which
12 doesn't exist, so it would just fail!
13 - Simplify the eclass logic
14 - Fix UnquotedVariable for EPREFIX
15
16 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
17
18 eclass/kodi-addon.eclass | 26 ++++++++++----------------
19 1 file changed, 10 insertions(+), 16 deletions(-)
20
21 diff --git a/eclass/kodi-addon.eclass b/eclass/kodi-addon.eclass
22 index 8cbbad9224fc..6e7fa26f3c8a 100644
23 --- a/eclass/kodi-addon.eclass
24 +++ b/eclass/kodi-addon.eclass
25 @@ -1,25 +1,22 @@
26 -# Copyright 1999-2021 Gentoo Authors
27 +# Copyright 1999-2022 Gentoo Authors
28 # Distributed under the terms of the GNU General Public License v2
29
30 # @ECLASS: kodi-addon.eclass
31 # @MAINTAINER:
32 # candrews@g.o
33 -# @SUPPORTED_EAPIS: 4 5 6 7
34 -# @PROVIDES: cmake cmake-utils
35 +# @SUPPORTED_EAPIS: 7
36 +# @PROVIDES: cmake
37 # @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
38 # @DESCRIPTION:
39 # Provides a src_configure function for correct CMake configuration
40
41 -case "${EAPI:-0}" in
42 - 4|5|6)
43 - inherit cmake-utils multilib
44 - ;;
45 - 7)
46 - inherit cmake
47 - ;;
48 - *) die "EAPI=${EAPI} is not supported" ;;
49 +case ${EAPI} in
50 + 7) ;;
51 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
52 esac
53
54 +inherit cmake
55 +
56 EXPORT_FUNCTIONS src_configure
57
58 # @FUNCTION: kodi-addon_src_configure
59 @@ -28,11 +25,8 @@ EXPORT_FUNCTIONS src_configure
60 kodi-addon_src_configure() {
61
62 mycmakeargs+=(
63 - -DCMAKE_INSTALL_LIBDIR=${EPREFIX%/}/usr/$(get_libdir)/kodi
64 + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)/kodi"
65 )
66
67 - case ${EAPI} in
68 - 4|5|6) cmake-utils_src_configure ;;
69 - 7) cmake_src_configure ;;
70 - esac
71 + cmake_src_configure
72 }