Magellan Linux

Annotation of /trunk/core/kbd/kbd-1.15.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14219 - (hide annotations) (download)
Mon Dec 3 10:51:48 2012 UTC (11 years, 6 months ago) by niro
File size: 1339 byte(s)
-re-diffed es-po patch
1 niro 14217 # $Id$
2    
3     PNAME="kbd"
4     PVER="1.15.4"
5     PBUILD="r1"
6    
7     PCAT="sys-apps"
8    
9     DESCRIPTION="Keyboard and console utilities"
10     HOMEPAGE="http://freshmeat.net/projects/kbd/"
11    
12     DEPEND=">= virtual/glibc"
13     PROVIDE="virtual/kbd"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude mtools
19    
20     SRC_URI=(
21     http://ftp.altlinux.org/pub/people/legion/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23 niro 14219 mirror://${PNAME}/${PNAME}-${PVER}-fix-es.po.patch
24 niro 14217 )
25    
26     UP2DATE="updatecmd http://ftp.altlinux.org/pub/people/legion/kbd/'?M=A' | grep ${PNAME}-[0-9].* | lasttarball gz"
27    
28     src_prepare()
29     {
30     munpack ${SRCFILE} || die
31     cd ${SRCDIR}
32    
33     # compile fix
34 niro 14219 mpatch ${PNAME}-${PVER}-fix-es.po.patch || die
35 niro 14217
36     # rename conflicting keymaps to have unique names
37     # this should be removed when upstream adopts the change
38     mv data/keymaps/i386/dvorak/no{,-dvorak}.map || die
39     mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map || die
40     mv data/keymaps/i386/olpc/es{,-olpc}.map || die
41     mv data/keymaps/i386/olpc/pt{,-olpc}.map || die
42     mv data/keymaps/i386/qwerty/cz{,-qwerty}.map || die
43     }
44    
45     src_compile()
46     {
47     cd ${SRCDIR}
48    
49     mconfigure --enable-nls --exec-prefix=/usr || die
50     mmake || die
51     }
52    
53     src_install()
54     {
55     cd ${SRCDIR}
56     mmake DESTDIR=${BINDIR} install || die
57    
58     # docs
59     minstalldocs CHANGES COPYING CREDITS README || die
60    
61     # html docs
62     minstallhtml doc/*.html || die
63     }