diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-sato/matchbox-keyboard | |
download | poky-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')
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 | |||
5 | CMD="" | ||
6 | |||
7 | if [ "$HAVE_KEYBOARD" = "0" ]; then | ||
8 | CMD="matchbox-keyboard -d" | ||
9 | elif [ "$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 | ||
15 | fi | ||
16 | |||
17 | if [ "$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 & | ||
21 | fi | ||
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 @@ | |||
1 | Multiple matchbox-keyboard instances would occupy whole screen and cause X | ||
2 | window segfault(Bug 509). Making matchbox-keyboard singleton is one work | ||
3 | around. | ||
4 | |||
5 | This patch allow only one instance of matchbox-keyboard based on some mechanism | ||
6 | in matchbox-desktop. In future, an applet and GTK-IM modules in | ||
7 | matchbox-keyboard can be used to automatically map/unmap the virtual keyboard | ||
8 | on demand. | ||
9 | |||
10 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
11 | |||
12 | Upstream-Status: Inappropriate [configuration] | ||
13 | |||
14 | Index: 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 @@ | |||
1 | SUMMARY = "Matchbox virtual keyboard for X11" | ||
2 | HOMEPAGE = "http://matchbox-project.org" | ||
3 | BUGTRACKER = "http://bugzilla.yoctoproject.org/" | ||
4 | SECTION = "x11" | ||
5 | |||
6 | LICENSE = "LGPLv2.1" | ||
7 | LIC_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 | |||
11 | DEPENDS = "libfakekey expat libxft gtk+ matchbox-panel-2" | ||
12 | |||
13 | SRCREV = "217f1bfe14c41cf7e291d04a63aa2d79cc13d063" | ||
14 | PV = "0.0+git${SRCPV}" | ||
15 | PR = "r4" | ||
16 | |||
17 | SRC_URI = "git://git.yoctoproject.org/${BPN};branch=matchbox-keyboard-0-1 \ | ||
18 | file://single-instance.patch \ | ||
19 | file://80matchboxkeyboard.sh" | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | inherit autotools pkgconfig gettext gtk-immodules-cache | ||
24 | |||
25 | EXTRA_OECONF = "--disable-cairo --enable-gtk-im --enable-applet" | ||
26 | |||
27 | PACKAGES += "${PN}-im ${PN}-applet" | ||
28 | |||
29 | FILES_${PN} = "${bindir}/ \ | ||
30 | ${sysconfdir} \ | ||
31 | ${datadir}/applications \ | ||
32 | ${datadir}/pixmaps \ | ||
33 | ${datadir}/matchbox-keyboard" | ||
34 | |||
35 | FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/.debug" | ||
36 | |||
37 | FILES_${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so" | ||
38 | |||
39 | FILES_${PN}-applet = "${libdir}/matchbox-panel/*.so" | ||
40 | |||
41 | |||
42 | do_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 | |||
50 | GTKIMMODULES_PACKAGES = "${PN}-im" | ||
51 | |||
52 | RDEPENDS_${PN} = "formfactor dbus-wait" | ||
53 | RRECOMMENDS_${PN} = "${PN}-applet" | ||