summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-01-28 08:49:38 +0100
committerJustin Lecher <jlec@gentoo.org>2016-01-28 08:51:10 +0100
commit6dd449a09d9f6ff86ae9f682de6f957429ad4d1d (patch)
tree6e7897b9eac645367b3d6fa9ac0251976aae0945
parentcuda.eclass: Enable EAPI=6 support (diff)
downloadgentoo-6dd449a09d9f6ff86ae9f682de6f957429ad4d1d.tar.gz
gentoo-6dd449a09d9f6ff86ae9f682de6f957429ad4d1d.tar.bz2
gentoo-6dd449a09d9f6ff86ae9f682de6f957429ad4d1d.zip
cmake-utils.eclass: Fix inverted logic on EAPI check
Gentoo-Bugs: https://bugs.gentoo.org/show_bug.cgi?id=573132 Signed-off-by: Justin Lecher <jlec@gentoo.org>
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 01de9a5ad936..99c0f7649400 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -603,7 +603,7 @@ enable_cmake-utils_src_configure() {
local mycmakeargstype=$(declare -p mycmakeargs 2>&-)
if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then
if [[ -n "${mycmakeargstype}" ]] ; then
- if [[ ${EAPI} != [2345] ]]; then
+ if [[ ${EAPI} == [2345] ]]; then
eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead."
else
die "Declaring mycmakeargs as a variable is banned in EAPI=${EAPI}. Please use an array instead."