commit: 7918e982d58923a5a8a2847584eb955a97c7443b
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 1 10:57:31 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> 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 <jlec <AT> 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: <profile>