summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-01-26 01:04:12 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-01-26 01:07:05 +1100
commite9a243610cb8184bfb8542d470cb38d917007039 (patch)
treebf07e74d0f1eccc1757de308c1d1f9aff7fd3712 /eclass/cmake-utils.eclass
parentcmake-utils.eclass: remove duplicate CMAKE_REMOVE_MODULES (diff)
downloadgentoo-e9a243610cb8184bfb8542d470cb38d917007039.tar.gz
gentoo-e9a243610cb8184bfb8542d470cb38d917007039.tar.bz2
gentoo-e9a243610cb8184bfb8542d470cb38d917007039.zip
cmake-utils.eclass: ban WANT_CMAKE in EAPI 6 and later
It is basically unused across the tree and complicates the eclass. If it were needed, it might be better to write custom ebuild phase functions instead.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index aa73e44efe36..32ce3881a3c4 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -103,6 +103,8 @@ _CMAKE_UTILS_ECLASS=1
# This is useful when only part of application is using cmake build system.
# Valid values are: always [default], optional (where the value is the useflag
# used for optionality)
+#
+# This is banned in EAPI 6 and later.
: ${WANT_CMAKE:=always}
# @ECLASS-VARIABLE: CMAKE_EXTRA_CACHE_FILE
@@ -125,6 +127,7 @@ case ${WANT_CMAKE} in
always)
;;
*)
+ has "${EAPI:-0}" 2 3 4 5 || die "WANT_CMAKE is banned in EAPI 6 and later"
IUSE+=" ${WANT_CMAKE}"
CMAKEDEPEND+="${WANT_CMAKE}? ( "
;;