Magellan Linux

Contents of /branches/magellan-next/core/xkeyboard-config/xkeyboard-config-2.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9168 - (show annotations) (download)
Tue Nov 8 17:18:07 2011 UTC (12 years, 5 months ago) by niro
File size: 1088 byte(s)
auto added: ver bump to 2.4.1-r1
1 # $Id$
2
3 PNAME="xkeyboard-config"
4 PVER="2.4.1"
5 PBUILD="r1"
6
7 PCATEGORIE="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.41"
15
16 sminclude xorg mtools
17
18 UP2SUBDIR="data/xkeyboard-config"
19 UP2DATE="updatecmd_xorg ${PNAME}"
20
21 src_compile()
22 {
23 cd ${SRCDIR}
24
25 mconfigure \
26 --with-xkb-base=/usr/share/X11/xkb \
27 --enable-compat-rules \
28 --disable-xkbcomp-symlink \
29 --with-xkb-rules-symlink=xorg \
30 || die
31
32 mmake || die
33 }
34
35 preinstall()
36 {
37 if [[ -n $(magequery -n xkbdata) ]]
38 then
39 echo "Please uninstall 'x11-misc/xkbdata' first."
40 die "xkbdata found"
41 fi
42
43 # remove some stale directories, or things screw up
44 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
45 if [[ -d ${DIR} ]]
46 then
47 echo "Please remove the directory '${DIR}' first."
48 die "'${DIR}' found"
49 fi
50
51 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
52 if [[ -d ${PC} ]]
53 then
54 echo "Please remove the directory '${PC}' first."
55 die "'${PC}' found"
56 fi
57 }