[OE-core] [PATCH 2/2] matchbox-keyboard: Use gtk-immodules-cache.bbclass
Samuel Stirtzel
s.stirtzel at googlemail.com
Wed Oct 17 14:29:32 UTC 2012
Signed-off-by: Samuel Stirtzel <s.stirtzel at googlemail.com>
---
.../matchbox-keyboard/matchbox-keyboard_git.bb | 21 ++++----------------
1 file changed, 4 insertions(+), 17 deletions(-)
diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
index 430e343..e426a5b 100644
--- a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
+++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
@@ -21,13 +21,16 @@ SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \
S = "${WORKDIR}/git"
-inherit autotools pkgconfig gettext
+inherit autotools pkgconfig gettext gtk-immodules-cache
EXTRA_OECONF = "--disable-cairo --enable-gtk-im --enable-applet"
PACKAGES += "matchbox-keyboard-im matchbox-keyboard-im-dbg \
matchbox-keyboard-applet matchbox-keyboard-applet-dbg"
+#Updates the inputmethod module cache in postinst / postrm
+GTKIMMODULES_PACKAGES = "matchbox-keyboard-im"
+
FILES_${PN} = "${bindir}/* \
${sysconfdir} \
${datadir}/applications \
@@ -47,19 +50,3 @@ do_install_append () {
rm -f ${D}${libdir}/gtk-2.0/*/immodules/*.la
rm -f ${D}${libdir}/matchbox-panel/*.la
}
-
-pkg_postinst_matchbox-keyboard-im () {
-if [ "x$D" != "x" ]; then
- exit 1
-fi
-
-gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
-}
-
-pkg_postrm_matchbox-keyboard-im () {
-if [ "x$D" != "x" ]; then
- exit 1
-fi
-
-gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
-}
--
1.7.9.5
More information about the Openembedded-core
mailing list