CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
rsync: added missing files
[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, crux-arm at mikeux dot dyndns dot org
5 # Depends on: ncurses
6
7 name=vim
8 version=7.2.350
9 release=1
10 source=(ftp://ftp.vim.org/pub/vim/unix/vim-${version%.*}.tar.bz2 \
11 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-extra.tar.gz \
12 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-lang.tar.gz \
13 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.001-100.gz \
14 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.101-200.gz \
15 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.201-300.gz \
16 http://crux.nu/files/distfiles/vim-7.2.301-350.xz)
17
18 build () {
19 cd vim72/src
20
21 gunzip -c $SRC/${version%.*}.*.gz | patch -p0 -d $SRC/vim72
22 unxz -c $SRC/vim-${version%.*}.*.xz | patch -p0 -d $SRC/vim72
23
24 cat > auto/config.cache << EOF
25 vim_cv_getcwd_broken=no
26 vim_cv_memmove_handles_overlap=yes
27 vim_cv_stat_ignores_slash=no
28 vim_cv_terminfo=yes
29 vim_cv_tgent=zero
30 vim_cv_toupper_broken=no
31 vim_cv_tty_group=world
32 ac_cv_sizeof_int=4
33 EOF
34
35 ./configure --build=$CHOST \
36 --host=$CTARGET \
37 --prefix=/usr \
38 --mandir=/usr/man \
39 --with-vim-name=vim \
40 --with-features=normal \
41 --with-x=no \
42 --with-tlib=ncurses \
43 --enable-gui=no \
44 --enable-multibyte \
45 --disable-gtktest \
46 --disable-xim \
47 --disable-netbeans \
48 --disable-gpm \
49 --disable-nls
50
51 make VIMRTDIR= DESTDIR=$PKG install
52
53 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
54 rm -rf $PKG/usr/man/man?/vimtutor* $PKG/usr/share/vim/tutor $PKG/usr/share/vim/macros
55 rm $PKG/usr/share/vim/*/README.txt
56 ln -sf vim $PKG/usr/bin/evim
57 ln -sf vim $PKG/usr/bin/vi
58 ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
59 ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
60 ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
61 ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
62 ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
63 ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz
64 }