CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dcron: updated to 4.4
[crossrootfs.git] / vim / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Highly configurable text editor
2# URL: http://www.vim.org/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
516b0ac1 4# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6dca1d21
JB
5# Depends on: ncurses
6
7name=vim
7d6ac2a0 8version=7.2.300
6dca1d21 9release=1
7d6ac2a0
JB
10source=(ftp://ftp.vim.org/pub/vim/unix/vim-${version%.*}.tar.bz2 \
11 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-extra.tar.gz \
12 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-lang.tar.gz \
13 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.001-100.gz \
14 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.101-200.gz \
15 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.201-300.gz)
6dca1d21
JB
16
17build () {
7d6ac2a0
JB
18 cd vim72/src
19
20 gunzip -c $SRC/${version%.*}.*.gz | patch -p0 -d $SRC/vim72
6dca1d21
JB
21
22 cat > auto/config.cache << EOF
23vim_cv_getcwd_broken=no
24vim_cv_memmove_handles_overlap=yes
25vim_cv_stat_ignores_slash=no
26vim_cv_terminfo=yes
27vim_cv_tgent=zero
28vim_cv_toupper_broken=no
29vim_cv_tty_group=world
30ac_cv_sizeof_int=4
31EOF
32
33 ./configure --build=$CHOST \
34 --host=$CTARGET \
35 --prefix=/usr \
36 --mandir=/usr/man \
37 --with-vim-name=vim \
38 --with-features=normal \
39 --with-x=no \
40 --with-tlib=ncurses \
41 --enable-gui=no \
42 --enable-multibyte \
43 --disable-gtktest \
44 --disable-xim \
45 --disable-netbeans \
46 --disable-gpm \
47 --disable-nls
48
49 make VIMRTDIR= DESTDIR=$PKG install
50
51 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
52 rm -rf $PKG/usr/man/man?/vimtutor* $PKG/usr/share/vim/tutor $PKG/usr/share/vim/macros
53 rm $PKG/usr/share/vim/*/README.txt
54 ln -sf vim $PKG/usr/bin/evim
55 ln -sf vim $PKG/usr/bin/vi
56 ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
57 ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
58 ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
59 ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
60 ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
61 ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz
62}