vim: resolve the conflict with (n)vi, remove vi vpkg support.

This commit is contained in:
Juan RP 2012-07-15 01:08:37 +02:00
parent 9965ac1fcb
commit 2294d16d0f
2 changed files with 11 additions and 6 deletions

View file

@ -3,11 +3,9 @@ pkgname=vim
_distver=7.3
_patchver=600
version=${_distver}.${_patchver}
revision=2
revision=3
nofetch=yes
noextract=yes
provides="vi-$version"
replaces="vi>=0"
subpackages="vim-common vim-x11 gvim"
depends="vim-common>=$version"
makedepends="mercurial ncurses-devel acl-devel pkg-config libXt-devel gtk+-devel"
@ -39,7 +37,8 @@ do_configure() {
--disable-rubyinterp --disable-cscope --disable-workshop \
--disable-netbeans --disable-sniff --disable-gpm \
--disable-hangulinput --disable-xim --enable-multibyte \
--with-tlib=ncursesw"
--with-tlib=ncursesw --with-ex-name=vim-ex \
--with-view-name=vim-view"
# Normal version.
cd $wrksrc
@ -65,4 +64,9 @@ do_build() {
do_install() {
make DESTDIR=$DESTDIR install
# Create vim-ex symlink.
cd ${DESTDIR}/usr/bin && ln -sf vim vim-ex
rm -f ${DESTDIR}/usr/bin/{ex,view}
find ${DESTDIR}/usr/share/man -type f -name evim.1 -delete
}

View file

@ -1,7 +1,7 @@
# Template file for 'vim-x11'.
#
provides="vi-${version} vim-${version}"
replaces="vim>=0 vi>=0"
provides="vim-${version}"
replaces="vim>=0"
short_desc="VI iMproved - X11 version"
long_desc="${long_desc}
@ -10,5 +10,6 @@ long_desc="${long_desc}
do_install() {
cd $wrksrc/vim-x11
make DESTDIR=$DESTDIR install
rm -f ${DESTDIR}/usr/bin/{ex,view}
rm -rf $DESTDIR/usr/share
}