summaryrefslogtreecommitdiffstats
path: root/meta/classes/gio-module-cache.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/gio-module-cache.bbclass')
-rw-r--r--meta/classes/gio-module-cache.bbclass38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/classes/gio-module-cache.bbclass b/meta/classes/gio-module-cache.bbclass
deleted file mode 100644
index e429bd3197..0000000000
--- a/meta/classes/gio-module-cache.bbclass
+++ /dev/null
@@ -1,38 +0,0 @@
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