add patch from betelguese to fix QA warning (bug #107962)
authorSaleem Abdulrasool <compnerd@gentoo.org>
Thu, 7 Dec 2006 03:13:25 +0000 (03:13 +0000)
committerSaleem Abdulrasool <compnerd@gentoo.org>
Thu, 7 Dec 2006 03:13:25 +0000 (03:13 +0000)
eclass/gnome2.eclass

index e38fcaa60a70f5d72f34f863ab505ceba5e87bbd..444a039942719bb17bfb2b0b4f469307cbe4f26c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.75 2006/10/31 17:08:44 allanonjl Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.76 2006/12/07 03:13:25 compnerd Exp $
 
 # GNOME 2 ECLASS
 inherit libtool gnome.org debug fdo-mime eutils
@@ -47,7 +47,11 @@ gnome2_src_configure() {
                        G2CONF="${G2CONF} --enable-debug=yes"
                fi
        fi
-       G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
+
+       # Prevent a QA warning
+       if hasq doc ${IUSE} ; then
+               G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
+       fi
 
        # Run libtoolize
        elibtoolize ${ELTCONF}