commit:     0cac1248d35e67ae0b0119c1ec9799688ffd382d
Author:     Ryan Hill <rhill <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 21 09:33:15 2016 +0000
Commit:     Ryan Hill <rhill <AT> gentoo <DOT> org>
CommitDate: Thu Apr 14 02:28:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cac1248

wxwidgets.eclass: Clarify debugging comment

It was potentially confusing that setting WX_DISABLE_DEBUG would
actually cause debugging to be enabled.  Changed variable name to
WX_DISABLE_NDEBUG.

 eclass/wxwidgets.eclass | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index 0e131d5..5bcc93c 100644
--- a/eclass/wxwidgets.eclass
+++ b/eclass/wxwidgets.eclass
@@ -67,10 +67,10 @@ unset _wxconf
 #  In wxGTK-2.9 and later it also controls the level of debugging output
 #  from the libraries.  In these versions debugging features are enabled
 #  by default and need to be disabled at the package level.  Because this
-#  causes many warning dialogs to regularly pop up we add -DNDEBUG to
-#  CPPFLAGS by default, unless your ebuild has a debug USE flag and it's
-#  enabled.  If you don't like this behavior you can set WX_DISABLE_DEBUG
-#  to disable it.
+#  causes many warning dialogs to pop up during runtime we add -DNDEBUG to
+#  CPPFLAGS to disable debugging features (unless your ebuild has a debug
+#  USE flag and it's enabled).  If you don't like this behavior you can set
+#  WX_DISABLE_NDEBUG to override it.
 #
 #  See: http://docs.wxwidgets.org/trunk/overview_debugging.html
 
@@ -83,13 +83,13 @@ setup-wxwidgets() {
        case "${WX_GTK_VER}" in
                3.0-gtk3)
                        wxtoolkit=gtk3
-                       if [[ -z ${WX_DISABLE_DEBUG} ]]; then
+                       if [[ -z ${WX_DISABLE_NDEBUG} ]]; then
                                use_if_iuse debug || append-cppflags -DNDEBUG
                        fi
                        ;;
                2.9|3.0)
                        wxtoolkit=gtk2
-                       if [[ -z ${WX_DISABLE_DEBUG} ]]; then
+                       if [[ -z ${WX_DISABLE_NDEBUG} ]]; then
                                use_if_iuse debug || append-cppflags -DNDEBUG
                        fi
                        ;;

Reply via email to