Annotation of /branches/R11-stable/extras/xkeyboard-config/xkeyboard-config-2.14-r1.smage2
Parent Directory | Revision Log
Revision 24137 -
(hide annotations)
(download)
Fri Feb 20 09:08:55 2015 UTC (9 years, 2 months ago) by niro
File size: 1154 byte(s)
Fri Feb 20 09:08:55 2015 UTC (9 years, 2 months ago) by niro
File size: 1154 byte(s)
-release branches/R11-stable
1 | niro | 23749 | # $Id$ |
2 | |||
3 | PNAME="xkeyboard-config" | ||
4 | PVER="2.14" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="x11-misc" | ||
8 | |||
9 | DESCRIPTION="X Keyboard Configuration Database." | ||
10 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" | ||
11 | |||
12 | DEPEND=">= x11-apps/xkbcomp-1" | ||
13 | SDEPEND=">= dev-perl/xml-parser-2.40 | ||
14 | >= dev-util/intltool-0.50" | ||
15 | |||
16 | UP2SUBDIR="data/${PNAME}" | ||
17 | sminclude xorg mtools | ||
18 | |||
19 | SRC_URI=( | ||
20 | http://xorg.freedesktop.org/archive/individual/data/${PNAME}/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | src_compile() | ||
25 | { | ||
26 | cd ${SRCDIR} | ||
27 | |||
28 | mconfigure \ | ||
29 | --with-xkb-base=/usr/share/X11/xkb \ | ||
30 | --enable-compat-rules \ | ||
31 | --disable-xkbcomp-symlink \ | ||
32 | --with-xkb-rules-symlink=xorg \ | ||
33 | || die | ||
34 | |||
35 | mmake || die | ||
36 | } | ||
37 | |||
38 | preinstall() | ||
39 | { | ||
40 | if [[ -n $(magequery -n xkbdata) ]] | ||
41 | then | ||
42 | echo "Please uninstall 'x11-misc/xkbdata' first." | ||
43 | die "xkbdata found" | ||
44 | fi | ||
45 | |||
46 | # remove some stale directories, or things screw up | ||
47 | local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb" | ||
48 | if [[ -d ${DIR} ]] | ||
49 | then | ||
50 | echo "Please remove the directory '${DIR}' first." | ||
51 | die "'${DIR}' found" | ||
52 | fi | ||
53 | |||
54 | local PC="${MROOT}/usr/share/X11/xkb/symbols/pc" | ||
55 | if [[ -d ${PC} ]] | ||
56 | then | ||
57 | echo "Please remove the directory '${PC}' first." | ||
58 | die "'${PC}' found" | ||
59 | fi | ||
60 | } |