diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-21 15:45:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-22 16:43:38 +0200 |
commit | ae269ba84b79d70b3e264b2ebadc97b7880c7ac7 (patch) | |
tree | 6c0b94ba08911201113a2e61fa112a564b90cbd2 /eclass/cmake-utils.eclass | |
parent | dev-util/apitrace: Do not call enable_cmake* directly (diff) | |
download | gentoo-ae269ba84b79d70b3e264b2ebadc97b7880c7ac7.tar.gz gentoo-ae269ba84b79d70b3e264b2ebadc97b7880c7ac7.tar.bz2 gentoo-ae269ba84b79d70b3e264b2ebadc97b7880c7ac7.zip |
cmake-utils.eclass: Remove redundant enable_cmake-* functions
Closes: https://github.com/gentoo/gentoo/pull/4702
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 64 |
1 files changed, 22 insertions, 42 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index faf6cdb0b770..dbb12f25f3d9 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 |