Annotation of /smage/trunk/core/xkeyboard-config/xkeyboard-config-2.1-r1.smage2
Parent Directory | Revision Log
Revision 1406 -
(hide annotations)
(download)
Tue Mar 1 22:30:16 2011 UTC (13 years, 2 months ago) by niro
File size: 4428 byte(s)
Tue Mar 1 22:30:16 2011 UTC (13 years, 2 months ago) by niro
File size: 4428 byte(s)
auto added: ver bump to 2.1-r1
1 | niro | 1406 | # $Id$ |
2 | |||
3 | PNAME="xkeyboard-config" | ||
4 | PVER="2.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="x11-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="X Keyboard Configuration Database." | ||
11 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" | ||
12 | |||
13 | DEPEND=">= x11-apps/xkbcomp-1" | ||
14 | SDEPEND=">= dev-perl/xml-parser-2.36 | ||
15 | >= dev-util/intltool-0.40" | ||
16 | |||
17 | |||
18 | # files needed to compile a german pc105 keymap: | ||
19 | # niro@frost $ setxkbmap -v -v -v -v -v -model pc105 -print | ||
20 | # Setting verbose level to 8 | ||
21 | # Setting verbose level to 9 | ||
22 | # Setting verbose level to 10 | ||
23 | # locale is C | ||
24 | # Warning! Multiple definitions of keyboard model | ||
25 | # Using command line, ignoring X server | ||
26 | # Applied rules from xorg: | ||
27 | # model: pc105 | ||
28 | # layout: de | ||
29 | # Trying to build keymap using the following components: | ||
30 | # keycodes: xfree86+aliases(qwertz) | ||
31 | # types: complete | ||
32 | # compat: complete | ||
33 | # symbols: pc+de | ||
34 | # geometry: pc(pc105) | ||
35 | # xkb_keymap { | ||
36 | # xkb_keycodes { include "xfree86+aliases(qwertz)" }; | ||
37 | # xkb_types { include "complete" }; | ||
38 | # xkb_compat { include "complete" }; | ||
39 | # xkb_symbols { include "pc+de" }; | ||
40 | # xkb_geometry { include "pc(pc105)" }; | ||
41 | # }; | ||
42 | |||
43 | |||
44 | # complete include mapping: | ||
45 | # keycodes/xfree86 | ||
46 | # keycodes/aliases | ||
47 | # | ||
48 | # types/complete | ||
49 | # -> types/mousekeys | ||
50 | # -> types/pc | ||
51 | # -> types/iso9995 | ||
52 | # -> types/level5 | ||
53 | # -> types/extra | ||
54 | # -> types/numpad | ||
55 | # | ||
56 | # compat/complete | ||
57 | # -> compat/basic | ||
58 | # --> compat/ledcaps | ||
59 | # --> compar/lednum | ||
60 | # -> compat/iso9995 | ||
61 | # -> compat/mousekeys | ||
62 | # -> compat/accessx | ||
63 | # -> compat/misc | ||
64 | # --> compat/ledscroll | ||
65 | # -> compat/xfree86 | ||
66 | # -> compat/level5 | ||
67 | # | ||
68 | # symbols/pc | ||
69 | # -> symbols/keypad | ||
70 | # --> symbols/kpdl | ||
71 | # -> symbols/altwin | ||
72 | # symbols/de | ||
73 | # -> symbols/latin | ||
74 | # -> symbols/level3 | ||
75 | # -> symbols/us | ||
76 | # --> symbols/eurosign | ||
77 | # --> symbols/group | ||
78 | # | ||
79 | # rules/xorg | ||
80 | |||
81 | # keep only them | ||
82 | MCORE_ONLY_KEEP="usr/share/X11/xkb/keycodes.dir | ||
83 | usr/share/X11/xkb/keycodes/xfree86 | ||
84 | usr/share/X11/xkb/keycodes/aliases" | ||
85 | # evdev support | ||
86 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/keycodes/evdev" | ||
87 | |||
88 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/types.dir | ||
89 | usr/share/X11/xkb/types/mousekeys | ||
90 | usr/share/X11/xkb/types/pc | ||
91 | usr/share/X11/xkb/types/iso9995 | ||
92 | usr/share/X11/xkb/types/level5 | ||
93 | usr/share/X11/xkb/types/extra | ||
94 | usr/share/X11/xkb/types/numpad | ||
95 | usr/share/X11/xkb/types/default | ||
96 | usr/share/X11/xkb/types/complete | ||
97 | usr/share/X11/xkb/types/basic" | ||
98 | |||
99 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/compat.dir | ||
100 | usr/share/X11/xkb/compat/complete | ||
101 | usr/share/X11/xkb/compat/basic | ||
102 | usr/share/X11/xkb/compat/ledcaps | ||
103 | usr/share/X11/xkb/compat/lednum | ||
104 | usr/share/X11/xkb/compat/iso9995 | ||
105 | usr/share/X11/xkb/compat/mousekeys | ||
106 | usr/share/X11/xkb/compat/accessx | ||
107 | usr/share/X11/xkb/compat/misc | ||
108 | usr/share/X11/xkb/compat/ledscroll | ||
109 | usr/share/X11/xkb/compat/xfree86 | ||
110 | usr/share/X11/xkb/compat/level5" | ||
111 | |||
112 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/symbols.dir | ||
113 | usr/share/X11/xkb/symbols/pc | ||
114 | usr/share/X11/xkb/symbols/keypad | ||
115 | usr/share/X11/xkb/symbols/kpdl | ||
116 | usr/share/X11/xkb/symbols/altwin | ||
117 | usr/share/X11/xkb/symbols/de | ||
118 | usr/share/X11/xkb/symbols/latin | ||
119 | usr/share/X11/xkb/symbols/level3 | ||
120 | usr/share/X11/xkb/symbols/us | ||
121 | usr/share/X11/xkb/symbols/eurosign | ||
122 | usr/share/X11/xkb/symbols/group" | ||
123 | # evdev support | ||
124 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/symbols/inet" | ||
125 | |||
126 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/rules/base | ||
127 | usr/share/X11/xkb/rules/base.lst | ||
128 | usr/share/X11/xkb/rules/base.xml | ||
129 | usr/share/X11/xkb/rules/xorg | ||
130 | usr/share/X11/xkb/rules/xorg-it.lst | ||
131 | usr/share/X11/xkb/rules/xorg.lst | ||
132 | usr/share/X11/xkb/rules/xorg.xml" | ||
133 | # evdev support | ||
134 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/rules/evdev | ||
135 | usr/share/X11/xkb/rules/evdev.lst | ||
136 | usr/share/X11/xkb/rules/evdev.xml" | ||
137 | |||
138 | MCORE_ONLY_KEEP+=" usr/share/X11/xkb/geometry.dir | ||
139 | usr/share/X11/xkb/geometry/pc" | ||
140 | |||
141 | sminclude xorg mtools mcore-split | ||
142 | |||
143 | UP2SUBDIR="data/xkeyboard-config" | ||
144 | UP2DATE="updatecmd_xorg ${PNAME}" | ||
145 | |||
146 | src_compile() | ||
147 | { | ||
148 | cd ${SRCDIR} | ||
149 | |||
150 | mconfigure \ | ||
151 | --with-xkb-base=/usr/share/X11/xkb \ | ||
152 | --enable-compat-rules \ | ||
153 | --disable-xkbcomp-symlink \ | ||
154 | --with-xkb-rules-symlink=xorg \ | ||
155 | || die | ||
156 | |||
157 | mmake || die | ||
158 | } | ||
159 | |||
160 | preinstall() | ||
161 | { | ||
162 | if [[ -n $(magequery -n xkbdata) ]] | ||
163 | then | ||
164 | echo "Please uninstall 'x11-misc/xkbdata' first." | ||
165 | die "xkbdata found" | ||
166 | fi | ||
167 | |||
168 | # remove some stale directories, or things screw up | ||
169 | local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb" | ||
170 | if [[ -d ${DIR} ]] | ||
171 | then | ||
172 | echo "Please remove the directory '${DIR}' first." | ||
173 | die "'${DIR}' found" | ||
174 | fi | ||
175 | |||
176 | local PC="${MROOT}/usr/share/X11/xkb/symbols/pc" | ||
177 | if [[ -d ${PC} ]] | ||
178 | then | ||
179 | echo "Please remove the directory '${PC}' first." | ||
180 | die "'${PC}' found" | ||
181 | fi | ||
182 | } |