Magellan Linux

Annotation of /branches/R11-stable/extras/xkeyboard-config/xkeyboard-config-2.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21907 - (hide annotations) (download)
Mon Jul 21 10:34:22 2014 UTC (9 years, 9 months ago) by niro
File size: 1189 byte(s)
-release branches/R11-stable
1 niro 21394 # $Id$
2    
3     PNAME="xkeyboard-config"
4     PVER="2.12"
5     PBUILD="r1"
6    
7     PCAT="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.50"
15    
16     sminclude xorg mtools
17    
18     SRC_URI=(
19     http://xorg.freedesktop.org/archive/individual/data/${PNAME}/${SRCFILE}
20     mirror://${PNAME}/${SRCFILE}
21     )
22    
23     UP2SUBDIR="data/${PNAME}"
24     UP2DATE="updatecmd_xorg ${PNAME}"
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     preinstall()
41     {
42     if [[ -n $(magequery -n xkbdata) ]]
43     then
44     echo "Please uninstall 'x11-misc/xkbdata' first."
45     die "xkbdata found"
46     fi
47    
48     # remove some stale directories, or things screw up
49     local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
50     if [[ -d ${DIR} ]]
51     then
52     echo "Please remove the directory '${DIR}' first."
53     die "'${DIR}' found"
54     fi
55    
56     local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
57     if [[ -d ${PC} ]]
58     then
59     echo "Please remove the directory '${PC}' first."
60     die "'${PC}' found"
61     fi
62     }