diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-29 19:02:03 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-29 19:02:03 +0000 |
commit | 25152eb8e7e5da2268fef8397bd5abad7c255d91 (patch) | |
tree | d5067722d20faf3ed8c60468cc97b74fa8c6cde8 /meta/packages/matchbox-keyboard | |
parent | 12a09987de4356cb507cf4e31ac4d1a7294d4772 (diff) | |
download | poky-25152eb8e7e5da2268fef8397bd5abad7c255d91.tar.gz |
matchbox-keyboard: Add session script to handle startup (linked to formfactor)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1809 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/matchbox-keyboard')
-rwxr-xr-x | meta/packages/matchbox-keyboard/files/80matchboxkeyboard | 23 | ||||
-rw-r--r-- | meta/packages/matchbox-keyboard/matchbox-keyboard_svn.bb | 16 |
2 files changed, 33 insertions, 6 deletions
diff --git a/meta/packages/matchbox-keyboard/files/80matchboxkeyboard b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard new file mode 100755 index 0000000000..60d9ff0e5d --- /dev/null +++ b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/formfactor/config | ||
4 | |||
5 | CMD="" | ||
6 | |||
7 | if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then | ||
8 | if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then | ||
9 | CMD="matchbox-keyboard -d -o landscape" | ||
10 | elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then | ||
11 | CMD="matchbox-keyboard -d -o portrait" | ||
12 | fi | ||
13 | elif [ "$HAVE_KEYBOARD" = "1" ]; then | ||
14 | # Have a physical keyboard, nothing to do | ||
15 | exit | ||
16 | fi | ||
17 | |||
18 | # Delay to make sure the window manager is active | ||
19 | |||
20 | if [ "$CMD" ]; then | ||
21 | (sleep 2 && $CMD) & | ||
22 | fi | ||
23 | |||
diff --git a/meta/packages/matchbox-keyboard/matchbox-keyboard_svn.bb b/meta/packages/matchbox-keyboard/matchbox-keyboard_svn.bb index ac03f11e2d..a179883a58 100644 --- a/meta/packages/matchbox-keyboard/matchbox-keyboard_svn.bb +++ b/meta/packages/matchbox-keyboard/matchbox-keyboard_svn.bb | |||
@@ -1,12 +1,13 @@ | |||
1 | DESCRIPTION = "Matchbox virtual keyboard for X11" | 1 | DESCRIPTION = "Matchbox virtual keyboard for X11" |
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | DEPENDS = "libfakekey expat libxft gtk+" | 3 | DEPENDS = "libfakekey expat libxft gtk+" |
4 | RDEPENDS = "formfactor" | ||
4 | SECTION = "x11" | 5 | SECTION = "x11" |
5 | PV = "0.0+svn${SRCDATE}" | 6 | PV = "0.0+svn${SRCDATE}" |
6 | PR="r3" | 7 | PR = "r5" |
7 | |||
8 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http" | ||
9 | 8 | ||
9 | SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \ | ||
10 | file://80matchboxkeyboard" | ||
10 | 11 | ||
11 | S = "${WORKDIR}/${PN}" | 12 | S = "${WORKDIR}/${PN}" |
12 | 13 | ||
@@ -17,14 +18,17 @@ EXTRA_OECONF = "--disable-cairo --enable-gtk-im" | |||
17 | PACKAGES += "matchbox-keyboard-im matchbox-keyboard-im-dbg" | 18 | PACKAGES += "matchbox-keyboard-im matchbox-keyboard-im-dbg" |
18 | 19 | ||
19 | FILES_${PN} = "${bindir}/* \ | 20 | FILES_${PN} = "${bindir}/* \ |
21 | ${sysconfdir} \ | ||
20 | ${datadir}/applications \ | 22 | ${datadir}/applications \ |
21 | ${datadir}/pixmaps \ | 23 | ${datadir}/pixmaps \ |
22 | ${datadir}/matchbox-keyboard" | 24 | ${datadir}/matchbox-keyboard" |
23 | |||
24 | FILES_matchbox-keyboard-im = "${libdir}/gtk-2.0/*/immodules/*.so" | 25 | FILES_matchbox-keyboard-im = "${libdir}/gtk-2.0/*/immodules/*.so" |
26 | FILES_matchbox-keyboard-dbg += "${libdir}/gtk-2.0/*/immodules/.debug" | ||
25 | 27 | ||
26 | FILES_matchbox-keyboard-dbg = "${libdir}/gtk-2.0/*/immodules/.debug" | 28 | do_install_append () { |
27 | 29 | install -d ${D}/${sysconfdir}/X11/Xsession.d/ | |
30 | install -m 755 ${WORKDIR}/80matchboxkeyboard ${D}/${sysconfdir}/X11/Xsession.d/ | ||
31 | } | ||
28 | 32 | ||
29 | pkg_postinst_matchbox-keyboard-im () { | 33 | pkg_postinst_matchbox-keyboard-im () { |
30 | if [ "x$D" != "x" ]; then | 34 | if [ "x$D" != "x" ]; then |