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 9170 - (show annotations) (download)
Tue Nov 8 17:28:44 2011 UTC (12 years, 6 months ago) by niro
File size: 1211 byte(s)
-upstream changed src_uri again
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 # upstream changed src_uri again
19 SRC_URI=(
20 http://xorg.freedesktop.org/archive/individual/data/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2SUBDIR="data"
25 UP2DATE="updatecmd_xorg ${PNAME}"
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30
31 mconfigure \
32 --with-xkb-base=/usr/share/X11/xkb \
33 --enable-compat-rules \
34 --disable-xkbcomp-symlink \
35 --with-xkb-rules-symlink=xorg \
36 || die
37
38 mmake || die
39 }
40
41 preinstall()
42 {
43 if [[ -n $(magequery -n xkbdata) ]]
44 then
45 echo "Please uninstall 'x11-misc/xkbdata' first."
46 die "xkbdata found"
47 fi
48
49 # remove some stale directories, or things screw up
50 local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
51 if [[ -d ${DIR} ]]
52 then
53 echo "Please remove the directory '${DIR}' first."
54 die "'${DIR}' found"
55 fi
56
57 local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
58 if [[ -d ${PC} ]]
59 then
60 echo "Please remove the directory '${PC}' first."
61 die "'${PC}' found"
62 fi
63 }