Patchwork [v2,2/2] matchbox-keyboard: Use gtk-immodules-cache.bbclass

login
register
mail settings
Submitter Samuel Stirtzel
Date Oct. 17, 2012, 3:24 p.m.
Message ID <1350487497-13102-2-git-send-email-s.stirtzel@googlemail.com>
Download mbox | patch
Permalink /patch/38243/
State New
Headers show

Comments

Samuel Stirtzel - Oct. 17, 2012, 3:24 p.m.
Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
---
 .../matchbox-keyboard/matchbox-keyboard_git.bb     |   23 +++++---------------
 1 file changed, 5 insertions(+), 18 deletions(-)

Patch

diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
index 430e343..c812f05 100644
--- a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
+++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
@@ -12,7 +12,7 @@  RDEPENDS_${PN} = "formfactor dbus-wait"
 SECTION = "x11"
 SRCREV = "b38f24036cff3be6c2fbcf9ca9881803e69003ac"
 PV = "0.0+git${SRCPV}"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \
            file://configure_fix.patch;maxrev=1819 \
@@ -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
-}