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 7761 - (show annotations) (download)
Tue May 31 17:26:14 2011 UTC (12 years, 11 months ago) by niro
File size: 1318 byte(s)
auto added: ver bump to 2.2.1-r1
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 SRC_URI=(
20 http://people.freedesktop.org/~svu/${SRCFILE}
21 #http://xlibs.freedesktop.org/xkbdesc/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2SUBDIR="data/xkeyboard-config"
26 UP2DATE="updatecmd_xorg ${PNAME}"
27
28 src_compile()
29 {
30 cd ${SRCDIR}
31
32 mconfigure \
33 --with-xkb-base=/usr/share/X11/xkb \
34 --enable-compat-rules \
35 --disable-xkbcomp-symlink \
36 --with-xkb-rules-symlink=xorg \
37 || die
38
39 mmake || die
40 }
41
42 src_install()
43 {
44 cd ${SRCDIR}
45 mmake DESTDIR=${BINDIR} install || die
46 }
47
48 preinstall()
49 {
50 if [[ -n $(magequery -n xkbdata) ]]
51 then
52 echo "Please uninstall 'x11-misc/xkbdata' first."
53 die "xkbdata found"
54 fi
55
56 # remove some stale directories, or things screw up
57 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
58 if [[ -d ${DIR} ]]
59 then
60 echo "Please remove the directory '${DIR}' first."
61 die "'${DIR}' found"
62 fi
63
64 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
65 if [[ -d ${PC} ]]
66 then
67 echo "Please remove the directory '${PC}' first."
68 die "'${PC}' found"
69 fi
70 }