1PACKAGE_WRITE_DEPS += "qemu-native" 2inherit qemu 3 4GIO_MODULE_PACKAGES ??= "${PN}" 5 6gio_module_cache_common() { 7if [ "x$D" != "x" ]; then 8 $INTERCEPT_DIR/postinst_intercept update_gio_module_cache ${PKG} \ 9 mlprefix=${MLPREFIX} \ 10 binprefix=${MLPREFIX} \ 11 libdir=${libdir} \ 12 libexecdir=${libexecdir} \ 13 base_libdir=${base_libdir} \ 14 bindir=${bindir} 15else 16 ${libexecdir}/${MLPREFIX}gio-querymodules ${libdir}/gio/modules/ 17fi 18} 19 20python populate_packages:append () { 21 packages = d.getVar('GIO_MODULE_PACKAGES').split() 22 23 for pkg in packages: 24 bb.note("adding gio-module-cache postinst and postrm scripts to %s" % pkg) 25 26 postinst = d.getVar('pkg_postinst:%s' % pkg) 27 if not postinst: 28 postinst = '#!/bin/sh\n' 29 postinst += d.getVar('gio_module_cache_common') 30 d.setVar('pkg_postinst:%s' % pkg, postinst) 31 32 postrm = d.getVar('pkg_postrm:%s' % pkg) 33 if not postrm: 34 postrm = '#!/bin/sh\n' 35 postrm += d.getVar('gio_module_cache_common') 36 d.setVar('pkg_postrm:%s' % pkg, postrm) 37} 38 39