|
在vim 的邮件列表看到的
Hi,
if you are using Archlinux, you may be interested in PKGBUILD for
vim 7.2a BETA. I created it right now and it seems working. I'm using
a specially set of flags to ./configure so if you want to use this
PKGBUILD, you may have to change the flags. This PKGBUILD is hacked
version from ABS and is not so good -- do not use it if you dont know
exactly what are you doing!
So here is it..
################## PKGBUILD START ###################################x
pkgname=vim
pkgver=7.2a
pkgrel=1
pkgdesc="The world best editor ever!"
arch=(i686 x86_64)
license=('custom:vim')
url="http://www.vim.org"
depends=("vi>=7.1" 'perl' 'python' 'acl' 'gpm' 'libxt')
makedepends=('wget' 'sed' 'grep')
backup=(etc/vimrc)
source=(ftp://ftp.vim.org/pub/vim/unstable/unix/vim-7.2a.tar.bz2)
md5sums=('243c7c83fd834fef1e7eb9d55e592d3f')
build()
{
# Hardcored - bad..
cd ${startdir}/src/vim72a
sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
# Build party
# Do your own set of flags!! This is non standart set.
./configure --prefix=/usr --localstatedir=/var/lib/vim \
--with-compiledby=dum8d0g --with-features=big \
--with-x=yes --disable-gui \
--with-global-runtime=/usr/share/vim --with-vim-name=vim \
--enable-multibyte --enable-cscope \
--disable-perlinterp --disable-pythoninterp --disable-rubyinterp \
--disable-nls
make || return 1
make VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
cd ${startdir}/pkg/usr/bin
rm -f ex view rview xxd vimtutor
ln -s vitutor vimtutor
# delete the manpages/symlinks provided by vi package
find ${startdir}/pkg/usr/man -type d -name 'man1' 2> /dev/null |
while read mandir; do
cd ${mandir}
rm -f *.1
ln -s rvi.1.gz rvim.1.gz
ln -s vi.1.gz vim.1.gz
ln -s vidiff.1.gz vimdiff.1.gz
ln -s vitutor.1.gz vimtutor.1.gz
done
# kill the nobackup parts
sed -i '/vms/,+4 d' ${startdir}/pkg/usr/share/vim/vimrc_example.vim
install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \
${startdir}/pkg/etc/vimrc
# clean all settings and controls - served by vi package
rm -rf ${startdir}/pkg/usr/share
}
################## PKGBUILD STOP ###################################x
If you really want to use it you may do something like this..
cd /tmp
mkdir vim72a
cd vim72a
cat > PKGBUILD
...paste code above
^D
makepkg
# and if you are really sure
su -c "pacman -U /tmp/vim7.2a/vim-7.2a-1-i686.pkg.tar.gz
So good luck and go test vim 7.2a BETA !! :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~--- |
|