Magellan Linux

Annotation of /trunk/extras/xkeyboard-config/xkeyboard-config-2.25-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31616 - (hide annotations) (download)
Tue Dec 4 14:30:17 2018 UTC (5 years, 5 months ago) by niro
File size: 1186 byte(s)
auto added: ver bump to 2.25-r1
1 niro 31616 # $Id$
2    
3     PNAME="xkeyboard-config"
4     PVER="2.25"
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/perl-xml-parser-2.40
14     >= dev-util/intltool-0.50"
15    
16     UP2SUBDIR="data/${PNAME}"
17     sminclude xorg mtools
18    
19     SRC_URI=(
20     http://xorg.freedesktop.org/archive/individual/data/${PNAME}/${SRCFILE}
21     mirror://${PNAME}/${SRCFILE}
22     )
23    
24     src_compile()
25     {
26     cd ${SRCDIR}
27    
28     mconfigure \
29     --with-xkb-base=/usr/share/X11/xkb \
30     --enable-compat-rules \
31     --disable-xkbcomp-symlink \
32     --with-xkb-rules-symlink=xorg \
33     --disable-runtime-deps \
34     || die
35    
36     mmake || die
37     }
38    
39     preinstall()
40     {
41     if [[ -n $(magequery -n xkbdata) ]]
42     then
43     echo "Please uninstall 'x11-misc/xkbdata' first."
44     die "xkbdata found"
45     fi
46    
47     # remove some stale directories, or things screw up
48     local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
49     if [[ -d ${DIR} ]]
50     then
51     echo "Please remove the directory '${DIR}' first."
52     die "'${DIR}' found"
53     fi
54    
55     local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
56     if [[ -d ${PC} ]]
57     then
58     echo "Please remove the directory '${PC}' first."
59     die "'${PC}' found"
60     fi
61     }