From: Maciej Mrozowski Date: Thu, 4 Aug 2016 23:41:32 +0000 (+0200) Subject: cmake-utils.eclass: Expand suggestion related to functions banned EAPI 6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e6a35d9aa49ae35d85b9f96ee121aff2b60aa76b;p=gentoo.git cmake-utils.eclass: Expand suggestion related to functions banned EAPI 6 This reverts commit 14994bc4884b1d1eefe58f1c41e48f24eadf2d2b. --- diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 4bd404dcb4e2..6363d31232a5 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=\"\$(usex $2)\" instead" local uper capitalised x [[ -z $2 ]] && die "cmake-utils_use-$1 []" @@ -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=\"\$(usex $2)\" instead" fi local uper capitalised x