Add a check for building kdelibs with the doc use flag but not qt with it
authorCaleb Tennis <caleb@gentoo.org>
Mon, 27 Feb 2006 15:14:02 +0000 (15:14 +0000)
committerCaleb Tennis <caleb@gentoo.org>
Mon, 27 Feb 2006 15:14:02 +0000 (15:14 +0000)
eclass/kde.eclass

index 8f4a1f8c2068089612f803c229fd3303e597f9b0..c99bec310912d503c1daf62a659f837aab0c64af 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/kde.eclass,v 1.147 2006/02/09 20:12:03 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.148 2006/02/27 15:14:02 caleb Exp $
 #
 # Author Dan Armak <danarmak@gentoo.org>
 #
@@ -49,6 +49,13 @@ kde_pkg_setup() {
                fi
        fi
 
+       if [ "${PN}" = "kdelibs" ] ; then
+               use doc && if ! built_with_use =x11-libs/qt-3* doc ; then
+                       eerror "Building kdelibs with the doc use flag requires qt to be built with the doc use flag."
+                       eerror "Please re-emerge qt-3 with this use flag enabled."
+               fi
+       fi
+
        # Let filter visibility flags that will *really* hurt your KDE
        filter-flags -fvisibility=hidden -fvisibility-inlines-hidden
 }