Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 24 Dec 2019 21:19:18
Message-Id: 1577220160.d318a229c695d454a07ae5616836aab1dcf3e385.asturm@gentoo
1 commit: d318a229c695d454a07ae5616836aab1dcf3e385
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 7 13:10:24 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 20:42:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d318a229
7
8 kde5-functions.eclass: Drop functions/vars moved to ecm/kde.org
9
10 _check_gcc_version moved to ecm.eclass
11 KDE_GCC_MINIMAL moved to ecm.eclass
12 KDE_BUILD_TYPE moved to kde.org.eclass
13
14 punt_bogus_dep is deprecated (replaced by ecm_punt_bogus_dep in ecm.eclass)
15
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 eclass/kde5-functions.eclass | 46 --------------------------------------------
19 1 file changed, 46 deletions(-)
20
21 diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
22 index 7bf5a9caa33..bbb8d6d90f2 100644
23 --- a/eclass/kde5-functions.eclass
24 +++ b/eclass/kde5-functions.eclass
25 @@ -15,23 +15,11 @@
26 if [[ -z ${_KDE5_FUNCTIONS_ECLASS} ]]; then
27 _KDE5_FUNCTIONS_ECLASS=1
28
29 -inherit toolchain-funcs
30 -
31 case ${EAPI} in
32 7) ;;
33 *) die "EAPI=${EAPI:-0} is not supported" ;;
34 esac
35
36 -# @ECLASS-VARIABLE: KDE_BUILD_TYPE
37 -# @DESCRIPTION:
38 -# If PV matches "*9999*", this is automatically set to "live".
39 -# Otherwise, this is automatically set to "release".
40 -KDE_BUILD_TYPE="release"
41 -if [[ ${PV} = *9999* ]]; then
42 - KDE_BUILD_TYPE="live"
43 -fi
44 -export KDE_BUILD_TYPE
45 -
46 # @ECLASS-VARIABLE: QT_MINIMAL
47 # @DESCRIPTION:
48 # Minimum version of Qt to require. This affects add_qt_dep.
49 @@ -52,40 +40,6 @@ export KDE_BUILD_TYPE
50 # Minimum version of KDE Applications to require. This affects add_kdeapps_dep.
51 : ${KDE_APPS_MINIMAL:=19.04.3}
52
53 -# @ECLASS-VARIABLE: KDE_GCC_MINIMAL
54 -# @DEFAULT_UNSET
55 -# @DESCRIPTION:
56 -# Minimum version of active GCC to require. This is checked in kde5.eclass in
57 -# kde5_pkg_pretend and kde5_pkg_setup.
58 -
59 -# @FUNCTION: _check_gcc_version
60 -# @INTERNAL
61 -# @DESCRIPTION:
62 -# Determine if the current GCC version is acceptable, otherwise die.
63 -_check_gcc_version() {
64 - if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; then
65 -
66 - local version=$(gcc-version)
67 - local major=${version%.*}
68 - local minor=${version#*.}
69 - local min_major=${KDE_GCC_MINIMAL%.*}
70 - local min_minor=${KDE_GCC_MINIMAL#*.}
71 -
72 - debug-print "GCC version check activated"
73 - debug-print "Version detected:"
74 - debug-print " - Full: ${version}"
75 - debug-print " - Major: ${major}"
76 - debug-print " - Minor: ${minor}"
77 - debug-print "Version required:"
78 - debug-print " - Major: ${min_major}"
79 - debug-print " - Minor: ${min_minor}"
80 -
81 - [[ ${major} -lt ${min_major} ]] || \
82 - ( [[ ${major} -eq ${min_major} && ${minor} -lt ${min_minor} ]] ) \
83 - && die "Sorry, but gcc-${KDE_GCC_MINIMAL} or later is required for this package (found ${version})."
84 - fi
85 -}
86 -
87 # @FUNCTION: _add_category_dep
88 # @INTERNAL
89 # @DESCRIPTION: