summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-05-06 15:55:42 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-12-10 22:54:00 +0100
commit8d440a07fb40553d83b8b69a610c350dfd26bc1c (patch)
tree83b17cc6dc96caf77cbeb019cd861d9b9a689d3a
parentcmake-utils.eclass: enable EAPI=7 (diff)
downloadgentoo-8d440a07fb40553d83b8b69a610c350dfd26bc1c.tar.gz
gentoo-8d440a07fb40553d83b8b69a610c350dfd26bc1c.tar.bz2
gentoo-8d440a07fb40553d83b8b69a610c350dfd26bc1c.zip
cmake-utils.eclass: Use BDEPEND
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--eclass/cmake-utils.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index c44df0c8542f..73e7f0b73ae6 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -122,10 +122,10 @@ EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
case ${CMAKE_MAKEFILE_GENERATOR} in
emake)
- DEPEND="sys-devel/make"
+ BDEPEND="sys-devel/make"
;;
ninja)
- DEPEND="dev-util/ninja"
+ BDEPEND="dev-util/ninja"
;;
*)
eerror "Unknown value for \${CMAKE_MAKEFILE_GENERATOR}"
@@ -134,9 +134,14 @@ case ${CMAKE_MAKEFILE_GENERATOR} in
esac
if [[ ${PN} != cmake ]]; then
- DEPEND+=" >=dev-util/cmake-${CMAKE_MIN_VERSION}"
+ BDEPEND+=" >=dev-util/cmake-${CMAKE_MIN_VERSION}"
fi
+case ${EAPI} in
+ 7) ;;
+ *) DEPEND=" ${BDEPEND}" ;;
+esac
+
# Internal functions used by cmake-utils_use_*
_cmake_use_me_now() {
debug-print-function ${FUNCNAME} "$@"