[oe] [PATCH] Maliit: Add initial recipes

Samuel Stirtzel s.stirtzel at googlemail.com
Wed Oct 17 08:29:16 UTC 2012


2012/10/16 Otavio Salvador <otavio at ossystems.com.br>:
> On Tue, Oct 2, 2012 at 5:28 AM, Samuel Stirtzel
> <s.stirtzel at googlemail.com> wrote:
>> Maliit is a Qt based virtual keyboard under liberal license (LGPLv2.1 / BSD)
>> The inputmethod framework from Qt is used and it supports gtk-immodules.
>> It can also be used without dependencies to GTK+ (separate package for GTK+)
>>
>> Signed-off-by: Samuel Stirtzel <s.stirtzel at googlemail.com>
>
> Thanks by working on this. Bellow my comments ...
>
> ...
>> diff --git a/meta-oe/recipes-support/maliit/maliit-framework_git.bb b/meta-oe/recipes-support/maliit/maliit-framework_git.bb
>> new file mode 100644
>> index 0000000..3f50d1b
>> --- /dev/null
>> +++ b/meta-oe/recipes-support/maliit/maliit-framework_git.bb
> ...
>> +
>> +# Maliit needs Qt configured with -accessibility, a patch for that was already sent and will get merged in post 1.2.
>> +RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4"
>
> In this case, maliit is a post 1.2 package.
>
> ...
>> +EXTRA_QMAKEVARS_PRE = "\
>> +    PREFIX=${prefix} \
>> +    LIBDIR=${libdir} \
>> +    QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \
>> +    MALIIT_INSTALL_PRF=${datadir}/qt4/mkspecs/features \
>> +    SCHEMADIR=${sysconfdir}/gconf/schemas \
>> +    CONFIG+=disable-gconf \
>> +    CONFIG+=disable-gtk-cache-update \
>> +    CONFIG+=local-install \
>> +    "
>
> Really need to disable gtk-cache-update? Why?

This option is for packaging, it disables running gtk-query-immodules
on the build-host

>
> ...
>> +# Update the inputmethod modules in gtk
>> +pkg_postinst_${PN}-gtk() {
>> +if [ "x$D" != "x" ]; then
>> +    exit 1
>> +fi
>> +gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
>> +}
>> +
>> +pkg_postrm_${PN}-gtk() {
>> +if [ "x$D" != "x" ]; then
>> +    exit 1
>> +fi
>> +gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
>> +}
>
> You might add a gtk-immodules.bbclass to allow it to be put out of the recipe.

FYI: I have a class for this, but the only other recipe using
gtk-query-immodules is
openembedded-core/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
Should I send a patch with the .bbclass to oe-core?

>
> As said by Martin, please read the README and follow the steps to send
> the patch...

Seems to be a classic case of -ENOCOFFEEYET

Will re-send with the right prefix


-- 
Regards
Samuel




More information about the Openembedded-devel mailing list