From 20ee0c715db14b3861c29bf3ddeab87fbae8ef89 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 1 Aug 2011 13:08:42 +0200 Subject: gtk-icon-cache bbclass: only add runtime dependencies on hicolor-icon-theme when installing icons Tested with gnome-icon-theme and libsoup recipes on angstrom. (From OE-Core rev: 229ba02322ce49d13e2d64eff6bb637f23f1f16b) Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- meta/classes/gtk-icon-cache.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta/classes/gtk-icon-cache.bbclass') diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index dcabaf5442..d9b5d1bdd6 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -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) -- cgit v1.2.3-54-g00ecf