]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-icon-cache bbclass: only add runtime dependencies on hicolor-icon-theme when...
authorKoen Kooi <koen@dominion.thruhere.net>
Mon, 1 Aug 2011 11:08:42 +0000 (13:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Aug 2011 14:01:17 +0000 (15:01 +0100)
Tested with gnome-icon-theme and libsoup recipes on angstrom.

Signed-off-by: Koen Kooi <koen@openembedded.org>
meta/classes/gtk-icon-cache.bbclass

index dcabaf5442e93b742e509d47f8563280d3179400..d9b5d1bdd62ed700e5cb2fd26d24bc1c6df9488f 100644 (file)
@@ -1,5 +1,4 @@
 FILES_${PN} += "${datadir}/icons/hicolor"
-RDEPENDS += "hicolor-icon-theme"
 
 # This could run on the host as icon cache files are architecture independent,
 # but there is no gtk-update-icon-cache built natively.
@@ -34,7 +33,12 @@ python populate_packages_append () {
                icon_dir = '%s/%s/%s/icons' % (pkgdest, pkg, bb.data.getVar('datadir', d, 1))
                if not os.path.exists(icon_dir):
                        continue
-               
+
+               bb.note("adding hicolor-icon-theme dependency to %s" % pkg)     
+               rdepends = bb.data.getVar('RDEPENDS', d, 1)
+               rdepends += "hicolor-icon-theme"
+               bb.data.setVar('RDEPENDS', rdepends, d)
+       
                bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg)
                
                postinst = bb.data.getVar('pkg_postinst_%s' % pkg, d, 1) or bb.data.getVar('pkg_postinst', d, 1)