From patchwork Wed Oct 17 14:29:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] matchbox-keyboard: Use gtk-immodules-cache.bbclass Date: Wed, 17 Oct 2012 14:29:32 -0000 From: Samuel Stirtzel X-Patchwork-Id: 38231 Message-Id: <1350484172-9188-3-git-send-email-s.stirtzel@googlemail.com> To: openembedded-core@lists.openembedded.org Signed-off-by: Samuel Stirtzel --- .../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 -}