diff options
author | 2021-09-02 20:13:22 +0200 | |
---|---|---|
committer | 2021-09-02 20:13:22 +0200 | |
commit | 610f33f8baee8c02c46df6eb1674f5534eabb5c8 (patch) | |
tree | 4741e8566f13bf0f7b9abb7aae9adfe64c6f80a9 /eclass | |
parent | kde-plasma/xembed-sni-proxy: drop 5.22.5* (diff) | |
download | kde-610f33f8baee8c02c46df6eb1674f5534eabb5c8.tar.gz kde-610f33f8baee8c02c46df6eb1674f5534eabb5c8.tar.bz2 kde-610f33f8baee8c02c46df6eb1674f5534eabb5c8.zip |
cmake.eclass: Sync with Gentoo ebuild repository
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cmake.eclass | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 3021a3a2b1..02683634af 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -10,6 +10,7 @@ # (undisclosed contributors) # Original author: Zephyrus (zephyrus@mirach.it) # @SUPPORTED_EAPIS: 7 8 +# @PROVIDES: ninja-utils # @BLURB: common ebuild functions for cmake-based packages # @DESCRIPTION: # The cmake eclass makes creating ebuilds for cmake-based packages much easier. @@ -19,14 +20,14 @@ case ${EAPI} in 7|8) ;; - *) die "EAPI=${EAPI:-0} is not supported" ;; + *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;; esac -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install - if [[ -z ${_CMAKE_ECLASS} ]]; then _CMAKE_ECLASS=1 +inherit flag-o-matic multiprocessing ninja-utils toolchain-funcs xdg-utils + # @ECLASS-VARIABLE: BUILD_DIR # @DEFAULT_UNSET # @DESCRIPTION: @@ -123,11 +124,9 @@ fi # read-only. This is a user flag and should under _no circumstances_ be set in # the ebuild. Helps in improving QA of build systems that write to source tree. -inherit toolchain-funcs ninja-utils flag-o-matic multiprocessing xdg-utils - [[ ${CMAKE_MIN_VERSION} ]] && die "CMAKE_MIN_VERSION is banned; if necessary, set BDEPEND=\">=dev-util/cmake-${CMAKE_MIN_VERSION}\" directly" [[ ${CMAKE_BUILD_DIR} ]] && die "The ebuild must be migrated to BUILD_DIR" -[[ ${CMAKE_REMOVE_MODULES} ]] && die "CMAKE_REMOVE_MODULES is banned, set CMAKE_REMOVE_MODULES_LIST=\"\" instead" +[[ ${CMAKE_REMOVE_MODULES} ]] && die "CMAKE_REMOVE_MODULES is banned, set CMAKE_REMOVE_MODULES_LIST array instead" [[ ${CMAKE_UTILS_QA_SRC_DIR_READONLY} ]] && die "Use CMAKE_QA_SRC_DIR_READONLY instead" [[ ${WANT_CMAKE} ]] && die "WANT_CMAKE has been removed and is a no-op" [[ ${PREFIX} ]] && die "PREFIX has been removed and is a no-op" @@ -146,7 +145,7 @@ case ${CMAKE_MAKEFILE_GENERATOR} in esac if [[ ${PN} != cmake ]]; then - BDEPEND+=" >=dev-util/cmake-3.20" + BDEPEND+=" >=dev-util/cmake-3.20.5" fi # @FUNCTION: cmake_run_in @@ -714,3 +713,5 @@ cmake_src_install() { } fi + +EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install |