Magellan Linux

Annotation of /branches/magellan-next/core/xkeyboard-config/xkeyboard-config-1.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6416 - (hide annotations) (download)
Mon Aug 23 18:01:00 2010 UTC (13 years, 9 months ago) by niro
File size: 1425 byte(s)
imported from trunk
1 niro 5441 # $Id$
2    
3     PNAME="xkeyboard-config"
4     PVER="1.9"
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://people.freedesktop.org/~svu/${SRCFILE}
21     #http://xlibs.freedesktop.org/xkbdesc/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     #UP2DATE="updatecmd http://xlibs.freedesktop.org/xkbdesc/ | grep ${PNAME}- | lasttarball"
26     UP2DATE="updatecmd http://people.freedesktop.org/~svu/ | grep ${PNAME}- | lasttarball"
27    
28     src_compile()
29     {
30     cd ${SRCDIR}
31    
32     mconfigure \
33     --with-xkb-base=/usr/share/X11/xkb \
34     --enable-compat-rules \
35     --disable-xkbcomp-symlink \
36     --with-xkb-rules-symlink=xorg \
37     || die
38    
39     mmake || die
40     }
41    
42     src_install()
43     {
44     cd ${SRCDIR}
45     mmake DESTDIR=${BINDIR} install || die
46     }
47    
48     preinstall()
49     {
50     if [[ -n $(magequery -n xkbdata) ]]
51     then
52     echo "Please uninstall 'x11-misc/xkbdata' first."
53     die "xkbdata found"
54     fi
55    
56     # remove some stale directories, or things screw up
57     local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb"
58     if [[ -d ${DIR} ]]
59     then
60     echo "Please remove the directory '${DIR}' first."
61     die "'${DIR}' found"
62     fi
63    
64     local PC="${MROOT}/usr/share/X11/xkb/symbols/pc"
65     if [[ -d ${PC} ]]
66     then
67     echo "Please remove the directory '${PC}' first."
68     die "'${PC}' found"
69     fi
70     }

Properties

Name Value
svn:keywords Id