aboutsummaryrefslogtreecommitdiff
path: root/recipes/matchbox-keyboard/matchbox-keyboard-inputmethod_svn.bb
blob: 516c8ee6fab4d5c4bfd3e14b7a984b33d84beec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
DESCRIPTION = "Matchbox virtual keyboard for X11"
LICENSE = "GPL"
DEPENDS = "libfakekey expat libxft gtk+ matchbox-panel-2"
RCONFLICTS_${PN} = "matchbox-keyboard"
SECTION = "x11"
SRCREV = "1910"
PV = "0.0+svnr${SRCPV}"
PR = "r13"

SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-keyboard;proto=http \
	    file://smallscreen-fontsize.patch \
        file://2-Add-new-modifier--layout--Used-to-cycle-thru-all-available-layouts.patch \
        file://3-Changes-to-improve-layout-rendering--especially-after-adding-support-for.patch \
        file://4-Add-rendering-debug-logging.patch \
        file://5-Add-support-for-loading-multiple-independent-layouts.patch \
        file://6-Add-layout-switch-key-to-all-layouts.patch \
        file://7-Newer-autotools.patch \
	    file://80matchboxkeyboard"

SRC_URI_append_bug20 = " file://mb_kb_mods.patch \
			file://mb_kbd_size.patch \
			file://keyboard-bug.xml"

SRC_URI_append_om-gta01 = " file://fic-gta01-font-size.patch"
SRC_URI_append_om-gta02 = " file://fic-gta01-font-size.patch"

S = "${WORKDIR}/matchbox-keyboard"

inherit autotools pkgconfig gettext

EXTRA_OECONF = "--disable-cairo --enable-gtk-im --enable-applet"

PACKAGES += "matchbox-keyboard-im matchbox-keyboard-im-dbg \
             matchbox-keyboard-applet matchbox-keyboard-applet-dbg"

FILES_${PN} = "${bindir}/* \
	       ${sysconfdir} \
	       ${datadir}/applications \
	       ${datadir}/pixmaps \
	       ${datadir}/matchbox-keyboard"

FILES_matchbox-keyboard-im = "${libdir}/gtk-2.0/*/immodules/*.so"
FILES_matchbox-keyboard-im-dbg += "${libdir}/gtk-2.0/*/immodules/.debug"

FILES_matchbox-keyboard-applet = "${libdir}/matchbox-panel/*.so"
FILES_matchbox-keyboard-applet-dbg += "${libdir}/matchbox-panel/.debug"

do_install_append () {
	install -d ${D}/${sysconfdir}/X11/Xsession.d/
	install -m 755 ${WORKDIR}/80matchboxkeyboard ${D}/${sysconfdir}/X11/Xsession.d/
}

do_install_append_bug20 () {
	install -d ${D}/${sysconfdir}/X11/Xsession.d/
	install -m 755 ${WORKDIR}/80matchboxkeyboard ${D}/${sysconfdir}/X11/Xsession.d/
	install -d ${D}/${datadir}/matchbox-keyboard/
	install -m 644 ${WORKDIR}/keyboard-bug.xml ${D}/${datadir}/matchbox-keyboard/
}

pkg_postinst_matchbox-keyboard-im () {
if [ "x$D" != "x" ]; then
  exit 1
fi

gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
}

pkg_postrm_matchbox-keyboard-im () {
if [ "x$D" != "x" ]; then
  exit 1
fi

gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
}