diff options
author | Mart Raudsepp <leio@gentoo.org> | 2007-12-25 14:46:29 +0000 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2007-12-25 14:46:29 +0000 |
commit | 630551572aa7bac7f26e95fd43604d929f62ac45 (patch) | |
tree | c72fe93a2373118b0fe2ce7b083546314d736072 /eclass | |
parent | Removing seemant from metadata.xml as per #202469. (diff) | |
download | historical-630551572aa7bac7f26e95fd43604d929f62ac45.tar.gz historical-630551572aa7bac7f26e95fd43604d929f62ac45.tar.bz2 historical-630551572aa7bac7f26e95fd43604d929f62ac45.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.eclass | 11 |
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 |