summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 12:47:04 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 14:17:36 +0100
commitc1699972024a11b679220d75b43f884f8f58d813 (patch)
treee09dff3f1208ce8a2364a531681354bc2ad69f63 /eclass
parentdev-libs/nss-pem-1.0.7: marked ~x64-solaris (diff)
downloadgentoo-c1699972024a11b679220d75b43f884f8f58d813.tar.gz
gentoo-c1699972024a11b679220d75b43f884f8f58d813.tar.bz2
gentoo-c1699972024a11b679220d75b43f884f8f58d813.zip
cmake.eclass: Merge mycmakeargs description into cmake_src_configure()
Fix outdated mycmakeargs documentation (use of banned function in EAPI-7) Make it a part of phase function desc than instead of appearing under FUNCTIONS. Reported-by: Joonas Niilola <juippis@gentoo.org> Closes: https://bugs.gentoo.org/771876 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake.eclass19
1 files changed, 7 insertions, 12 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 62fa02715700..649e447d7e1d 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cmake.eclass
@@ -358,25 +358,20 @@ cmake_src_prepare() {
_CMAKE_SRC_PREPARE_HAS_RUN=1
}
-# @VARIABLE: mycmakeargs
-# @DEFAULT_UNSET
+# @FUNCTION: cmake_src_configure
# @DESCRIPTION:
-# Optional cmake defines as a bash array. Should be defined before calling
-# src_configure.
+# General function for configuring with cmake. Default behaviour is to start an
+# out-of-source build.
+# Passes arguments to cmake by reading from an optionally pre-defined local
+# mycmakeargs bash array.
# @CODE
# src_configure() {
# local mycmakeargs=(
-# $(cmake_use_with openconnect)
+# $(cmake_use_find_package foo LibFoo)
# )
-#
# cmake_src_configure
# }
# @CODE
-
-# @FUNCTION: cmake_src_configure
-# @DESCRIPTION:
-# General function for configuring with cmake. Default behaviour is to start an
-# out-of-source build.
cmake_src_configure() {
debug-print-function ${FUNCNAME} "$@"