summaryrefslogtreecommitdiff
path: root/x11-misc/xkbd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xkbd
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xkbd')
-rw-r--r--x11-misc/xkbd/Manifest9
-rw-r--r--x11-misc/xkbd/files/xkbd-0.8.15-fix-keysyms-search.patch13
-rw-r--r--x11-misc/xkbd/files/xkbd-0.8.15-increase-delay.patch22
-rw-r--r--x11-misc/xkbd/files/xkbd-0.8.16-desktop.patch19
-rw-r--r--x11-misc/xkbd/files/xkbd-0.8.16-fix-geometry.patch36
-rw-r--r--x11-misc/xkbd/metadata.xml8
-rw-r--r--x11-misc/xkbd/xkbd-0.8.16-r1.ebuild38
7 files changed, 145 insertions, 0 deletions
diff --git a/x11-misc/xkbd/Manifest b/x11-misc/xkbd/Manifest
new file mode 100644
index 000000000000..d070b01e3465
--- /dev/null
+++ b/x11-misc/xkbd/Manifest
@@ -0,0 +1,9 @@
+AUX xkbd-0.8.15-fix-keysyms-search.patch 438 SHA256 68ab701557b9d8f10686cc7530eeb79c025e7885243e8907285a2c0d8f68f102 SHA512 ae494c10df66179739a19a5f5a21ec7c00ab6674fff64042006958778d2fac9c2da9b5a9e945dcd654827850444121b0135a143b4b0e5783f6b420c767009505 WHIRLPOOL 854a2fcc49ec28d7a45b1c1165009953c238076ee90611f5c881795bd48240cca27ed4995f11ce89ee47a001edebb095c8211d712a247d640b838ca0cb5dd55d
+AUX xkbd-0.8.15-increase-delay.patch 770 SHA256 9be58a299820e70bb0289c26ce0bf20fd973f0351974b8493a145c89ce6cecc0 SHA512 49487d975134d2319d194b5d5110bd6d93b45f712129d1f6f05d00e6611403a9acd5a6a1183e371d56619a9d7456a00cfefded4aa21a63bdf3e1493a59085fcd WHIRLPOOL 5cd954efd0ca2285ad4bb122f6cab1d688f2d4da77497b6a43dd8dcefb204158ab84a74764fb28054ac195444423f06feca9081e1d4bbfd67adfc5246b82fd78
+AUX xkbd-0.8.16-desktop.patch 1172 SHA256 5b6c453a47d7c072595b43c97f33d39218e0fe39f699940eadfcd152c16e9bcc SHA512 26d4281cfc15a8aaadb0bd9ffc70df7c63b31abc54fd45ec0055abe37d7f960ac4d05056dabaca14bb33f19d34c5e293b4b0b45fe96b7d0078b73897d9ac388e WHIRLPOOL d87ded6c5bd42acd18489453be98a48302793ff72e2ef0f68775033012f228a0571ec12a7af96104e05edd5ad39982dd7cb6949e3295acedbd57291963877264
+AUX xkbd-0.8.16-fix-geometry.patch 1081 SHA256 dcf3e412429458f03f4ff246532d2eb4f9ac5e6ebf77223a1fc77da96072a44b SHA512 03c2fcc4a2d731ea3dc3bb9c596e9d867b01e09713c65f5614f37eb86c2e41edacd16ee67b67a01fb7fab9e2e9e936cfa9ab5bee214f3427710a88829a538899 WHIRLPOOL 666af437b1ed0f0db21fdc27fabd0aa8c0a12c1a84555423cabef8b633073a44cebb5dadf773f9cd3ea0abf5a889eafa26162e86fcaaba2cf59b5cbb83d706bd
+DIST xkbd-0.8.16.tar.gz 347616 SHA256 c85848851dfa42636a4eebec7f7f121365aa28b27554a0c1d5eca15ed4107471 SHA512 8410f722cb93069eea26f9d1ed6b9fea76ed5222b8586c2f78ccc1a0f040a964e165df0611ce72c108dbc7adeec31515595c81be3867e68c0cadd8846d985d4a WHIRLPOOL 38f729d2cddfb246b823dc49e3e4e9cc86060bb3bd6c11b46d289907f00ea66de57ecbc168494710d7dbb2efa418978e3e9c117fc98b7a70de3efdb1b3bf57bd
+EBUILD xkbd-0.8.16-r1.ebuild 829 SHA256 050687b872161804919a178a509f6bf04d9bfc3ca582285994e7ad1c9e616230 SHA512 d9abaf8907763bb7c18c67396fe559959e2706773cee453498defecd03d9879c9a1a892eba827f78b7c8bbb375e5a4d6f3c3e8cc72256f8159e6d9a00a7cf875 WHIRLPOOL 4cd89d25091c52dd7b171256523d26164d126bcb21ba127f0d397e7e56f8f5cad91db353ee6bdd1502844350819b91ebb586f242404ddf70b9cc9ca2f80ae2c7
+MISC ChangeLog 2646 SHA256 d13de382643234740856a4a14e313aae9030570004382b030b21ee5620f4afd1 SHA512 c26055d1eef7d21cde1aa3fc49c09dbb5d8607b7c5c314f09357787a4b76f2d92401c8c97452d37ce322f4dfb515149fd5d953cff918cb048e2066558a02dda4 WHIRLPOOL 091ef59f36222dafcbabd7c860b726d5fd0bf7c9a925a24d021cf5aa062f80e12fa716792d65d91e433162cdad8d4214947c659abf5396d2fa3f0ef1608a4fb7
+MISC ChangeLog-2015 2738 SHA256 3fae6629b87b0190f00c71ae148a1a8da7d2dfe67bb7792ef22ecedcf564643c SHA512 2c1c222dbc49e901d96cbc78890eb03220d588fd1424fd6da9eca21a5726c36b6c7031d671bda9adf8040c8e30c4d656845ce63b74d7ff4933c1f5b47ad037b8 WHIRLPOOL 716eae7a7930f8dabe1727cc8024bf36c56907aaa2fa8455aa6495d032a79add020da62ac2f57dfa31b21c090e57694b13403207111354cf69dbc9ce31025563
+MISC metadata.xml 272 SHA256 b389ad9ba70c18154af4fc164e31d5b1e2a4e99815d34319b4a4f46ccef2be52 SHA512 ebe67da08587903b5b82fc194aa3c8f1ab65371f60d2c134928362e089550d9e9fd9531bffe8b676a345b5bf0ab209ce7f50d37d98201a88176f002e17582493 WHIRLPOOL 3d6a9660a11c299dbb7fa3ec6821005f2540dc8fc9e499206d38d79d54023b3ddc66a019b2c88fbc92199b9f5335088b47fa3fdd781f92f2da3ad98b26bc2a50
diff --git a/x11-misc/xkbd/files/xkbd-0.8.15-fix-keysyms-search.patch b/x11-misc/xkbd/files/xkbd-0.8.15-fix-keysyms-search.patch
new file mode 100644
index 000000000000..ff30537add44
--- /dev/null
+++ b/x11-misc/xkbd/files/xkbd-0.8.15-fix-keysyms-search.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/287075
+
+--- a/src/libvirtkeys.c
++++ b/src/libvirtkeys.c
+@@ -341,7 +341,7 @@
+
+ for (keycode = 0; ((keycode < (maxKeycode - minKeycode + 1)) && !found); keycode++)
+ {
+- for (column = 0; ((column < keysymsPerKeycode) && !found); column++)
++ for (column = 0; ((column < (keysymsPerKeycode > 4 ? 4 : keysymsPerKeycode)) && !found); column++)
+ {
+ if (keymap[(keycode * keysymsPerKeycode + column)] == ks)
+ {
diff --git a/x11-misc/xkbd/files/xkbd-0.8.15-increase-delay.patch b/x11-misc/xkbd/files/xkbd-0.8.15-increase-delay.patch
new file mode 100644
index 000000000000..deadcd7cddb1
--- /dev/null
+++ b/x11-misc/xkbd/files/xkbd-0.8.15-increase-delay.patch
@@ -0,0 +1,22 @@
+diff -ruN xkbd-0.8.15/data/en_GB.qwerty.xkbd.in xkbd-0.8.15-new/data/en_GB.qwerty.xkbd.in
+--- xkbd-0.8.15/data/en_GB.qwerty.xkbd.in 2003-08-10 10:46:29.000000000 -0700
++++ xkbd-0.8.15-new/data/en_GB.qwerty.xkbd.in 2008-03-23 02:52:52.000000000 -0700
+@@ -24,6 +24,7 @@
+
+ # button style, can be rounded ( default ), square or plain
+ button_style square
++repeat_delay 50
+
+ </global>
+ #
+diff -ruN xkbd-0.8.15/data/en_US.qwerty.xkbd.in xkbd-0.8.15-new/data/en_US.qwerty.xkbd.in
+--- xkbd-0.8.15/data/en_US.qwerty.xkbd.in 2002-11-28 03:46:04.000000000 -0800
++++ xkbd-0.8.15-new/data/en_US.qwerty.xkbd.in 2008-03-23 02:50:39.000000000 -0700
+@@ -26,6 +26,7 @@
+
+ # button style, can be rounded ( default ), square or plain
+ # button_style plain
++repeat_delay 50
+
+ </global>
+
diff --git a/x11-misc/xkbd/files/xkbd-0.8.16-desktop.patch b/x11-misc/xkbd/files/xkbd-0.8.16-desktop.patch
new file mode 100644
index 000000000000..987270d1d398
--- /dev/null
+++ b/x11-misc/xkbd/files/xkbd-0.8.16-desktop.patch
@@ -0,0 +1,19 @@
+Fixes following QA issues:
+ * QA Notice: This package installs one or more .desktop files that do not
+ * pass validation.
+ *
+ * /usr/share/applications/inputmethods/xkbd.desktop: error: (will be fatal in the future): value "xkbd.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
+ * /usr/share/applications/inputmethods/xkbd.desktop: error: value "Panel;Utility;MB" for key "Categories" in group "Desktop Entry" contains an unregistered value "MB"; values extending the format should start with "X-"
+ * /usr/share/applications/inputmethods/xkbd.desktop: error: value "Panel;Utility;MB" for key "Categories" in group "Desktop Entry" contains an unregistered value "Panel"; values extending the format should start with "X-"
+ *
+--- a/xkbd.desktop 2003-09-29 20:29:35.000000000 +0300
++++ b/xkbd.desktop 2017-02-16 16:23:40.927035269 +0200
+@@ -3,6 +3,6 @@
+ Comment=Virtual Keyboard
+ Exec=xkbd
+ Type=Application
+-Icon=xkbd.png
+-Categories=Panel;Utility;MB
++Icon=xkbd
++Categories=Utility;Accessibility
+ X-MB-INPUT-MECHANSIM=True
diff --git a/x11-misc/xkbd/files/xkbd-0.8.16-fix-geometry.patch b/x11-misc/xkbd/files/xkbd-0.8.16-fix-geometry.patch
new file mode 100644
index 000000000000..d90824085ea4
--- /dev/null
+++ b/x11-misc/xkbd/files/xkbd-0.8.16-fix-geometry.patch
@@ -0,0 +1,36 @@
+--- xkbd-0.8.16/src/xkbd.c
++++ xkbd-0.8.16/src/xkbd.c
+@@ -307,21 +307,22 @@
+ 0, BlackPixel(display, screen_num),
+ WhitePixel(display, screen_num));
+
++ wret = DisplayWidth(display, screen_num);
++ hret = DisplayHeight(display, screen_num)/4;
++ xret = 0;
++ yret = DisplayHeight(display, screen_num) - hret;
++
+ // deactivate geometry for 0.8.16 release - mb
+ geometry = NULL;
+ if (geometry != NULL)
+ {
+- XParseGeometry(geometry, &xret, &yret, &wret, &hret );
+- }
+- else
+- {
+- if (wm_type != WM_MATCHBOX)
+- {
+- wret = DisplayWidth(display, screen_num);
+- hret = DisplayHeight(display, screen_num)/4;
+- xret = 0;
+- yret = DisplayHeight(display, screen_num) - hret;
+- }
++ int flags;
++
++ flags = XParseGeometry(geometry, &xret, &yret, &wret, &hret );
++ if( flags & XNegative )
++ xret += DisplayWidth( display, screen_num ) - wret;
++ if( flags & YNegative )
++ yret += DisplayHeight( display, screen_num ) - hret;
+ }
+
+ /* check for user selected keyboard conf file */
diff --git a/x11-misc/xkbd/metadata.xml b/x11-misc/xkbd/metadata.xml
new file mode 100644
index 000000000000..49c86a887b6a
--- /dev/null
+++ b/x11-misc/xkbd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/x11-misc/xkbd/xkbd-0.8.16-r1.ebuild b/x11-misc/xkbd/xkbd-0.8.16-r1.ebuild
new file mode 100644
index 000000000000..986dae594ba3
--- /dev/null
+++ b/x11-misc/xkbd/xkbd-0.8.16-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="onscreen soft keyboard for X11"
+HOMEPAGE="http://trac.hackable1.org/trac/wiki/Xkbd"
+SRC_URI="http://trac.hackable1.org/trac/raw-attachment/wiki/Xkbd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc x86"
+IUSE="debug"
+
+RDEPEND="x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXft
+ x11-libs/libXtst
+ x11-libs/libXpm
+ media-libs/freetype
+ dev-libs/expat
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/xextproto"
+
+DOCS=( AUTHORS )
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-geometry.patch
+ "${FILESDIR}"/${P}-desktop.patch
+ "${FILESDIR}"/${PN}-0.8.15-increase-delay.patch
+ "${FILESDIR}"/${PN}-0.8.15-fix-keysyms-search.patch
+)
+
+src_configure() {
+ econf \
+ $(use_enable debug)
+}