commit:     fb49f2e0ff1a3ee41804a32d30246eae1ac7ab26
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 11:01:12 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 21 10:40:22 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=fb49f2e0

cmake.eclass: Rename cmake_src_make() -> cmake_build()

_cmake_ninja_src_make -> _cmake_ninja_build
_cmake_emake_src_make -> _cmake_emake_build

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake.eclass | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index ca23bf452c..ef6a5c3d7f 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -544,14 +544,14 @@ cmake_src_configure() {
 cmake_src_compile() {
        debug-print-function ${FUNCNAME} "$@"
 
-       cmake_src_make "$@"
+       cmake_build "$@"
 }
 
-# @FUNCTION: _cmake_ninja_src_make
+# @FUNCTION: _cmake_ninja_build
 # @INTERNAL
 # @DESCRIPTION:
 # Build the package using ninja generator
-_cmake_ninja_src_make() {
+_cmake_ninja_build() {
        debug-print-function ${FUNCNAME} "$@"
 
        [[ -e build.ninja ]] || die "build.ninja not found. Error during 
configure stage."
@@ -559,38 +559,46 @@ _cmake_ninja_src_make() {
        eninja "$@"
 }
 
-# @FUNCTION: _cmake_emake_src_make
+# @FUNCTION: _cmake_emake_build
 # @INTERNAL
 # @DESCRIPTION:
 # Build the package using make generator
-_cmake_emake_src_make() {
+_cmake_emake_build() {
        debug-print-function ${FUNCNAME} "$@"
 
        [[ -e Makefile ]] || die "Makefile not found. Error during configure 
stage."
 
        if [[ "${CMAKE_VERBOSE}" != "OFF" ]]; then
-               emake VERBOSE=1 "$@" || die
+               emake VERBOSE=1 "$@"
        else
-               emake "$@" || die
+               emake "$@"
        fi
 
 }
 
-# @FUNCTION: cmake_src_make
+# @FUNCTION: cmake_build
 # @DESCRIPTION:
 # Function for building the package. Automatically detects the build type.
 # All arguments are passed to emake.
-cmake_src_make() {
+cmake_build() {
        debug-print-function ${FUNCNAME} "$@"
 
        _cmake_check_build_dir
        pushd "${BUILD_DIR}" > /dev/null || die
 
-       _cmake_${CMAKE_MAKEFILE_GENERATOR}_src_make "$@"
+       _cmake_${CMAKE_MAKEFILE_GENERATOR}_build "$@"
 
        popd > /dev/null || die
 }
 
+# @FUNCTION: cmake-utils_src_make
+# @INTERNAL
+# @DESCRIPTION:
+# Banned. Use cmake_build instead.
+cmake-utils_src_make() {
+       die "cmake_src_make is banned. Use cmake_build instead"
+}
+
 # @FUNCTION: cmake_src_test
 # @DESCRIPTION:
 # Function for testing the package. Automatically detects the build type.

Reply via email to