blob: 82201fd0f688a53f822da8dc9aa57de9bad3b57d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
description="Highly configurable text editor."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.vim.org/"
depends=(ncurses acl)
name=vim
version=7.3.50
release=1
source=(ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 http://crux.nu/files/distfiles/vim-7.3.001-050.xz)
build ()
{
cd vim73/src;
unxz -c $SRC/vim-7.3.*.xz | patch -p0 -d $SRC/vim73;
./configure \
${CBUILD:+--build=${CBUILD}} \
${CHOST:+--host=${CHOST}} \
--prefix=$prefix \
--mandir=$mandir \
--with-vim-name=vim \
--with-x=no \
--enable-gui=no \
--enable-multibyte \
$(use_enable gpm) \
$(use_enable nls);
make VIMRTDIR=;
make VIMRTDIR= DESTDIR=$PKG installvimbin installruntime installlinks;
mv $PKG$prefix/share/vim/vimrc_example.vim $PKG$prefix/share/vim/vimrc;
rm -r $PKG$prefix/{${mandir/$prefix}/man?/vimtutor*,share/vim/{tutor,macros}};
rm $PKG$prefix/share/vim/*/README.txt;
ln -sf vim $PKG$prefix/bin/evim;
ln -sf /bin/vi $PKG$prefix/bin/vi;
ln -sf vim.1.gz $PKG$mandir/man1/ex.1.gz;
ln -sf vim.1.gz $PKG$mandir/man1/vi.1.gz;
ln -sf vim.1.gz $PKG$mandir/man1/rvim.1.gz;
ln -sf vim.1.gz $PKG$mandir/man1/view.1.gz;
ln -sf vim.1.gz $PKG$mandir/man1/rview.1.gz;
ln -sf vim.1.gz $PKG$mandir/man1/gvim.1.gz;
./configure \
${CBUILD:+--build=${CBUILD}} \
${CHOST:+--host=${CHOST}} \
--prefix=/ \
--with-vim-name=vi \
--with-x=no \
--enable-gui=no \
--enable-multibyte \
--disable-gpm \
--disable-nls \
--with-features=tiny;
make VIMRTDIR= DESTDIR=$PKG installvimbin
}
|