From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 085B71384B4 for ; Fri, 1 Jan 2016 16:45:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 077AD21C0A3; Fri, 1 Jan 2016 16:41:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F01B321C099 for ; Fri, 1 Jan 2016 16:41:45 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A8CB9340A3B; Fri, 1 Jan 2016 16:41:44 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 08/15] scons-utils.eclass: Deprecate use_scons, ban it in EAPI 6 Date: Fri, 1 Jan 2016 17:41:14 +0100 Message-Id: <1451666481-22145-9-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1451666481-22145-1-git-send-email-mgorny@gentoo.org> References: <1451666481-22145-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: ee49ce8e-b516-4ac6-8dd0-eba0ff3f95ce X-Archives-Hash: ee9fea6f46b85118835472cc7ff23d63 --- eclass/scons-utils.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass index fdc6af3..b8051b0 100644 --- a/eclass/scons-utils.eclass +++ b/eclass/scons-utils.eclass @@ -79,11 +79,15 @@ # @ECLASS-VARIABLE: USE_SCONS_TRUE # @DESCRIPTION: +# DEPRECATED: use usex instead +# # The default value for truth in scons-use() (1 by default). : ${USE_SCONS_TRUE:=1} # @ECLASS-VARIABLE: USE_SCONS_FALSE # @DESCRIPTION: +# DEPRECATED: use usex instead +# # The default value for false in scons-use() (0 by default). : ${USE_SCONS_FALSE:=0} @@ -236,6 +240,8 @@ scons_clean_makeopts() { # @FUNCTION: use_scons # @USAGE: [var-name] [var-opt-true] [var-opt-false] # @DESCRIPTION: +# DEPRECATED, EAPI 0..5 ONLY: use usex instead +# # Output a SCons parameter with value depending on the USE flag state. # If the USE flag is set, output =; otherwise # =. @@ -247,6 +253,9 @@ scons_clean_makeopts() { # If and/or are omitted, # ${USE_SCONS_TRUE} and/or ${USE_SCONS_FALSE} will be used instead. use_scons() { + [[ ${EAPI} == [012345] ]] \ + || die "${FUNCNAME} is banned in EAPI ${EAPI}, use usex instead" + local flag=${1} local varname=${2:-${flag/\!/no}} local vartrue=${3:-${USE_SCONS_TRUE}} -- 2.6.4