Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Thu, 02 Sep 2021 18:14:50
Message-Id: 1630606467.a2efb902352fffc48ff27bef73b8ff24b7b05b39.asturm@gentoo
1 commit: a2efb902352fffc48ff27bef73b8ff24b7b05b39
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 2 18:14:27 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 2 18:14:27 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a2efb902
7
8 ecm.eclass: Sync with Gentoo ebuild repository
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 eclass/ecm.eclass | 26 +++++++++++++++-----------
13 1 file changed, 15 insertions(+), 11 deletions(-)
14
15 diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
16 index 1f62d7f7af..a2c8ed1c95 100644
17 --- a/eclass/ecm.eclass
18 +++ b/eclass/ecm.eclass
19 @@ -5,6 +5,7 @@
20 # @MAINTAINER:
21 # kde@g.o
22 # @SUPPORTED_EAPIS: 7 8
23 +# @PROVIDES: cmake
24 # @BLURB: Support eclass for packages that use KDE Frameworks with ECM.
25 # @DESCRIPTION:
26 # This eclass is intended to streamline the creation of ebuilds for packages
27 @@ -22,16 +23,9 @@
28
29 case ${EAPI} in
30 7|8) ;;
31 - *) die "EAPI=${EAPI:-0} is not supported" ;;
32 + *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;;
33 esac
34
35 -if [[ -v KDE_GCC_MINIMAL ]]; then
36 - EXPORT_FUNCTIONS pkg_pretend
37 -fi
38 -
39 -EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_postinst pkg_postrm
40 -[[ ${EAPI} != 7 ]] && EXPORT_FUNCTIONS src_install
41 -
42 if [[ -z ${_ECM_ECLASS} ]]; then
43 _ECM_ECLASS=1
44
45 @@ -42,6 +36,8 @@ _ECM_ECLASS=1
46 # for tests you should proceed with setting VIRTUALX_REQUIRED=test.
47 : ${VIRTUALX_REQUIRED:=manual}
48
49 +inherit cmake flag-o-matic toolchain-funcs virtualx
50 +
51 # @ECLASS-VARIABLE: ECM_NONGUI
52 # @DEFAULT_UNSET
53 # @DESCRIPTION:
54 @@ -54,8 +50,6 @@ if [[ ${CATEGORY} = kde-frameworks ]] ; then
55 fi
56 : ${ECM_NONGUI:=false}
57
58 -inherit cmake flag-o-matic toolchain-funcs virtualx
59 -
60 if [[ ${ECM_NONGUI} = false ]] ; then
61 inherit xdg
62 fi
63 @@ -272,7 +266,7 @@ unset COMMONDEPEND
64 # @DESCRIPTION:
65 # Determine if the current GCC version is acceptable, otherwise die.
66 _ecm_check_gcc_version() {
67 - if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; then
68 + if [[ ${MERGE_TYPE} != binary && -v ${KDE_GCC_MINIMAL} ]] && tc-is-gcc; then
69
70 local version=$(gcc-version)
71
72 @@ -601,3 +595,13 @@ ecm_pkg_postrm() {
73 }
74
75 fi
76 +
77 +if [[ -v ${KDE_GCC_MINIMAL} ]]; then
78 + EXPORT_FUNCTIONS pkg_pretend
79 +fi
80 +
81 +EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_postinst pkg_postrm
82 +
83 +if [[ ${EAPI} != 7 ]]; then
84 + EXPORT_FUNCTIONS src_install
85 +fi