CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
vim: updated to 7.4.316
[crossrootfs.git] / vim / Pkgfile
1 # Description: Highly configurable text editor
2 # URL: http://www.vim.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: ncurses acl
6
7 name=vim
8 version=7.4.316
9 release=1
10 source=(http://crux.nu/files/distfiles/$name-$version.tar.xz)
11
12 build () {
13 cd $name-$version/src
14
15 cat > auto/config.cache << EOF
16 vim_cv_getcwd_broken=no
17 vim_cv_memmove_handles_overlap=yes
18 vim_cv_stat_ignores_slash=no
19 vim_cv_terminfo=yes
20 vim_cv_tgent=zero
21 vim_cv_toupper_broken=no
22 vim_cv_tty_group=world
23 ac_cv_sizeof_int=4
24 vim_cv_toupper_broken=no
25 EOF
26
27 ./configure --build=$CHOST \
28 --host=$CTARGET \
29 --prefix=/usr \
30 --mandir=/usr/man \
31 --with-vim-name=vim \
32 --without-x \
33 --with-tlib=ncurses \
34 --disable-gui \
35 --enable-multibyte \
36 --disable-gpm \
37 --disable-nls \
38 --cache-file=$SRC/src/auto/config.cache
39
40 make VIMRTDIR=
41 make VIMRTDIR= DESTDIR=$PKG installvimbin installruntime installlinks
42
43 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
44 rm -r $PKG/usr/{man/man?/vimtutor*,share/vim/{tutor,macros}}
45 rm $PKG/usr/share/vim/*/README.txt
46 ln -sf vim $PKG/usr/bin/evim
47 ln -sf /bin/vi $PKG/usr/bin/vi
48 ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
49 ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
50 ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
51 ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
52 ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
53 ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz
54
55 ./configure --build=$CHOST \
56 --host=$CTARGET \
57 --prefix=/ \
58 --datarootdir=/usr/share \
59 --with-vim-name=vi \
60 --without-x \
61 --with-tlib=ncurses \
62 --disable-gui \
63 --enable-multibyte \
64 --disable-gpm \
65 --disable-nls \
66 --with-features=tiny
67
68 make VIMRTDIR=
69 make VIMRTDIR= DESTDIR=$PKG installvimbin
70 }