summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2007-12-25 14:46:29 +0000
committerMart Raudsepp <leio@gentoo.org>2007-12-25 14:46:29 +0000
commit695f2bd2fa32e3995f9470b86a8d698f947629a2 (patch)
tree5be484080ada325f2524131fee343d61103d8861 /eclass
parentRemoving seemant from metadata.xml as per #202469. (diff)
downloadgentoo-2-695f2bd2fa32e3995f9470b86a8d698f947629a2.tar.gz
gentoo-2-695f2bd2fa32e3995f9470b86a8d698f947629a2.tar.bz2
gentoo-2-695f2bd2fa32e3995f9470b86a8d698f947629a2.zip
Use the same erroring logic for WX_GTK_VER==unset case in check_wxuse as in need-wxwidgets to solve bug 203298 (unknown function _wxerror)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/wxwidgets.eclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index 4d6a51c50d23..d78fb6e14a02 100644
--- a/eclass/wxwidgets.eclass
+++ b/eclass/wxwidgets.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.24 2007/12/21 04:32:41 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/wxwidgets.eclass,v 1.25 2007/12/25 14:46:29 leio Exp $
# @ECLASS: wxwidgets.eclass
# @MAINTAINER:
@@ -226,9 +226,12 @@ need-wxwidgets() {
check_wxuse() {
debug-print-function $FUNCNAME $*
- [[ -n ${WX_GTK_VER} ]] \
- || _wxerror "WX_GTK_VER must be set before calling"
-
+ if [[ -z ${WX_GTK_VER} ]]; then
+ echo
+ eerror "WX_GTK_VER must be set before calling $FUNCNAME."
+ echo
+ die "WX_GTK_VER missing"
+ fi
ebegin "Checking wxGTK-${WX_GTK_VER} for ${1} support"
if built_with_use =x11-libs/wxGTK-${WX_GTK_VER}* "${1}"; then