Magellan Linux

Annotation of /trunk/core/vim/vim-7.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3670 - (hide annotations) (download)
Thu Oct 29 09:49:02 2009 UTC (14 years, 7 months ago) by niro
File size: 3283 byte(s)
auto added: ver bump to 7.2-r4
1 niro 3667 # $Id$
2    
3     PNAME="vim"
4     PVER="7.2"
5     PBUILD="r4"
6    
7     PATCH_LEVEL="267"
8    
9     PCATEGORIE="app-editors"
10     STATE="unstable"
11    
12     DESCRIPTION="Vi IMproved!"
13     HOMEPAGE="http://www.vim.org/"
14    
15     DEPEND=">= sys-libs/ncurses-5.7"
16    
17     SDEPEND=">= sys-apps/sed-4
18     >= sys-dev/automake-3
19     >= sys-dev/autoconf-4"
20    
21     PROVIDE="virtual/editor"
22    
23     SRCFILE="${PNAME}-${PVER}.tar.bz2"
24     SRCDIR="${BUILDDIR}/${PNAME}${PVER/.}"
25    
26     LINGUAS="${PNAME}-${PVER}-lang.tar.gz"
27    
28     sminclude mtools
29    
30     SRC_URI=(
31     ftp://ftp.vim.org/pub/vim/unix/${SRCFILE}
32     ftp://ftp.vim.org/pub/vim/extra/${LINGUAS}
33     mirror://${PNAME}/${SRCFILE}
34     mirror://${PNAME}/${LINGUAS}
35     $(for ((i=1;i <= PATCH_LEVEL; i++))
36     do
37     ver=00${i}
38     [[ ${i} -ge 10 ]] && ver=0${i}
39     [[ ${i} -ge 100 ]] && ver=${i}
40     echo "ftp://ftp.vim.org/pub/vim/patches/${PVER}/${PVER}.${ver}"
41     done)
42 niro 3670 mirror://${PNAME}/${PNAME}-${PVER}-attribute-1.patch
43 niro 3667 )
44    
45     UP2PVER="${PVER}.${PATCH_LEVEL}"
46     UP2DATE="updatecmd ${HOMEPAGE} | grep 'current version' | sed 's/.* \([0-9].*[0-9]\).*/\1/'"
47    
48     src_prepare()
49     {
50     munpack ${SRCFILE} || die
51     munpack ${LINGUAS} || die
52     cd ${SRCDIR}
53    
54     # # apply all upstream patches
55     local i
56     local ver
57     for ((i=1; i <= PATCH_LEVEL; i++))
58     do
59     # excludes (patches for extra and non linux only)
60     [[ ${i} = 7 ]] && continue # amiga dos os2 vms
61     [[ ${i} = 36 ]] && continue # win32
62     [[ ${i} = 41 ]] && continue # mac
63     [[ ${i} = 49 ]] && continue # win32
64     [[ ${i} = 71 ]] && continue # extras
65     [[ ${i} = 72 ]] && continue # extras
66     [[ ${i} = 74 ]] && continue # mac
67     [[ ${i} = 88 ]] && continue # win32
68     [[ ${i} = 89 ]] && continue # win32
69     [[ ${i} = 93 ]] && continue # win32
70     [[ ${i} = 101 ]] && continue # win32
71     [[ ${i} = 138 ]] && continue # amiga dos os2 vms
72     [[ ${i} = 150 ]] && continue # extras
73 niro 3668 [[ ${i} = 172 ]] && continue # win32
74 niro 3669 [[ ${i} = 173 ]] && continue # extras
75     [[ ${i} = 191 ]] && continue # extras
76     [[ ${i} = 194 ]] && continue # extras
77     [[ ${i} = 204 ]] && continue # extras
78     [[ ${i} = 205 ]] && continue # win32
79     [[ ${i} = 212 ]] && continue # mac
80     [[ ${i} = 216 ]] && continue # win32
81     [[ ${i} = 219 ]] && continue # amiga dos os2 vms
82     [[ ${i} = 233 ]] && continue # win32
83     [[ ${i} = 247 ]] && continue # win32
84     [[ ${i} = 248 ]] && continue # win32
85     [[ ${i} = 250 ]] && continue # extras
86     [[ ${i} = 260 ]] && continue # amiga dos os2 vms
87 niro 3667
88     ver=00${i}
89     [[ ${i} -ge 10 ]] && ver=0${i}
90     [[ ${i} -ge 100 ]] && ver=${i}
91    
92     mpatch ${PVER}.${ver} || die
93     done
94    
95 niro 3669 # fixes compile issues
96     # see http://www.mail-archive.com/clfs-dev@lists.cross-lfs.org/msg01399.html
97     mpatch ${PNAME}-${PVER}-attribute-1.patch || die
98    
99 niro 3667 # fix location of vinmrc config file
100     echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h || die
101     echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h || die
102     }
103    
104     src_compile()
105     {
106     cd ${SRCDIR}
107    
108     mconfigure --with-features=huge --without-x --disable-gui || die
109     mmake || die
110     }
111    
112     src_install()
113     {
114     cd ${SRCDIR}
115    
116     # some needed directories
117     minstalldir /etc || die
118    
119     make install \
120     DESTDIR=${BINDIR} \
121     BINDIR=/usr/bin \
122     MANDIR=/usr/share/man \
123     DATADIR=/usr/share || die
124    
125     # enables the old-fashioned vi mode
126     mlink vim /usr/bin/vi || die
127    
128     # we want run vim in its own mode not in vi mode
129     cat > ${BINDIR}/etc/vimrc << "EOF"
130     set nocompatible
131     set backspace=2
132     syntax on
133     EOF
134    
135     minstalldocs README* || die
136     }

Properties

Name Value
svn:keywords Id