diff --git a/x11/misc/xkeyboard-config/actions.py b/x11/misc/xkeyboard-config/actions.py new file mode 100644 index 0000000000..67134d4830 --- /dev/null +++ b/x11/misc/xkeyboard-config/actions.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.configure("--enable-compat-rules \ + --with-xkb-rules-symlink=xorg") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "TODO", "README*", "NEWS") diff --git a/x11/misc/xkeyboard-config/files/10-keyboard.conf b/x11/misc/xkeyboard-config/files/10-keyboard.conf new file mode 100644 index 0000000000..afe2a89a50 --- /dev/null +++ b/x11/misc/xkeyboard-config/files/10-keyboard.conf @@ -0,0 +1,10 @@ +Section "InputClass" + Identifier "Keyboard Options" + MatchIsKeyboard "on" + + #Option "xkb_rules" "evdev" + #Option "xkb_model" "evdev" + #Option "xkb_options" "ctrl:nocaps,kpdl:dot,terminate:ctrl_alt_bksp" + #Option "xkb_layout" "tr" + #Option "xkb_variant" "f" +EndSection diff --git a/x11/misc/xkeyboard-config/files/95-xkb.rules b/x11/misc/xkeyboard-config/files/95-xkb.rules new file mode 100644 index 0000000000..4385c0022c --- /dev/null +++ b/x11/misc/xkeyboard-config/files/95-xkb.rules @@ -0,0 +1,29 @@ +ACTION!="add|change", GOTO="xkb_end" +ENV{ID_INPUT_KEYBOARD}!="?*", GOTO="xkb_end" + +IMPORT{cmdline}="xkeymap" + +ENV{xkeymap}=="?*", PROGRAM="/bin/sh -c 'echo $env{xkeymap} | tr : \\t'", ENV{xkblayout}="%c{1}" +ENV{xkeymap}=="?*:?*", ENV{xkbvariant}="%c{2}" + +ENV{xkeymap}=="?*", GOTO="xkb_end" + +# If a cmdline option is not given, use the configuration +# snippet (/etc/X11/xorg.conf.d/00-configured-keymap.conf). +ENV{ID_INPUT.tags}="use_configured_keymap" + +IMPORT{file}="/etc/env.d/03locale" +ENV{LANG}=="?*", PROGRAM="/bin/sh -c 'echo $${LANG,,} | tr .@_ \\t'", ENV{.language}="%c{1}", ENV{.territory}="%c{2}" + +ENV{.language}=="ar", ENV{xkblayout}="ara" +ENV{.language}=="el", ENV{xkblayout}="gr" +ENV{.language}=="es", ENV{.territory}!="es", ENV{xkblayout}="latam" +ENV{.language}=="sr", ENV{xkblayout}="rs" +ENV{.language}=="tr", ENV{xkblayout}="tr" + +# See Pardus Bugzilla #4271 +ENV{.territory}=="nl", ENV{xkblayout}="us", ENV{xkbvariant}="intl" + +ENV{.territory}=="?*", ENV{xkblayout}!="?*", ENV{xkblayout}="$env{.territory}" + +LABEL="xkb_end" diff --git a/x11/misc/xkeyboard-config/files/xkeyboard-config-1.4-jp-tilde.patch b/x11/misc/xkeyboard-config/files/xkeyboard-config-1.4-jp-tilde.patch new file mode 100644 index 0000000000..b76219c04e --- /dev/null +++ b/x11/misc/xkeyboard-config/files/xkeyboard-config-1.4-jp-tilde.patch @@ -0,0 +1,31 @@ +From 824ce3a400a452929f90a038033c83055c01a2d7 Mon Sep 17 00:00:00 2001 +From: Fedora X Ninjas +Date: Mon, 24 Nov 2008 12:59:09 +1000 +Subject: [PATCH] Map TLDE to Zenkaku/Hankaku in jp, and BKSL to bracket/brace right (#469537). + +This patch is only needed for jp on a non-jp106 keyboard model. +--- + symbols/jp | 7 +++++++ + 1 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/symbols/jp b/symbols/jp +index 694090c..ef0b0f7 100644 +--- a/symbols/jp ++++ b/symbols/jp +@@ -24,6 +24,13 @@ xkb_symbols "common" { + symbols[Group1]= [ Zenkaku_Hankaku, Kanji ] + }; + ++ key { ++ type[Group1]="PC_ALT_LEVEL2", ++ symbols[Group1]= [ Zenkaku_Hankaku, Kanji ] ++ }; ++ ++ key { [ bracketright, braceright ] }; ++ + key { [ 1, exclam ] }; + key { [ 2, quotedbl ] }; + key { [ 3, numbersign ] }; +-- +1.6.0.3 + diff --git a/x11/misc/xkeyboard-config/pspec.xml b/x11/misc/xkeyboard-config/pspec.xml new file mode 100644 index 0000000000..cc5ccecf4b --- /dev/null +++ b/x11/misc/xkeyboard-config/pspec.xml @@ -0,0 +1,108 @@ + + + + + xkeyboard-config + http://freedesktop.org/wiki/Software/XKeyboardConfig + + PisiLinux Community + admins@pisilinux.org + + MIT + data + X keyboard configuration database + xkeyboard-config aims to provide consistent and well-structured X keyboard configuration data for X Window System implementations. + mirrors://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.14.tar.bz2 + + intltool + xorg-proto + xorg-app + libxslt-devel + libX11-devel + + + xkeyboard-config-1.4-jp-tilde.patch + + + + + xkeyboard-config + + xorg-app + libxslt + libX11 + + + /etc/X11/xorg.conf.d + /lib/udev/rules.d + /usr/share/X11/xkb + /usr/share/doc + /usr/share/locale + /usr/share/pkgconfig + /usr/share/man + + + 10-keyboard.conf + 95-xkb.rules + + + + + + 2015-05-14 + 2.14 + Release bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2015-01-29 + 2.14 + Version bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2015-01-21 + 2.13 + Version bump. + Ergün Salman + poyraz76@pisilinux.org + + + 2014-08-31 + 2.12 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2014-05-15 + 2.11 + Version bump. + Alihan Öztürk + alihan@pisilinux.org + + + 2013-08-25 + 2.9 + Release bump. + Marcin Bojara + marcin@pisilinux.org + + + 2013-06-21 + 2.9 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2012-11-22 + 2.7 + First release + Marcin Bojara + marcin@pisilinux.org + + + diff --git a/x11/misc/xkeyboard-config/translations.xml b/x11/misc/xkeyboard-config/translations.xml new file mode 100644 index 0000000000..53003d279c --- /dev/null +++ b/x11/misc/xkeyboard-config/translations.xml @@ -0,0 +1,8 @@ + + + + xkeyboard-config + X klavye yapılandırma veritabanı + xkeyboard-config, X Pencere Sistemi için tutarlı ve iyi tasarlanmış X klavye yapılandırma verisi sağlamayı amaçlar. + +