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 7763 - (show annotations) (download)
Tue May 31 17:35:05 2011 UTC (13 years ago) by niro
File size: 1105 byte(s)
-removed unneccessary src_install()
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 preinstall()
37 {
38 if [[ -n $(magequery -n xkbdata) ]]
39 then
40 echo "Please uninstall 'x11-misc/xkbdata' first."
41 die "xkbdata found"
42 fi
43
44 # remove some stale directories, or things screw up
45 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
46 if [[ -d ${DIR} ]]
47 then
48 echo "Please remove the directory '${DIR}' first."
49 die "'${DIR}' found"
50 fi
51
52 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
53 if [[ -d ${PC} ]]
54 then
55 echo "Please remove the directory '${PC}' first."
56 die "'${PC}' found"
57 fi
58 }