diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2013-09-28 22:25:14 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-10-05 14:42:08 +0200 |
commit | d691c447784646688b3b0445d63359a7d9292926 (patch) | |
tree | 1af4ae2c2cdd56821e8c93823fed9c3db8e6e4e6 | |
parent | f4188229f100349f4c88340b62a37d3ebfe51cc5 (diff) | |
download | meta-qt5-d691c447784646688b3b0445d63359a7d9292926.tar.gz |
maliit: Import maliit recipes from meta-oe
* Imported from rev 13ae5105ee30410136beeae66ec41ee4a8a2e2b0
This is the first step to move these recipes over to qt5.
* maliit-framework-qt5: Build with qt5
Switch to new github repo
Update SRCREV and remove patches which now longer apply
Disable doc generation and xcb
Fix packaging
* maliit-plugins-qt5: Build with qt5.
Switch to new github repo
Update SRCREV and PV
Fix packaging
* maliit-*-qt5: Adjust MKSPEC path
* meta-framework-qt5: Cleanup packaging and enable dbus activation.
Move pkgconfig files, headers and spec files into dev.
Cleanup packaging rules
Enable dbus activation to start maliit server on demand
* maliit-plugins-qt5: Set MALIIT_PLUGINS_DATA_DIR to avoid path leakage from host
If not overriden here MALIIT_PLUGINS_DATA_DIR would point to some host
paths resulting in e.g. qml files not being found.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
6 files changed, 236 insertions, 0 deletions
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch new file mode 100644 index 00000000..acd9a57a --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 33554f9b3fd493c7e28617fd01466ffa87251f27 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
3 | Date: Wed, 1 Aug 2012 13:21:51 +0200 | ||
4 | Subject: [PATCH] Fix MALIIT_INSTALL_PRF to allow the build with openembedded | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
9 | --- | ||
10 | config.pri | 8 +++++--- | ||
11 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/config.pri b/config.pri | ||
14 | index b037b8c..43409f3 100644 | ||
15 | --- a/config.pri | ||
16 | +++ b/config.pri | ||
17 | @@ -161,9 +161,11 @@ contains(QT_MAJOR_VERSION, 4) { | ||
18 | QT_WIDGETS = gui widgets | ||
19 | } | ||
20 | |||
21 | -MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features | ||
22 | -local-install { | ||
23 | - MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX) | ||
24 | +isEmpty(MALIIT_INSTALL_PRF) { | ||
25 | + MALIIT_INSTALL_PRF = $$[QT_INSTALL_DATA]/mkspecs/features | ||
26 | + local-install { | ||
27 | + MALIIT_INSTALL_PRF = $$replace(MALIIT_INSTALL_PRF, $$[QT_INSTALL_PREFIX], $$PREFIX) | ||
28 | + } | ||
29 | } | ||
30 | |||
31 | defineTest(outputFile) { | ||
32 | -- | ||
33 | 1.7.9.5 | ||
34 | |||
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch new file mode 100644 index 00000000..830e6deb --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Fix-QT_IM_PLUGIN_PATH-to-allow-openembedded-to-build.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From fb6acbd2af9ed288c1c4f4200fc73d8d9955486a Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
3 | Date: Wed, 1 Aug 2012 13:33:10 +0200 | ||
4 | Subject: [PATCH] Fix QT_IM_PLUGIN_PATH to allow openembedded to build Maliit | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
9 | --- | ||
10 | input-context/input-context.pri | 10 ++++++---- | ||
11 | 1 file changed, 6 insertions(+), 4 deletions(-) | ||
12 | |||
13 | diff --git a/input-context/input-context.pri b/input-context/input-context.pri | ||
14 | index d94e6a3..d460e70 100644 | ||
15 | --- a/input-context/input-context.pri | ||
16 | +++ b/input-context/input-context.pri | ||
17 | @@ -25,8 +25,10 @@ for(OPTION,$$list($$lower($$COV_OPTION))){ | ||
18 | |||
19 | QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda | ||
20 | |||
21 | -QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods | ||
22 | -QT_PREFIX = $$[QT_INSTALL_PREFIX] | ||
23 | -local-install { | ||
24 | - QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX) | ||
25 | +isEmpty(QT_IM_PLUGIN_PATH) { | ||
26 | + QT_IM_PLUGIN_PATH = $$[QT_INSTALL_PLUGINS]/inputmethods | ||
27 | + QT_PREFIX = $$[QT_INSTALL_PREFIX] | ||
28 | + local-install { | ||
29 | + QT_IM_PLUGIN_PATH = $$replace(QT_IM_PLUGIN_PATH, $$QT_PREFIX, $$PREFIX) | ||
30 | + } | ||
31 | } | ||
32 | -- | ||
33 | 1.7.9.5 | ||
34 | |||
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch new file mode 100644 index 00000000..c2291c6b --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5/0001-Link-to-libmaliit-1-0-in-inputcontext-plugin.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From cc33efdedbec9e9a55e9a0c6756516fd84d42e53 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
3 | Date: Fri, 1 Mar 2013 11:31:41 +0100 | ||
4 | Subject: [PATCH] Link to libmaliit-1,0 in inputcontext plugin | ||
5 | |||
6 | Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com> | ||
7 | --- | ||
8 | .../input-context-plugin/input-context-plugin.pro | 2 ++ | ||
9 | 1 file changed, 2 insertions(+) | ||
10 | |||
11 | diff --git a/input-context/input-context-plugin/input-context-plugin.pro b/input-context/input-context-plugin/input-context-plugin.pro | ||
12 | index eefbe93..296e2fa 100644 | ||
13 | --- a/input-context/input-context-plugin/input-context-plugin.pro | ||
14 | +++ b/input-context/input-context-plugin/input-context-plugin.pro | ||
15 | @@ -15,3 +15,5 @@ CONFIG += plugin | ||
16 | |||
17 | INSTALLS += target | ||
18 | target.path += $$QT_IM_PLUGIN_PATH | ||
19 | + | ||
20 | +LIBS += -L../../lib -l"maliit-1.0" | ||
21 | -- | ||
22 | 1.7.9.5 | ||
23 | |||
diff --git a/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop new file mode 100644 index 00000000..24bdf9b5 --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5/maliit-server.desktop | |||
@@ -0,0 +1,6 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Maliit server | ||
3 | Exec=/usr/bin/maliit-server | ||
4 | Icon= | ||
5 | Type=Application | ||
6 | Categories=Utility; | ||
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb new file mode 100644 index 00000000..ccd0c4cb --- /dev/null +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb | |||
@@ -0,0 +1,98 @@ | |||
1 | DESCRIPTION = "A virtual keyboard for touch-screen based user interfaces" | ||
2 | HOMEPAGE = "https://wiki.maliit.org/Main_Page" | ||
3 | |||
4 | LICENSE = "LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad" | ||
6 | |||
7 | inherit qmake5 | ||
8 | |||
9 | # Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir} | ||
10 | # but | ||
11 | # actually it is ${includedir}/qt5 | ||
12 | OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" | ||
13 | |||
14 | |||
15 | SRC_URI = "git://github.com/maliit/framework.git;branch=master \ | ||
16 | file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ | ||
17 | file://maliit-server.desktop \ | ||
18 | " | ||
19 | |||
20 | SRCREV = "dbc0403f329d7f6ce2f5a09e6ff5adbd2548a8c9" | ||
21 | PV = "0.99.0+git${SRCPV}" | ||
22 | |||
23 | |||
24 | PACKAGES =+ "${PN}-gtk" | ||
25 | GTKIMMODULES_PACKAGES = "${PN}-gtk" | ||
26 | |||
27 | # FIXME: Do we need something like this with qt5? | ||
28 | #RDEPENDS_${PN} = "qt4-plugin-inputmethod-imsw-multi libqtsvg4" | ||
29 | |||
30 | RRECOMMENDS_${PN} = "maliit-plugins-qt5" | ||
31 | |||
32 | FILES_${PN} += "\ | ||
33 | ${libdir}/*.so* \ | ||
34 | ${bindir} \ | ||
35 | ${datadir}/applications/maliit-server.desktop \ | ||
36 | ${datadir}/dbus-1 \ | ||
37 | " | ||
38 | |||
39 | FILES_${PN}-dbg += "\ | ||
40 | ${libdir}/maliit-framework-tests \ | ||
41 | " | ||
42 | |||
43 | FILES_${PN}-dev += "\ | ||
44 | ${includedir}/maliit \ | ||
45 | ${libdir}/pkgconfig \ | ||
46 | ${libdir}/qt5 \ | ||
47 | " | ||
48 | |||
49 | EXTRA_QMAKEVARS_PRE = "\ | ||
50 | PREFIX=${prefix} \ | ||
51 | LIBDIR=${libdir} \ | ||
52 | QT_IM_PLUGIN_PATH=${libdir}/qt4/plugins/inputmethods \ | ||
53 | MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \ | ||
54 | SCHEMADIR=${sysconfdir}/gconf/schemas \ | ||
55 | CONFIG+=disable-gconf \ | ||
56 | CONFIG+=disable-gtk-cache-update \ | ||
57 | CONFIG+=local-install \ | ||
58 | CONFIG+=nosdk \ | ||
59 | CONFIG+=nodoc \ | ||
60 | CONFIG+=noxcb \ | ||
61 | CONFIG+=enable-dbus-activation \ | ||
62 | " | ||
63 | |||
64 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" | ||
65 | |||
66 | do_install_append() { | ||
67 | #Fix absolute paths | ||
68 | sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-framework.prf | ||
69 | sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-plugins.prf | ||
70 | sed -i -e "s|/usr|${STAGING_DIR_TARGET}${prefix}|" ${D}/${libdir}/${QT_DIR_NAME}/mkspecs/features/maliit-defines.prf | ||
71 | |||
72 | install -d ${D}${datadir}/applications | ||
73 | install -m 644 ${WORKDIR}/maliit-server.desktop ${D}${datadir}/applications | ||
74 | } | ||
75 | |||
76 | pkg_postinst_${PN} () { | ||
77 | #!/bin/sh | ||
78 | # should run online | ||
79 | if [ "x$D" != "x" ]; then | ||
80 | exit 1 | ||
81 | fi | ||
82 | echo "export QT_IM_MODULE=Maliit" >> /etc/xprofile | ||
83 | ln -s /usr/share/applications/maliit-server.desktop /etc/xdg/autostart/maliit-server.desktop | ||
84 | } | ||
85 | |||
86 | pkg_postrm_${PN} () { | ||
87 | #!/bin/sh | ||
88 | # should run online | ||
89 | if [ "x$D" = "x" ]; then | ||
90 | exit 1 | ||
91 | fi | ||
92 | if [ -e "/etc/xprofile" ]; then | ||
93 | sed -i -e "g|export QT_IM_MODULE=Maliit|d" /etc/xprofile | ||
94 | fi | ||
95 | rm -f /etc/xdg/autostart/maliit-server.desktop | ||
96 | } | ||
97 | |||
98 | S = "${WORKDIR}/git" | ||
diff --git a/recipes-qt/maliit/maliit-plugins-qt5_git.bb b/recipes-qt/maliit/maliit-plugins-qt5_git.bb new file mode 100644 index 00000000..fa3d1fd6 --- /dev/null +++ b/recipes-qt/maliit/maliit-plugins-qt5_git.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces" | ||
2 | HOMEPAGE = "https://wiki.maliit.org/Main_Page" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621" | ||
6 | |||
7 | inherit qmake5 | ||
8 | |||
9 | # Set path of qt5 headers as qmake5_base.bbclass sets this to just ${includedir} | ||
10 | # but | ||
11 | # actually it is ${includedir}/qt5 | ||
12 | OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" | ||
13 | |||
14 | DEPENDS = "maliit-framework-qt5" | ||
15 | |||
16 | # FIXME: Do we need something like this with qt5? | ||
17 | #RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg" | ||
18 | |||
19 | SRC_URI = "git://github.com/maliit/plugins.git;branch=master" | ||
20 | |||
21 | SRCREV = "c6a348592607248a771a3dde5a0e33dc3c433a2a" | ||
22 | PV = "0.99.0+git${SRCPV}" | ||
23 | |||
24 | EXTRA_QMAKEVARS_PRE = "\ | ||
25 | PREFIX=${prefix} \ | ||
26 | MALIIT_INSTALL_PRF=${QMAKE_MKSPEC_PATH}/mkspecs/features \ | ||
27 | MALIIT_PLUGINS_DATA_DIR=${datadir} \ | ||
28 | LIBDIR=${libdir} \ | ||
29 | CONFIG+=nodoc \ | ||
30 | " | ||
31 | |||
32 | FILES_${PN} += "\ | ||
33 | ${libdir}/maliit \ | ||
34 | ${datadir} \ | ||
35 | " | ||
36 | |||
37 | FILES_${PN}-dbg += "${libdir}/maliit/plugins/.debug" | ||
38 | |||
39 | S= "${WORKDIR}/git" | ||
40 | |||
41 | EXTRA_OEMAKE += "INSTALL_ROOT=${D}" | ||