Magellan Linux

Contents of /trunk/core/xkeyboard-config/xkeyboard-config-1.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (show annotations) (download)
Mon Oct 19 23:35:50 2009 UTC (14 years, 6 months ago) by niro
File size: 1289 byte(s)
auto added: ver bump to 1.7-r1
1 # $Id$
2
3 PNAME="xkeyboard-config"
4 PVER="1.7"
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.36
15 >= dev-util/intltool-0.40"
16
17 sminclude xorg mtools
18
19 SRC_URI=(
20 http://xlibs.freedesktop.org/xkbdesc/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd http://xlibs.freedesktop.org/xkbdesc/ | grep ${PNAME}- | lasttarball"
25
26 src_compile()
27 {
28 cd ${SRCDIR}
29
30 mconfigure \
31 --with-xkb-base=/usr/share/X11/xkb \
32 --enable-compat-rules \
33 --disable-xkbcomp-symlink \
34 --with-xkb-rules-symlink=xorg \
35 || die
36
37 mmake || die
38 }
39
40 src_install()
41 {
42 cd ${SRCDIR}
43 mmake DESTDIR=${BINDIR} install || die
44 }
45
46 preinstall()
47 {
48 if [[ -n $(magequery -n xkbdata) ]]
49 then
50 echo "Please uninstall 'x11-misc/xkbdata' first."
51 die "xkbdata found"
52 fi
53
54 # remove some stale directories, or things screw up
55 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
56 if [[ -d ${DIR} ]]
57 then
58 echo "Please remove the directory '${DIR}' first."
59 die "'${DIR}' found"
60 fi
61
62 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
63 if [[ -d ${PC} ]]
64 then
65 echo "Please remove the directory '${PC}' first."
66 die "'${PC}' found"
67 fi
68 }

Properties

Name Value
svn:keywords Id