diff options
Diffstat (limited to 'meta/classes/pixbufcache.bbclass')
| -rw-r--r-- | meta/classes/pixbufcache.bbclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass index b07f51ed56..886bf195b3 100644 --- a/meta/classes/pixbufcache.bbclass +++ b/meta/classes/pixbufcache.bbclass | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | # packages. | 3 | # packages. |
| 4 | # | 4 | # |
| 5 | 5 | ||
| 6 | DEPENDS_append_class-target = " qemu-native" | 6 | DEPENDS:append:class-target = " qemu-native" |
| 7 | inherit qemu | 7 | inherit qemu |
| 8 | 8 | ||
| 9 | PIXBUF_PACKAGES ??= "${PN}" | 9 | PIXBUF_PACKAGES ??= "${PN}" |
| @@ -29,30 +29,30 @@ else | |||
| 29 | fi | 29 | fi |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | python populate_packages_append() { | 32 | python populate_packages:append() { |
| 33 | pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split() | 33 | pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split() |
| 34 | 34 | ||
| 35 | for pkg in pixbuf_pkgs: | 35 | for pkg in pixbuf_pkgs: |
| 36 | bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg) | 36 | bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg) |
| 37 | postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') | 37 | postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst') |
| 38 | if not postinst: | 38 | if not postinst: |
| 39 | postinst = '#!/bin/sh\n' | 39 | postinst = '#!/bin/sh\n' |
| 40 | postinst += d.getVar('pixbufcache_common') | 40 | postinst += d.getVar('pixbufcache_common') |
| 41 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 41 | d.setVar('pkg_postinst:%s' % pkg, postinst) |
| 42 | 42 | ||
| 43 | postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') | 43 | postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm') |
| 44 | if not postrm: | 44 | if not postrm: |
| 45 | postrm = '#!/bin/sh\n' | 45 | postrm = '#!/bin/sh\n' |
| 46 | postrm += d.getVar('pixbufcache_common') | 46 | postrm += d.getVar('pixbufcache_common') |
| 47 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 47 | d.setVar('pkg_postrm:%s' % pkg, postrm) |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | gdkpixbuf_complete() { | 50 | gdkpixbuf_complete() { |
| 51 | GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1 | 51 | GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1 |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | DEPENDS_append_class-native = " gdk-pixbuf-native" | 54 | DEPENDS:append:class-native = " gdk-pixbuf-native" |
| 55 | SYSROOT_PREPROCESS_FUNCS_append_class-native = " pixbufcache_sstate_postinst" | 55 | SYSROOT_PREPROCESS_FUNCS:append:class-native = " pixbufcache_sstate_postinst" |
| 56 | 56 | ||
| 57 | pixbufcache_sstate_postinst() { | 57 | pixbufcache_sstate_postinst() { |
| 58 | mkdir -p ${SYSROOT_DESTDIR}${bindir} | 58 | mkdir -p ${SYSROOT_DESTDIR}${bindir} |
