CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
kbd: updated to 1.15.3 and aligned with upstream
[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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on: ncurses
6
7name=vim
f106a764 8version=7.3.154
6dca1d21 9release=1
93b71f3b
VM
10source=(ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
11 http://crux.nu/files/distfiles/vim-7.3.001-050.xz
12 http://crux.nu/files/distfiles/vim-7.3.051-102.xz
f106a764 13 http://crux.nu/files/distfiles/vim-7.3.103-154.xz
93b71f3b 14 vim-7.3-cross.diff)
6dca1d21
JB
15
16build () {
93b71f3b 17 cd vim73/src
93b71f3b 18 unxz -c $SRC/vim-7.3.*.xz | patch -p0 -d $SRC/vim73
f106a764 19 patch -p2 -i $SRC/vim-7.3-cross.diff
6dca1d21 20
93b71f3b 21 cat > auto/config.cache << EOF
6dca1d21
JB
22vim_cv_getcwd_broken=no
23vim_cv_memmove_handles_overlap=yes
24vim_cv_stat_ignores_slash=no
25vim_cv_terminfo=yes
26vim_cv_tgent=zero
27vim_cv_toupper_broken=no
28vim_cv_tty_group=world
29ac_cv_sizeof_int=4
93b71f3b 30vim_cv_toupper_broken=no
6dca1d21
JB
31EOF
32
93b71f3b
VM
33 ./configure --build=$CHOST \
34 --host=$CTARGET \
35 --prefix=/usr \
36 --mandir=/usr/man \
37 --with-vim-name=vim \
f106a764 38 --without-x \
93b71f3b 39 --with-tlib=ncurses \
f106a764 40 --disable-gui \
93b71f3b
VM
41 --disable-gtktest \
42 --disable-xim \
43 --disable-netbeans \
f106a764 44 --enable-multibyte \
93b71f3b
VM
45 --disable-gpm \
46 --disable-nls \
47 --cache-file=$SRC/src/auto/config.cache
48
f106a764
VM
49 make VIMRTDIR=
50 make VIMRTDIR= DESTDIR=$PKG installvimbin installruntime installlinks
93b71f3b
VM
51
52 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
53 rm -r $PKG/usr/{man/man?/vimtutor*,share/vim/{tutor,macros}}
54 rm $PKG/usr/share/vim/*/README.txt
55 ln -sf vim $PKG/usr/bin/evim
56 ln -sf /bin/vi $PKG/usr/bin/vi
57 ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
58 ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
59 ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
60 ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
61 ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
62 ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz
6dca1d21 63
93b71f3b
VM
64 ./configure --build=$CHOST \
65 --host=$CTARGET \
66 --prefix=/ \
67 --with-vim-name=vi \
68 --with-x=no \
69 --enable-gui=no \
70 --enable-multibyte \
71 --disable-gpm \
72 --disable-nls \
73 --with-tlib=ncurses \
74 --with-features=tiny
6dca1d21 75
f106a764
VM
76 make VIMRTDIR=
77 make VIMRTDIR= DESTDIR=$PKG installvimbin
6dca1d21 78}