Remove qimageblitz dependency from kdeutils modules that don't use it. Upstream alrea...
authorBo Ørsted Andresen <zlin@gentoo.org>
Fri, 15 Feb 2008 19:48:40 +0000 (19:48 +0000)
committerBo Ørsted Andresen <zlin@gentoo.org>
Fri, 15 Feb 2008 19:48:40 +0000 (19:48 +0000)
eclass/kde4-meta.eclass

index b8c140fca58725340bc5c73eb9e9b1d3e0927fd4..81c13f49ac490c09bb87d84316e91d2d157b8b14 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.1 2008/01/16 22:51:47 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.2 2008/02/15 19:48:40 zlin Exp $
 #
 # @ECLASS: kde4-meta.eclass
 # @MAINTAINER:
@@ -402,6 +402,16 @@ kde4-meta_change_cmakelists() {
                        esac
                fi
                ;;
+               # This is sort of a hack to avoid patching 16 kdeutils packages with
+               # r775410 from upstream trunk which makes blitz optional so superkaramba
+               # only gets compiled when it is found. Bug #209324. Remove this no later
+               # than 4.1.
+               kdeutils)
+               if [[ ${PN} != superkaramba && ${SLOT} == kde-4 ]]; then
+                       sed -i -e '/find_package(Blitz REQUIRED)/d' "${S}"/CMakeLists.txt \
+                               || die "${LINENO}: sed to remove dependency on Blitz failed."
+               fi
+               ;;
                koffice)
                if [[ ${PN} != koffice-libs ]]; then
                        sed -i -e '/^INSTALL(FILES.*koffice.desktop/ s/^/#DONOTINSTALL /' \