summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/matchbox-keyboard
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-sato/matchbox-keyboard
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-sato/matchbox-keyboard')
-rw-r--r--meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh21
-rw-r--r--meta/recipes-sato/matchbox-keyboard/files/single-instance.patch23
-rw-r--r--meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb53
3 files changed, 97 insertions, 0 deletions
diff --git a/meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh b/meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh
new file mode 100644
index 0000000000..6cf188b2d0
--- /dev/null
+++ b/meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh
@@ -0,0 +1,21 @@
1#!/bin/sh
2
3. /etc/formfactor/config
4
5CMD=""
6
7if [ "$HAVE_KEYBOARD" = "0" ]; then
8 CMD="matchbox-keyboard -d"
9elif [ "$DISPLAY_CAN_ROTATE" = "1" ]; then
10 if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then
11 CMD="matchbox-keyboard -d -o landscape"
12 elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then
13 CMD="matchbox-keyboard -d -o portrait"
14 fi
15fi
16
17if [ "$CMD" ]; then
18 # Delay to make sure the window manager is active
19 # by waiting for the desktop to say its finished loading
20 dbus-wait org.matchbox_project.desktop Loaded && $CMD &
21fi
diff --git a/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch b/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch
new file mode 100644
index 0000000000..18b6c41746
--- /dev/null
+++ b/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch
@@ -0,0 +1,23 @@
1Multiple matchbox-keyboard instances would occupy whole screen and cause X
2window segfault(Bug 509). Making matchbox-keyboard singleton is one work
3around.
4
5This patch allow only one instance of matchbox-keyboard based on some mechanism
6in matchbox-desktop. In future, an applet and GTK-IM modules in
7matchbox-keyboard can be used to automatically map/unmap the virtual keyboard
8on demand.
9
10Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
11
12Upstream-Status: Inappropriate [configuration]
13
14Index: matchbox-keyboard/matchbox-keyboard.desktop
15===================================================================
16--- matchbox-keyboard.orig/matchbox-keyboard.desktop 2010-12-22 20:41:40.000000000 +0800
17+++ matchbox-keyboard/matchbox-keyboard.desktop 2010-12-22 20:42:12.000000000 +0800
18@@ -6,3 +6,5 @@
19 Icon=matchbox-keyboard.png
20 Categories=Panel;Utility;MB
21 X-MB-INPUT-MECHANSIM=True
22+X-MB-SingleInstance=true
23+StartupNotify=true
diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
new file mode 100644
index 0000000000..7a99a9c46a
--- /dev/null
+++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb
@@ -0,0 +1,53 @@
1SUMMARY = "Matchbox virtual keyboard for X11"
2HOMEPAGE = "http://matchbox-project.org"
3BUGTRACKER = "http://bugzilla.yoctoproject.org/"
4SECTION = "x11"
5
6LICENSE = "LGPLv2.1"
7LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
8 file://src/matchbox-keyboard.h;endline=17;md5=9d6586c69e4a926f3cb0b4425f24ba3c \
9 file://applet/applet.c;endline=18;md5=4a0f721724746b14d95b51ddd42b95e7"
10
11DEPENDS = "libfakekey expat libxft gtk+ matchbox-panel-2"
12
13SRCREV = "217f1bfe14c41cf7e291d04a63aa2d79cc13d063"
14PV = "0.0+git${SRCPV}"
15PR = "r4"
16
17SRC_URI = "git://git.yoctoproject.org/${BPN};branch=matchbox-keyboard-0-1 \
18 file://single-instance.patch \
19 file://80matchboxkeyboard.sh"
20
21S = "${WORKDIR}/git"
22
23inherit autotools pkgconfig gettext gtk-immodules-cache
24
25EXTRA_OECONF = "--disable-cairo --enable-gtk-im --enable-applet"
26
27PACKAGES += "${PN}-im ${PN}-applet"
28
29FILES_${PN} = "${bindir}/ \
30 ${sysconfdir} \
31 ${datadir}/applications \
32 ${datadir}/pixmaps \
33 ${datadir}/matchbox-keyboard"
34
35FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/.debug"
36
37FILES_${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so"
38
39FILES_${PN}-applet = "${libdir}/matchbox-panel/*.so"
40
41
42do_install_append () {
43 install -d ${D}/${sysconfdir}/X11/Xsession.d/
44 install -m 755 ${WORKDIR}/80matchboxkeyboard.sh ${D}/${sysconfdir}/X11/Xsession.d/
45
46 rm -f ${D}${libdir}/gtk-2.0/*/immodules/*.la
47 rm -f ${D}${libdir}/matchbox-panel/*.la
48}
49
50GTKIMMODULES_PACKAGES = "${PN}-im"
51
52RDEPENDS_${PN} = "formfactor dbus-wait"
53RRECOMMENDS_${PN} = "${PN}-applet"