Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3668 - (hide annotations) (download)
Thu Oct 29 08:05:34 2009 UTC (14 years, 6 months ago) by niro
File size: 2542 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     )
43    
44     UP2PVER="${PVER}.${PATCH_LEVEL}"
45     UP2DATE="updatecmd ${HOMEPAGE} | grep 'current version' | sed 's/.* \([0-9].*[0-9]\).*/\1/'"
46    
47     src_prepare()
48     {
49     munpack ${SRCFILE} || die
50     munpack ${LINGUAS} || die
51     cd ${SRCDIR}
52    
53     # # apply all upstream patches
54     local i
55     local ver
56     for ((i=1; i <= PATCH_LEVEL; i++))
57     do
58     # excludes (patches for extra and non linux only)
59     [[ ${i} = 7 ]] && continue # amiga dos os2 vms
60     [[ ${i} = 36 ]] && continue # win32
61     [[ ${i} = 41 ]] && continue # mac
62     [[ ${i} = 49 ]] && continue # win32
63     [[ ${i} = 71 ]] && continue # extras
64     [[ ${i} = 72 ]] && continue # extras
65     [[ ${i} = 74 ]] && continue # mac
66     [[ ${i} = 88 ]] && continue # win32
67     [[ ${i} = 89 ]] && continue # win32
68     [[ ${i} = 93 ]] && continue # win32
69     [[ ${i} = 101 ]] && continue # win32
70     [[ ${i} = 138 ]] && continue # amiga dos os2 vms
71     [[ ${i} = 150 ]] && continue # extras
72 niro 3668 [[ ${i} = 172 ]] && continue # win32
73 niro 3667
74     ver=00${i}
75     [[ ${i} -ge 10 ]] && ver=0${i}
76     [[ ${i} -ge 100 ]] && ver=${i}
77    
78     mpatch ${PVER}.${ver} || die
79     done
80    
81     # fix location of vinmrc config file
82     echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h || die
83     echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h || die
84     }
85    
86     src_compile()
87     {
88     cd ${SRCDIR}
89    
90     mconfigure --with-features=huge --without-x --disable-gui || die
91     mmake || die
92     }
93    
94     src_install()
95     {
96     cd ${SRCDIR}
97    
98     # some needed directories
99     minstalldir /etc || die
100    
101     make install \
102     DESTDIR=${BINDIR} \
103     BINDIR=/usr/bin \
104     MANDIR=/usr/share/man \
105     DATADIR=/usr/share || die
106    
107     # enables the old-fashioned vi mode
108     mlink vim /usr/bin/vi || die
109    
110     # we want run vim in its own mode not in vi mode
111     cat > ${BINDIR}/etc/vimrc << "EOF"
112     set nocompatible
113     set backspace=2
114     syntax on
115     EOF
116    
117     minstalldocs README* || die
118     }

Properties

Name Value
svn:keywords Id