Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7762 - (show annotations) (download)
Tue May 31 17:27:43 2011 UTC (13 years ago) by niro
File size: 1178 byte(s)
-fixed SRC_URI
1 # $Id$
2
3 PNAME="xkeyboard-config"
4 PVER="2.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.40
15 >= dev-util/intltool-0.41"
16
17 sminclude xorg mtools
18
19 UP2SUBDIR="data/xkeyboard-config"
20 UP2DATE="updatecmd_xorg ${PNAME}"
21
22 src_compile()
23 {
24 cd ${SRCDIR}
25
26 mconfigure \
27 --with-xkb-base=/usr/share/X11/xkb \
28 --enable-compat-rules \
29 --disable-xkbcomp-symlink \
30 --with-xkb-rules-symlink=xorg \
31 || die
32
33 mmake || die
34 }
35
36 src_install()
37 {
38 cd ${SRCDIR}
39 mmake DESTDIR=${BINDIR} install || die
40 }
41
42 preinstall()
43 {
44 if [[ -n $(magequery -n xkbdata) ]]
45 then
46 echo "Please uninstall 'x11-misc/xkbdata' first."
47 die "xkbdata found"
48 fi
49
50 # remove some stale directories, or things screw up
51 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
52 if [[ -d ${DIR} ]]
53 then
54 echo "Please remove the directory '${DIR}' first."
55 die "'${DIR}' found"
56 fi
57
58 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
59 if [[ -d ${PC} ]]
60 then
61 echo "Please remove the directory '${PC}' first."
62 die "'${PC}' found"
63 fi
64 }