summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavoz@gentoo.org>2004-03-23 18:40:32 +0000
committerGustavo Zacarias <gustavoz@gentoo.org>2004-03-23 18:40:32 +0000
commitcf8f1e45203990d64850d9cbcf07d4633350b77f (patch)
tree3509d54948dc0ae2855740913932fef8350f3971 /x11-libs/libxklavier
parentchangelog fix (Manifest recommit) (diff)
downloadgentoo-2-cf8f1e45203990d64850d9cbcf07d4633350b77f.tar.gz
gentoo-2-cf8f1e45203990d64850d9cbcf07d4633350b77f.tar.bz2
gentoo-2-cf8f1e45203990d64850d9cbcf07d4633350b77f.zip
keyworded ~sparc, imported keymap workaround
Diffstat (limited to 'x11-libs/libxklavier')
-rw-r--r--x11-libs/libxklavier/ChangeLog6
-rw-r--r--x11-libs/libxklavier/files/sun-keymaps.patch24
-rw-r--r--x11-libs/libxklavier/files/sun.xml183
-rw-r--r--x11-libs/libxklavier/libxklavier-1.00.ebuild14
4 files changed, 224 insertions, 3 deletions
diff --git a/x11-libs/libxklavier/ChangeLog b/x11-libs/libxklavier/ChangeLog
index d22b87964856..acb8e593ffd2 100644
--- a/x11-libs/libxklavier/ChangeLog
+++ b/x11-libs/libxklavier/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-libs/libxklavier
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/ChangeLog,v 1.3 2004/03/22 09:10:18 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/ChangeLog,v 1.4 2004/03/23 18:40:32 gustavoz Exp $
+
+ 23 Mar 2004; Gustavo Zacarias <gustavoz@gentoo.org> libxklavier-1.00.ebuild,
+ files/sun-keymaps.patch, files/sun.xml:
+ keyworded ~sparc, imported keymap workaround
19 Mar 2004; David Holm <dholm@gentoo.org> libxklavier-1.00.ebuild:
Added to ~ppc.
diff --git a/x11-libs/libxklavier/files/sun-keymaps.patch b/x11-libs/libxklavier/files/sun-keymaps.patch
new file mode 100644
index 000000000000..80e19d38eece
--- /dev/null
+++ b/x11-libs/libxklavier/files/sun-keymaps.patch
@@ -0,0 +1,24 @@
+diff -Nura libxklavier-1.00/libxklavier/xklavier_config_xkb.c libxklavier-1.00.sun/libxklavier/xklavier_config_xkb.c
+--- libxklavier-1.00/libxklavier/xklavier_config_xkb.c 2004-01-20 20:28:22.000000000 -0300
++++ libxklavier-1.00.sun/libxklavier/xklavier_config_xkb.c 2004-03-23 11:56:10.000000000 -0300
+@@ -16,16 +16,16 @@
+ #include <X11/extensions/XKM.h>
+ #endif
+
+-#define RULES_FILE "xfree86"
++#define RULES_FILE "sun"
+
+ #define RULES_PATH ( XKB_BASE "/rules/" RULES_FILE )
+
+-#define XML_CFG_PATH ( XKB_BASE "/rules/xfree86.xml" )
++#define XML_CFG_PATH ( XKB_BASE "/rules/sun.xml" )
+
+ // For "bad" X servers we hold our own copy
+-#define XML_CFG_FALLBACK_PATH ( DATA_DIR "/xfree86.xml" )
++#define XML_CFG_FALLBACK_PATH ( DATA_DIR "/sun.xml" )
+
+-#define MULTIPLE_LAYOUTS_CHECK_PATH ( XKB_BASE "/symbols/pc/en_US" )
++#define MULTIPLE_LAYOUTS_CHECK_PATH ( XKB_BASE "/symbols/sun/us" )
+
+ #define XK_XKB_KEYS
+ #include <X11/keysymdef.h>
diff --git a/x11-libs/libxklavier/files/sun.xml b/x11-libs/libxklavier/files/sun.xml
new file mode 100644
index 000000000000..bb7c9220abe5
--- /dev/null
+++ b/x11-libs/libxklavier/files/sun.xml
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd">
+<xkbConfigRegistry>
+ <modelList>
+ <model>
+ <configItem>
+ <name>type4</name>
+ <description>Sun type4</description>
+ </configItem>
+ </model>
+ <model>
+ <configItem>
+ <name>type5</name>
+ <description>Sun type5</description>
+ </configItem>
+ </model>
+ <model>
+ <configItem>
+ <name>type5_euro</name>
+ <description>Sun type5 with euro symbol</description>
+ </configItem>
+ </model>
+ <model>
+ <configItem>
+ <name>type5_unix</name>
+ <description>Sun type5 unix</description>
+ </configItem>
+ </model>
+ </modelList>
+ <layoutList>
+ <layout>
+ <configItem>
+ <name>us</name>
+ <description>U.S. English</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>en_US</name>
+ <description>U.S. English w/ ISO8859-3</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>de</name>
+ <description>German</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>es</name>
+ <description>Spanish</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>fi</name>
+ <description>Finnish</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>fr</name>
+ <description>French</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>no</name>
+ <description>Norweigan</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>pl</name>
+ <description>Polish</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>ru</name>
+ <description>Russian</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>se</name>
+ <description>Swedish</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ <layout>
+ <configItem>
+ <name>uk</name>
+ <description>U.K. English</description>
+ </configItem>
+ <variantList/>
+ </layout>
+ </layoutList>
+ <optionList>
+ <group allowMultipleSelection="true">
+ <configItem>
+ <name>grp</name>
+ <description>Group Shift/Lock behavior</description>
+ </configItem>
+ <option>
+ <configItem>
+ <name>grp:switch</name>
+ <description>R-Alt switches group while pressed</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>grp:toggle</name>
+ <description>Right Alt key changes group</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>grp:caps_toggle</name>
+ <description>Caps Lock key changes group</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>grp:shift_toggle</name>
+ <description>Both Shift keys together change group</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>grp:ctrl_shift_toggle</name>
+ <description>Control+Shift changes group</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>grp:ctrl_alt_toggle</name>
+ <description>Alt+Control changes group</description>
+ </configItem>
+ </option>
+ </group>
+ <group allowMultipleSelection="false">
+ <configItem>
+ <name>ctrl</name>
+ <description>Control Key Position</description>
+ </configItem>
+ <option>
+ <configItem>
+ <name>ctrl:nocaps</name>
+ <description>Make CapsLock an additional Control</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>ctrl:swapcaps</name>
+ <description>Swap Control and Caps Lock</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>ctrl:ctrl_ac</name>
+ <description>Control key at left of 'A'</description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>ctrl:ctrl_aa</name>
+ <description>Control key at bottom left</description>
+ </configItem>
+ </option>
+ </group>
+ </optionList>
+</xkbConfigRegistry>
diff --git a/x11-libs/libxklavier/libxklavier-1.00.ebuild b/x11-libs/libxklavier/libxklavier-1.00.ebuild
index a85309e99a1d..930ec7115e40 100644
--- a/x11-libs/libxklavier/libxklavier-1.00.ebuild
+++ b/x11-libs/libxklavier/libxklavier-1.00.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/libxklavier-1.00.ebuild,v 1.2 2004/03/19 07:21:31 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/libxklavier-1.00.ebuild,v 1.3 2004/03/23 18:40:32 gustavoz Exp $
DESCRIPTION="High level XKB library"
HOMEPAGE="http://www.freedesktop.org/Software/LibXklavier"
@@ -8,7 +8,7 @@ SRC_URI="mirror://sourceforge/gswitchit/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
-KEYWORDS="~x86 ~ppc"
+KEYWORDS="~x86 ~ppc ~sparc"
IUSE="doc"
RDEPEND="virtual/x11
@@ -18,6 +18,13 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( app-doc/doxygen )"
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ [ `use sparc` ] && epatch ${FILESDIR}/sun-keymaps.patch
+}
+
src_compile() {
econf `use_enable doc doxygen` || die
@@ -29,6 +36,9 @@ src_install() {
einstall || die
+ insinto /usr/share/libxklavier
+ [ `use sparc` ] && doins ${FILESDIR}/sun.xml
+
dodoc "AUTHORS COPYING* CREDITS ChangeLog INSTALL NEWS README"
}