summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-02-01 11:57:31 +0100
committerJustin Lecher <jlec@gentoo.org>2016-02-03 10:53:01 +0100
commit7918e982d58923a5a8a2847584eb955a97c7443b (patch)
treee50dae914187d326cfdd851ef1b7850ddf8d1078 /eclass/wxwidgets.eclass
parentwxwidgets.eclass: Fix whitespaces (diff)
downloadgentoo-7918e982d58923a5a8a2847584eb955a97c7443b.tar.gz
gentoo-7918e982d58923a5a8a2847584eb955a97c7443b.tar.bz2
gentoo-7918e982d58923a5a8a2847584eb955a97c7443b.zip
wxwidgets.eclass: unset unneeded variables in global scope after usage
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/wxwidgets.eclass')
-rw-r--r--eclass/wxwidgets.eclass13
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index bcdeb53ede98..5c0719de5117 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>