commit:     5a4dfd12ba10bec7ebfaaef73fcd14e31fe6d9f1
Author:     Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  4 23:41:32 2016 +0000
Commit:     Maciej Mrozowski <reavertm <AT> gentoo <DOT> org>
CommitDate: Thu Aug  4 23:58:10 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=5a4dfd12

cmake-utils.eclass: Expand suggestion related to functions banned EAPI 6

 eclass/cmake-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 4bd404d..6363d31 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -161,7 +161,7 @@ _cmake_use_me_now() {
        local arg=$2
        [[ ! -z $3 ]] && arg=$3
 
-       [[ ${EAPI} == [2345] ]] || die "${FUNCNAME[1]} is banned in EAPI 6 and 
later"
+       [[ ${EAPI} == [2345] ]] || die "${FUNCNAME[1]} is banned in EAPI 6 and 
later: use -D$1<related_CMake_variable>=\"\$(usex $2)\" instead"
 
        local uper capitalised x
        [[ -z $2 ]] && die "cmake-utils_use-$1 <USE flag> [<flag name>]"
@@ -184,7 +184,7 @@ _cmake_use_me_now_inverted() {
        [[ ! -z $3 ]] && arg=$3
 
        if [[ ${EAPI} != [2345] && "${FUNCNAME[1]}" != 
cmake-utils_use_find_package ]] ; then
-               die "${FUNCNAME[1]} is banned in EAPI 6 and later"
+               die "${FUNCNAME[1]} is banned in EAPI 6 and later: use 
-D$1<related_CMake_variable>=\"\$(usex $2)\" instead"
        fi
 
        local uper capitalised x

Reply via email to