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: Sun, 29 Dec 2019 13:04:13
Message-Id: 1577624621.1cb5419c9e7a85305936ea4e80a0e827255e1a35.asturm@gentoo
1 commit: 1cb5419c9e7a85305936ea4e80a0e827255e1a35
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 22:17:15 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 13:03:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cb5419c
7
8 kde5.eclass: Switch to cmake.eclass
9
10 Provide cmake-utils_use_find_package alias.
11
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 eclass/kde5.eclass | 38 +++++++++++++++++++++++---------------
15 1 file changed, 23 insertions(+), 15 deletions(-)
16
17 diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
18 index 538c2479384..884d4b4a47d 100644
19 --- a/eclass/kde5.eclass
20 +++ b/eclass/kde5.eclass
21 @@ -9,7 +9,7 @@
22 # @DESCRIPTION:
23 # This eclass is *deprecated*. Please read the PORTING notes for switching to
24 # ecm.eclass in case the package is using extra-cmake-modules, otherwise just
25 -# use cmake-utils.eclass instead. For projects hosted on kde.org infrastructure,
26 +# use cmake.eclass instead. For projects hosted on kde.org infrastructure,
27 # inherit kde.org.eclass to fetch and unpack sources independent of the build
28 # system being used.
29 #
30 @@ -17,7 +17,7 @@
31 # functions and variables may be considered as part of this eclass's API.
32 #
33 # This eclass unconditionally inherits kde.org.eclass and either ecm.eclass if
34 -# KDE_AUTODEPS=true (default) or cmake-utils.eclass if KDE_AUTODEPS=false.
35 +# KDE_AUTODEPS=true (default) or cmake.eclass if KDE_AUTODEPS=false.
36 # All their public variables and helper functions (not phase functions) may
37 # be considered as part of this eclass's API.
38 #
39 @@ -46,7 +46,7 @@ inherit flag-o-matic kde.org kde5-functions xdg
40
41 # @ECLASS-VARIABLE: KDE_DEBUG
42 # @DESCRIPTION:
43 -# If set to "false", add -DNDEBUG (via cmake-utils_src_configure) and -DQT_NO_DEBUG
44 +# If set to "false", add -DNDEBUG (via cmake_src_configure) and -DQT_NO_DEBUG
45 # to CPPFLAGS.
46 # Otherwise, add debug to IUSE.
47 # PORTING: ECM_DEBUG in ecm.eclass
48 @@ -155,7 +155,7 @@ esac
49
50 case ${KDE_AUTODEPS} in
51 false)
52 - inherit cmake-utils
53 + inherit cmake
54 # @ECLASS-VARIABLE: ECM_KDEINSTALLDIRS
55 # @DESCRIPTION:
56 # If set to "false", do nothing.
57 @@ -236,6 +236,14 @@ _kde5_strip_handbook_translations() {
58 done
59 }
60
61 +# @FUNCTION: cmake_use_find_package
62 +# @USAGE: <USE flag> <package name>
63 +# @DESCRIPTION:
64 +# Compatibility alias for cmake.eclass -> cmake.eclass
65 +cmake-utils_use_find_package() {
66 + cmake_use_find_package "$@" ;
67 +}
68 +
69 # @FUNCTION: kde5_pkg_pretend
70 # @DESCRIPTION:
71 # Checks if the active compiler meets the minimum version requirements.
72 @@ -269,13 +277,13 @@ kde5_src_unpack() {
73
74 # @FUNCTION: kde5_src_prepare
75 # @DESCRIPTION:
76 -# Wrapper for cmake-utils_src_prepare with lots of extra logic for magic
77 +# Wrapper for cmake_src_prepare with lots of extra logic for magic
78 # handling of linguas, tests, handbook etc.
79 kde5_src_prepare() {
80 debug-print-function ${FUNCNAME} "$@"
81 case ${KDE_AUTODEPS} in
82 false)
83 - cmake-utils_src_prepare
84 + cmake_src_prepare
85
86 _kde5_strip_handbook_translations
87
88 @@ -314,13 +322,13 @@ kde5_src_prepare() {
89
90 # @FUNCTION: kde5_src_configure
91 # @DESCRIPTION:
92 -# Wrapper for cmake-utils_src_configure with extra logic for magic handling of
93 +# Wrapper for cmake_src_configure with extra logic for magic handling of
94 # handbook, tests etc.
95 kde5_src_configure() {
96 debug-print-function ${FUNCNAME} "$@"
97 case ${KDE_AUTODEPS} in
98 false)
99 - # we rely on cmake-utils.eclass to append -DNDEBUG too
100 + # we rely on cmake.eclass to append -DNDEBUG too
101 if in_iuse debug && ! use debug; then
102 append-cppflags -DQT_NO_DEBUG
103 fi
104 @@ -346,7 +354,7 @@ kde5_src_configure() {
105 # allow the ebuild to override what we set here
106 mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}")
107
108 - cmake-utils_src_configure
109 + cmake_src_configure
110 ;;
111 *) ecm_src_configure ;;
112 esac
113 @@ -354,35 +362,35 @@ kde5_src_configure() {
114
115 # @FUNCTION: kde5_src_compile
116 # @DESCRIPTION:
117 -# Wrapper for cmake-utils_src_compile. Currently doesn't do anything extra, but
118 +# Wrapper for cmake_src_compile. Currently doesn't do anything extra, but
119 # is included as part of the API just in case it's needed in the future.
120 kde5_src_compile() {
121 debug-print-function ${FUNCNAME} "$@"
122 case ${KDE_AUTODEPS} in
123 - false) cmake-utils_src_compile ;;
124 + false) cmake_src_compile ;;
125 *) ecm_src_compile ;;
126 esac
127 }
128
129 # @FUNCTION: kde5_src_test
130 # @DESCRIPTION:
131 -# Wrapper for cmake-utils_src_test with extra logic for magic handling of dbus
132 +# Wrapper for cmake_src_test with extra logic for magic handling of dbus
133 # and virtualx.
134 kde5_src_test() {
135 debug-print-function ${FUNCNAME} "$@"
136 case ${KDE_AUTODEPS} in
137 - false) cmake-utils_src_test ;;
138 + false) cmake_src_test ;;
139 *) ecm_src_test ;;
140 esac
141 }
142
143 # @FUNCTION: kde5_src_install
144 # @DESCRIPTION:
145 -# Wrapper for cmake-utils_src_install. Currently doesn't do anything extra.
146 +# Wrapper for cmake_src_install. Currently doesn't do anything extra.
147 kde5_src_install() {
148 debug-print-function ${FUNCNAME} "$@"
149 case ${KDE_AUTODEPS} in
150 - false) cmake-utils_src_install ;;
151 + false) cmake_src_install ;;
152 *) ecm_src_install ;;
153 esac
154 }