commit: ae269ba84b79d70b3e264b2ebadc97b7880c7ac7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun May 21 13:45:30 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon May 22 14:43:38 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae269ba8
cmake-utils.eclass: Remove redundant enable_cmake-* functions Closes: https://github.com/gentoo/gentoo/pull/4702 eclass/cmake-utils.eclass | 64 ++++++++++++++++------------------------------- 1 file changed, 22 insertions(+), 42 deletions(-) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index faf6cdb0b77..dbb12f25f3d 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -421,7 +421,10 @@ _cmake_cleanup_cmake() { _cmake_modify-cmakelists } -enable_cmake-utils_src_prepare() { +# @FUNCTION: cmake-utils_src_prepare +# @DESCRIPTION: +# Apply ebuild and user patches. +cmake-utils_src_prepare() { debug-print-function ${FUNCNAME} "$@" pushd "${S}" > /dev/null || die @@ -455,7 +458,11 @@ enable_cmake-utils_src_prepare() { # } # @CODE -enable_cmake-utils_src_configure() { +# @FUNCTION: cmake-utils_src_configure +# @DESCRIPTION: +# General function for configuring with cmake. Default behaviour is to start an +# out-of-source build. +cmake-utils_src_configure() { debug-print-function ${FUNCNAME} "$@" [[ ${EAPI} == 5 ]] && _cmake_cleanup_cmake @@ -643,7 +650,11 @@ enable_cmake-utils_src_configure() { popd > /dev/null || die } -enable_cmake-utils_src_compile() { +# @FUNCTION: cmake-utils_src_compile +# @DESCRIPTION: +# General function for compiling with cmake. +# Automatically detects the build type. All arguments are passed to emake. +cmake-utils_src_compile() { debug-print-function ${FUNCNAME} "$@" cmake-utils_src_make "$@" @@ -693,7 +704,10 @@ cmake-utils_src_make() { popd > /dev/null || die } -enable_cmake-utils_src_test() { +# @FUNCTION: cmake-utils_src_test +# @DESCRIPTION: +# Function for testing the package. Automatically detects the build type. +cmake-utils_src_test() { debug-print-function ${FUNCNAME} "$@" _cmake_check_build_dir @@ -726,7 +740,10 @@ enable_cmake-utils_src_test() { fi } -enable_cmake-utils_src_install() { +# @FUNCTION: cmake-utils_src_install +# @DESCRIPTION: +# Function for installing the package. Automatically detects the build type. +cmake-utils_src_install() { debug-print-function ${FUNCNAME} "$@" _cmake_check_build_dir @@ -739,41 +756,4 @@ enable_cmake-utils_src_install() { popd > /dev/null || die } -# @FUNCTION: cmake-utils_src_prepare -# @DESCRIPTION: -# Apply ebuild and user patches. -cmake-utils_src_prepare() { - enable_cmake-utils_src_prepare "$@" -} - -# @FUNCTION: cmake-utils_src_configure -# @DESCRIPTION: -# General function for configuring with cmake. Default behaviour is to start an -# out-of-source build. -cmake-utils_src_configure() { - enable_cmake-utils_src_configure "$@" -} - -# @FUNCTION: cmake-utils_src_compile -# @DESCRIPTION: -# General function for compiling with cmake. -# Automatically detects the build type. All arguments are passed to emake. -cmake-utils_src_compile() { - enable_cmake-utils_src_compile "$@" -} - -# @FUNCTION: cmake-utils_src_test -# @DESCRIPTION: -# Function for testing the package. Automatically detects the build type. -cmake-utils_src_test() { - enable_cmake-utils_src_test "$@" -} - -# @FUNCTION: cmake-utils_src_install -# @DESCRIPTION: -# Function for installing the package. Automatically detects the build type. -cmake-utils_src_install() { - enable_cmake-utils_src_install "$@" -} - fi