# @DESCRIPTION:
# Apply ebuild and user patches.
cmake-utils_src_prepare() {
- _cmake_execute_optionally "src_prepare" "$@"
+ enable_cmake-utils_src_prepare "$@"
}
# @FUNCTION: cmake-utils_src_configure
# General function for configuring with cmake. Default behaviour is to start an
# out-of-source build.
cmake-utils_src_configure() {
- _cmake_execute_optionally "src_configure" "$@"
+ enable_cmake-utils_src_configure "$@"
}
# @FUNCTION: cmake-utils_src_compile
# General function for compiling with cmake.
# Automatically detects the build type. All arguments are passed to emake.
cmake-utils_src_compile() {
- _cmake_execute_optionally "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() {
- _cmake_execute_optionally "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() {
- _cmake_execute_optionally "src_install" "$@"
-}
-
-# Optionally executes phases based on WANT_CMAKE variable/USE flag.
-_cmake_execute_optionally() {
- local phase="$1" ; shift
- if [[ ${WANT_CMAKE} = always ]]; then
- enable_cmake-utils_${phase} "$@"
- else
- use ${WANT_CMAKE} && enable_cmake-utils_${phase} "$@"
- fi
+ enable_cmake-utils_src_install "$@"
}
fi