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: 1630606402.610f33f8baee8c02c46df6eb1674f5534eabb5c8.asturm@gentoo
1 commit: 610f33f8baee8c02c46df6eb1674f5534eabb5c8
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 2 18:13:22 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 2 18:13:22 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=610f33f8
7
8 cmake.eclass: Sync with Gentoo ebuild repository
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 eclass/cmake.eclass | 15 ++++++++-------
13 1 file changed, 8 insertions(+), 7 deletions(-)
14
15 diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
16 index 3021a3a2b1..02683634af 100644
17 --- a/eclass/cmake.eclass
18 +++ b/eclass/cmake.eclass
19 @@ -10,6 +10,7 @@
20 # (undisclosed contributors)
21 # Original author: Zephyrus (zephyrus@××××××.it)
22 # @SUPPORTED_EAPIS: 7 8
23 +# @PROVIDES: ninja-utils
24 # @BLURB: common ebuild functions for cmake-based packages
25 # @DESCRIPTION:
26 # The cmake eclass makes creating ebuilds for cmake-based packages much easier.
27 @@ -19,14 +20,14 @@
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 -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
36 -
37 if [[ -z ${_CMAKE_ECLASS} ]]; then
38 _CMAKE_ECLASS=1
39
40 +inherit flag-o-matic multiprocessing ninja-utils toolchain-funcs xdg-utils
41 +
42 # @ECLASS-VARIABLE: BUILD_DIR
43 # @DEFAULT_UNSET
44 # @DESCRIPTION:
45 @@ -123,11 +124,9 @@ fi
46 # read-only. This is a user flag and should under _no circumstances_ be set in
47 # the ebuild. Helps in improving QA of build systems that write to source tree.
48
49 -inherit toolchain-funcs ninja-utils flag-o-matic multiprocessing xdg-utils
50 -
51 [[ ${CMAKE_MIN_VERSION} ]] && die "CMAKE_MIN_VERSION is banned; if necessary, set BDEPEND=\">=dev-util/cmake-${CMAKE_MIN_VERSION}\" directly"
52 [[ ${CMAKE_BUILD_DIR} ]] && die "The ebuild must be migrated to BUILD_DIR"
53 -[[ ${CMAKE_REMOVE_MODULES} ]] && die "CMAKE_REMOVE_MODULES is banned, set CMAKE_REMOVE_MODULES_LIST=\"\" instead"
54 +[[ ${CMAKE_REMOVE_MODULES} ]] && die "CMAKE_REMOVE_MODULES is banned, set CMAKE_REMOVE_MODULES_LIST array instead"
55 [[ ${CMAKE_UTILS_QA_SRC_DIR_READONLY} ]] && die "Use CMAKE_QA_SRC_DIR_READONLY instead"
56 [[ ${WANT_CMAKE} ]] && die "WANT_CMAKE has been removed and is a no-op"
57 [[ ${PREFIX} ]] && die "PREFIX has been removed and is a no-op"
58 @@ -146,7 +145,7 @@ case ${CMAKE_MAKEFILE_GENERATOR} in
59 esac
60
61 if [[ ${PN} != cmake ]]; then
62 - BDEPEND+=" >=dev-util/cmake-3.20"
63 + BDEPEND+=" >=dev-util/cmake-3.20.5"
64 fi
65
66 # @FUNCTION: cmake_run_in
67 @@ -714,3 +713,5 @@ cmake_src_install() {
68 }
69
70 fi
71 +
72 +EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install