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 8BCED58973 for ; Wed, 3 Feb 2016 09:53:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08D52E078A; Wed, 3 Feb 2016 09:53:11 +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 97AA121C032 for ; Wed, 3 Feb 2016 09:53:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1E06340EDB for ; Wed, 3 Feb 2016 09:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C5878F5 for ; Wed, 3 Feb 2016 09:53:05 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1454493181.7918e982d58923a5a8a2847584eb955a97c7443b.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/wxwidgets.eclass X-VCS-Directories: eclass/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 7918e982d58923a5a8a2847584eb955a97c7443b X-VCS-Branch: master Date: Wed, 3 Feb 2016 09:53:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2f5c9bc0-6684-438b-8d45-865292c14428 X-Archives-Hash: f12b3237fef980e7d7fcaebed044dfb2 commit: 7918e982d58923a5a8a2847584eb955a97c7443b Author: Justin Lecher gentoo org> AuthorDate: Mon Feb 1 10:57:31 2016 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Feb 3 09:53:01 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7918e982 wxwidgets.eclass: unset unneeded variables in global scope after usage Signed-off-by: Justin Lecher gentoo.org> eclass/wxwidgets.eclass | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass index bcdeb53..5c0719d 100644 --- a/eclass/wxwidgets.eclass +++ b/eclass/wxwidgets.eclass @@ -64,14 +64,14 @@ inherit eutils flag-o-matic multilib # inheriting. if [[ -z ${WX_CONFIG} ]]; then if [[ -n ${WX_GTK_VER} ]]; then - for wxtoolkit in mac gtk2 base; do + for _wxtoolkit in mac gtk2 base; do # newer versions don't have a seperate debug profile - for wxdebug in xxx release- debug-; do - wxconf="${wxtoolkit}-unicode-${wxdebug/xxx/}${WX_GTK_VER}" + for _wxdebug in xxx release- debug-; do + _wxconf="${_wxtoolkit}-unicode-${_wxdebug/xxx/}${WX_GTK_VER}" - [[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]] || continue + [[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${_wxconf} ]] || continue - WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf}" + WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${_wxconf}" WX_ECLASS_CONFIG="${WX_CONFIG}" break done @@ -80,6 +80,9 @@ if [[ -z ${WX_CONFIG} ]]; then [[ -n ${WX_CONFIG} ]] && export WX_CONFIG WX_ECLASS_CONFIG fi fi +unset _wxtoolkit +unset _wxdebug +unset _wxconf # @FUNCTION: need-wxwidgets # @USAGE: