wxwidgets.eclass: Only inherit eclass once
authorJustin Lecher <jlec@gentoo.org>
Mon, 1 Feb 2016 10:50:38 +0000 (11:50 +0100)
committerJustin Lecher <jlec@gentoo.org>
Wed, 3 Feb 2016 09:53:01 +0000 (10:53 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/wxwidgets.eclass

index 5c0719de5117436944eb0f850d2ecf76c76a606a..aaac074ac51c6826a313b2e48d2e7a5e11c7b596 100644 (file)
@@ -58,6 +58,8 @@
 # Use the -DNDEBUG preprocessor flag to disable debugging features.
 # (Using need-wxwidgets will do this for you, see below.)
 
+if [[ -z ${_WXWIDGETS_ECLASS} ]]; then
+
 inherit eutils flag-o-matic multilib
 
 # We do this in global scope so ebuilds can get sane defaults just by
@@ -163,3 +165,6 @@ need-wxwidgets() {
        einfo "Using wxWidgets:            ${wxconf}"
        echo
 }
+
+_WXWIDGETS_ECLASS=1
+fi