summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/gtk-immodules-cache.bbclass17
1 files changed, 16 insertions, 1 deletions
diff --git a/meta/classes/gtk-immodules-cache.bbclass b/meta/classes/gtk-immodules-cache.bbclass
index 515d28b5b4..9ffb03b9da 100644
--- a/meta/classes/gtk-immodules-cache.bbclass
+++ b/meta/classes/gtk-immodules-cache.bbclass
@@ -2,9 +2,24 @@
2# 2#
3# Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules 3# Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules
4 4
5DEPENDS =+ "qemu-native"
6
7inherit qemu
8
5gtk_immodule_cache_postinst() { 9gtk_immodule_cache_postinst() {
6if [ "x$D" != "x" ]; then 10if [ "x$D" != "x" ]; then
7 exit 1 11 for maj_ver in 2 3; do
12 if [ -x $D${bindir}/gtk-query-immodules-$maj_ver.0 ]; then
13 IMFILES=$(ls $D${libdir}/gtk-$maj_ver.0/*/immodules/*.so)
14 ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-$maj_ver.0')} \
15 $IMFILES > $D/etc/gtk-$maj_ver.0/gtk.immodules 2>/dev/null &&
16 sed -i -e "s:$D::" $D/etc/gtk-$maj_ver.0/gtk.immodules
17
18 [ $? -ne 0 ] && exit 1
19 fi
20 done
21
22 exit 0
8fi 23fi
9if [ ! -z `which gtk-query-immodules-2.0` ]; then 24if [ ! -z `which gtk-query-immodules-2.0` ]; then
10 gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 25 gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules