diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-18 12:40:16 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-07-18 18:55:24 +0200 |
commit | ed5820b5009a75d18184f052005155579f8842e5 (patch) | |
tree | 362a267a4e969c80dd1f1c0265a7437fc2b7ed7b | |
parent | kde.org.eclass: Allow KDE_BUILD_TYPE to hold "snapshot" value (diff) | |
download | kde-ed5820b5009a75d18184f052005155579f8842e5.tar.gz kde-ed5820b5009a75d18184f052005155579f8842e5.tar.bz2 kde-ed5820b5009a75d18184f052005155579f8842e5.zip |
cmake.eclass: Move supported EAPI check and EXPORT_FUNCTIONS on top
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | eclass/cmake.eclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 870e8dba5f..05556e49f1 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -17,6 +17,13 @@ # out-of-source builds (default), in-source builds and an implementation of the # well-known use_enable function for CMake. +case ${EAPI:-0} in + 7) ;; + *) die "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 @@ -97,15 +104,8 @@ _CMAKE_ECLASS=1 # 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. -case ${EAPI} in - 7) ;; - *) die "EAPI=${EAPI:-0} is not supported" ;; -esac - inherit toolchain-funcs ninja-utils flag-o-matic multiprocessing xdg-utils -EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install - [[ ${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" |