2006-02-23 16:26:10 +01:00
|
|
|
# Description: A popular vi clone that features syntax highlighting
|
|
|
|
# URL: http://www.vim.org/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Packager: CRUX System Team, core-ports at crux dot nu
|
2006-05-09 18:50:29 +02:00
|
|
|
# Maintainer: CRUX core developers, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
# Depends on: ncurses
|
|
|
|
|
|
|
|
name=vim
|
2006-05-09 18:50:29 +02:00
|
|
|
version=7.0
|
2007-04-19 18:22:16 +02:00
|
|
|
release=7
|
2006-09-24 11:55:58 +02:00
|
|
|
source=(ftp://ftp.vim.org/pub/vim/unix/vim-$version.tar.bz2 \
|
2007-04-19 18:22:16 +02:00
|
|
|
http://jue.li/crux/files/$name-7.0.001-109.tar.gz \
|
|
|
|
http://jue.li/crux/files/$name-7.0.110-224.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
2006-05-09 18:50:29 +02:00
|
|
|
cd $name${version/\./}
|
2006-09-24 11:55:58 +02:00
|
|
|
|
2007-04-19 18:22:16 +02:00
|
|
|
for p in $SRC/$name-7.0.{001-109,110-224}/*; do
|
2006-09-24 11:55:58 +02:00
|
|
|
patch -p0 -i $p
|
|
|
|
done
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
cd src
|
|
|
|
./configure --prefix=/usr \
|
2007-04-19 18:22:16 +02:00
|
|
|
--with-vim-name=vim \
|
|
|
|
--with-x=no \
|
|
|
|
--enable-gui=no \
|
|
|
|
--enable-multibyte \
|
|
|
|
--disable-gpm \
|
|
|
|
--disable-nls
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
make VIMRTDIR=
|
|
|
|
make VIMRTDIR= DESTDIR=$PKG installvimbin installruntime installlinks
|
2006-09-24 11:55:58 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
|
2006-05-09 18:58:17 +02:00
|
|
|
rm -rf $PKG/usr/man/man?/vimtutor* $PKG/usr/share/vim/tutor $PKG/usr/share/vim/macros
|
2006-09-24 11:55:58 +02:00
|
|
|
rm $PKG/usr/share/vim/*/README.txt
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -sf vim $PKG/usr/bin/evim
|
2007-02-21 13:05:38 +01:00
|
|
|
ln -sf /bin/vi $PKG/usr/bin/vi
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz
|
2007-02-16 12:43:21 +01:00
|
|
|
|
|
|
|
./configure --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
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|