diff options
Diffstat (limited to 'meta/classes-recipe/gio-module-cache.bbclass')
| -rw-r--r-- | meta/classes-recipe/gio-module-cache.bbclass | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/classes-recipe/gio-module-cache.bbclass b/meta/classes-recipe/gio-module-cache.bbclass deleted file mode 100644 index 3714678c7c..0000000000 --- a/meta/classes-recipe/gio-module-cache.bbclass +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | PACKAGE_WRITE_DEPS += "qemuwrapper-cross" | ||
| 8 | |||
| 9 | GIO_MODULE_PACKAGES ??= "${PN}" | ||
| 10 | |||
| 11 | gio_module_cache_common() { | ||
| 12 | if [ "x$D" != "x" ]; then | ||
| 13 | $INTERCEPT_DIR/postinst_intercept update_gio_module_cache ${PKG} \ | ||
| 14 | mlprefix=${MLPREFIX} \ | ||
| 15 | binprefix=${MLPREFIX} \ | ||
| 16 | libdir=${libdir} \ | ||
| 17 | libexecdir=${libexecdir} \ | ||
| 18 | base_libdir=${base_libdir} \ | ||
| 19 | bindir=${bindir} | ||
| 20 | else | ||
| 21 | ${libexecdir}/${MLPREFIX}gio-querymodules ${libdir}/gio/modules/ | ||
| 22 | fi | ||
| 23 | } | ||
| 24 | |||
| 25 | python populate_packages:append () { | ||
| 26 | packages = d.getVar('GIO_MODULE_PACKAGES').split() | ||
| 27 | |||
| 28 | for pkg in packages: | ||
| 29 | bb.note("adding gio-module-cache postinst and postrm scripts to %s" % pkg) | ||
| 30 | |||
| 31 | postinst = d.getVar('pkg_postinst:%s' % pkg) | ||
| 32 | if not postinst: | ||
| 33 | postinst = '#!/bin/sh\n' | ||
| 34 | postinst += d.getVar('gio_module_cache_common') | ||
| 35 | d.setVar('pkg_postinst:%s' % pkg, postinst) | ||
| 36 | |||
| 37 | postrm = d.getVar('pkg_postrm:%s' % pkg) | ||
| 38 | if not postrm: | ||
| 39 | postrm = '#!/bin/sh\n' | ||
| 40 | postrm += d.getVar('gio_module_cache_common') | ||
| 41 | d.setVar('pkg_postrm:%s' % pkg, postrm) | ||
| 42 | } | ||
| 43 | |||
