Commit | Line | Data |
---|---|---|
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 | |
4 | # Ach Maintainer: CRUX ARM System Team | |
5 | # Depends on: ncurses | |
6 | ||
7 | name=vim | |
8 | version=7.2.160 | |
9 | release=1 | |
10 | source=(ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2 \ | |
11 | http://svn.cross-lfs.org/svn/repos/cross-lfs/branches/clfs-sysroot/patches/$name-${version%.*}-branch_update-11.patch) | |
12 | ||
13 | build () { | |
14 | cd vim72 | |
15 | patch -p1 -i $SRC/$name-${version%.*}-branch_update-11.patch | |
16 | cd src | |
17 | ||
18 | cat > auto/config.cache << EOF | |
19 | vim_cv_getcwd_broken=no | |
20 | vim_cv_memmove_handles_overlap=yes | |
21 | vim_cv_stat_ignores_slash=no | |
22 | vim_cv_terminfo=yes | |
23 | vim_cv_tgent=zero | |
24 | vim_cv_toupper_broken=no | |
25 | vim_cv_tty_group=world | |
26 | ac_cv_sizeof_int=4 | |
27 | EOF | |
28 | ||
29 | ./configure --build=$CHOST \ | |
30 | --host=$CTARGET \ | |
31 | --prefix=/usr \ | |
32 | --mandir=/usr/man \ | |
33 | --with-vim-name=vim \ | |
34 | --with-features=normal \ | |
35 | --with-x=no \ | |
36 | --with-tlib=ncurses \ | |
37 | --enable-gui=no \ | |
38 | --enable-multibyte \ | |
39 | --disable-gtktest \ | |
40 | --disable-xim \ | |
41 | --disable-netbeans \ | |
42 | --disable-gpm \ | |
43 | --disable-nls | |
44 | ||
45 | make VIMRTDIR= DESTDIR=$PKG install | |
46 | ||
47 | mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc | |
48 | rm -rf $PKG/usr/man/man?/vimtutor* $PKG/usr/share/vim/tutor $PKG/usr/share/vim/macros | |
49 | rm $PKG/usr/share/vim/*/README.txt | |
50 | ln -sf vim $PKG/usr/bin/evim | |
51 | ln -sf vim $PKG/usr/bin/vi | |
52 | ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz | |
53 | ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz | |
54 | ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz | |
55 | ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz | |
56 | ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz | |
57 | ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz | |
58 | } |