CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.5 and aligned with upstream
[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
6
7 name=vim
8 version=7.3.154
9 release=1
10 source=(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
13 http://crux.nu/files/distfiles/vim-7.3.103-154.xz
14 vim-7.3-cross.diff)
15
16 build () {
17 cd vim73/src
18 unxz -c $SRC/vim-7.3.*.xz | patch -p0 -d $SRC/vim73
19 patch -p2 -i $SRC/vim-7.3-cross.diff
20
21 cat > auto/config.cache << EOF
22 vim_cv_getcwd_broken=no
23 vim_cv_memmove_handles_overlap=yes
24 vim_cv_stat_ignores_slash=no
25 vim_cv_terminfo=yes
26 vim_cv_tgent=zero
27 vim_cv_toupper_broken=no
28 vim_cv_tty_group=world
29 ac_cv_sizeof_int=4
30 vim_cv_toupper_broken=no
31 EOF
32
33 ./configure --build=$CHOST \
34 --host=$CTARGET \
35 --prefix=/usr \
36 --mandir=/usr/man \
37 --with-vim-name=vim \
38 --without-x \
39 --with-tlib=ncurses \
40 --disable-gui \
41 --disable-gtktest \
42 --disable-xim \
43 --disable-netbeans \
44 --enable-multibyte \
45 --disable-gpm \
46 --disable-nls \
47 --cache-file=$SRC/src/auto/config.cache
48
49 make VIMRTDIR=
50 make VIMRTDIR= DESTDIR=$PKG installvimbin installruntime installlinks
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
63
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
75
76 make VIMRTDIR=
77 make VIMRTDIR= DESTDIR=$PKG installvimbin
78 }