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 | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
16689a21 | 5 | # Depends on: ncurses acl |
6dca1d21 JB |
6 | |
7 | name=vim | |
23d09ed9 | 8 | version=7.4.890 |
6dca1d21 | 9 | release=1 |
a1362674 | 10 | source=(http://crux.nu/files/distfiles/$name-$version.tar.xz) |
6dca1d21 JB |
11 | |
12 | build () { | |
a1362674 | 13 | cd $name-$version/src |
6dca1d21 | 14 | |
93b71f3b | 15 | cat > auto/config.cache << EOF |
6dca1d21 JB |
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 | |
93b71f3b | 24 | vim_cv_toupper_broken=no |
6dca1d21 JB |
25 | EOF |
26 | ||
93b71f3b VM |
27 | ./configure --build=$CHOST \ |
28 | --host=$CTARGET \ | |
29 | --prefix=/usr \ | |
93b71f3b | 30 | --with-vim-name=vim \ |
93b71f3b | 31 | --with-tlib=ncurses \ |
23d09ed9 | 32 | --without-x \ |
f106a764 | 33 | --disable-gui \ |
f106a764 | 34 | --enable-multibyte \ |
93b71f3b VM |
35 | --disable-gpm \ |
36 | --disable-nls \ | |
37 | --cache-file=$SRC/src/auto/config.cache | |
38 | ||
f106a764 | 39 | make VIMRTDIR= |
23d09ed9 | 40 | make -j1 VIMRTDIR= DESTDIR=$PKG install |
93b71f3b VM |
41 | |
42 | mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc | |
23d09ed9 | 43 | rm -r $PKG/usr/{share/man/man?/vimtutor*,share/vim/{tutor,macros}} |
93b71f3b VM |
44 | rm $PKG/usr/share/vim/*/README.txt |
45 | ln -sf vim $PKG/usr/bin/evim | |
46 | ln -sf /bin/vi $PKG/usr/bin/vi | |
23d09ed9 VM |
47 | ln -sf vim.1.gz $PKG/usr/share/man/man1/ex.1.gz |
48 | ln -sf vim.1.gz $PKG/usr/share/man/man1/vi.1.gz | |
49 | ln -sf vim.1.gz $PKG/usr/share/man/man1/rvim.1.gz | |
50 | ln -sf vim.1.gz $PKG/usr/share/man/man1/view.1.gz | |
51 | ln -sf vim.1.gz $PKG/usr/share/man/man1/rview.1.gz | |
52 | ln -sf vim.1.gz $PKG/usr/share/man/man1/gvim.1.gz | |
6dca1d21 | 53 | |
93b71f3b VM |
54 | ./configure --build=$CHOST \ |
55 | --host=$CTARGET \ | |
56 | --prefix=/ \ | |
b9e0f1fd | 57 | --datarootdir=/usr/share \ |
93b71f3b | 58 | --with-vim-name=vi \ |
b9e0f1fd VM |
59 | --without-x \ |
60 | --with-tlib=ncurses \ | |
61 | --disable-gui \ | |
93b71f3b VM |
62 | --enable-multibyte \ |
63 | --disable-gpm \ | |
64 | --disable-nls \ | |
93b71f3b | 65 | --with-features=tiny |
6dca1d21 | 66 | |
f106a764 VM |
67 | make VIMRTDIR= |
68 | make VIMRTDIR= DESTDIR=$PKG installvimbin | |
6dca1d21 | 69 | } |