summaryrefslogtreecommitdiffstats
path: root/meta/classes/gtk-icon-cache.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/gtk-icon-cache.bbclass')
-rw-r--r--meta/classes/gtk-icon-cache.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass
index 340a283851..0248ba285e 100644
--- a/meta/classes/gtk-icon-cache.bbclass
+++ b/meta/classes/gtk-icon-cache.bbclass
@@ -1,4 +1,4 @@
1FILES_${PN} += "${datadir}/icons/hicolor" 1FILES:${PN} += "${datadir}/icons/hicolor"
2 2
3#gtk+3 reqiure GTK3DISTROFEATURES, DEPENDS on it make all the 3#gtk+3 reqiure GTK3DISTROFEATURES, DEPENDS on it make all the
4#recipes inherit this class require GTK3DISTROFEATURES 4#recipes inherit this class require GTK3DISTROFEATURES
@@ -45,7 +45,7 @@ else
45fi 45fi
46} 46}
47 47
48python populate_packages_append () { 48python populate_packages:append () {
49 packages = d.getVar('PACKAGES').split() 49 packages = d.getVar('PACKAGES').split()
50 pkgdest = d.getVar('PKGDEST') 50 pkgdest = d.getVar('PKGDEST')
51 51
@@ -56,29 +56,29 @@ python populate_packages_append () {
56 56
57 bb.note("adding hicolor-icon-theme dependency to %s" % pkg) 57 bb.note("adding hicolor-icon-theme dependency to %s" % pkg)
58 rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme" 58 rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme"
59 d.appendVar('RDEPENDS_%s' % pkg, rdepends) 59 d.appendVar('RDEPENDS:%s' % pkg, rdepends)
60 60
61 #gtk_icon_cache_postinst depend on gdk-pixbuf and gtk+3 61 #gtk_icon_cache_postinst depend on gdk-pixbuf and gtk+3
62 bb.note("adding gdk-pixbuf dependency to %s" % pkg) 62 bb.note("adding gdk-pixbuf dependency to %s" % pkg)
63 rdepends = ' ' + d.getVar('MLPREFIX', False) + "gdk-pixbuf" 63 rdepends = ' ' + d.getVar('MLPREFIX', False) + "gdk-pixbuf"
64 d.appendVar('RDEPENDS_%s' % pkg, rdepends) 64 d.appendVar('RDEPENDS:%s' % pkg, rdepends)
65 65
66 bb.note("adding gtk+3 dependency to %s" % pkg) 66 bb.note("adding gtk+3 dependency to %s" % pkg)
67 rdepends = ' ' + d.getVar('MLPREFIX', False) + "gtk+3" 67 rdepends = ' ' + d.getVar('MLPREFIX', False) + "gtk+3"
68 d.appendVar('RDEPENDS_%s' % pkg, rdepends) 68 d.appendVar('RDEPENDS:%s' % pkg, rdepends)
69 69
70 bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg) 70 bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg)
71 71
72 postinst = d.getVar('pkg_postinst_%s' % pkg) 72 postinst = d.getVar('pkg_postinst:%s' % pkg)
73 if not postinst: 73 if not postinst:
74 postinst = '#!/bin/sh\n' 74 postinst = '#!/bin/sh\n'
75 postinst += d.getVar('gtk_icon_cache_postinst') 75 postinst += d.getVar('gtk_icon_cache_postinst')
76 d.setVar('pkg_postinst_%s' % pkg, postinst) 76 d.setVar('pkg_postinst:%s' % pkg, postinst)
77 77
78 postrm = d.getVar('pkg_postrm_%s' % pkg) 78 postrm = d.getVar('pkg_postrm:%s' % pkg)
79 if not postrm: 79 if not postrm:
80 postrm = '#!/bin/sh\n' 80 postrm = '#!/bin/sh\n'
81 postrm += d.getVar('gtk_icon_cache_postrm') 81 postrm += d.getVar('gtk_icon_cache_postrm')
82 d.setVar('pkg_postrm_%s' % pkg, postrm) 82 d.setVar('pkg_postrm:%s' % pkg, postrm)
83} 83}
84 84