cmake-utils.eclass: ban WANT_CMAKE in EAPI 6 and later
authorMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:04:12 +0000 (01:04 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:07:05 +0000 (01:07 +1100)
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.

eclass/cmake-utils.eclass

index aa73e44efe3639b4e5d7792bd5ab14d2c4d179f1..32ce3881a3c433b0ee0063386d7413cc6bb4bcc1 100644 (file)
@@ -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}? ( "
                ;;