vim: update to 7.3.600; merge vim-x11 and gvim as subpkgs.

This commit is contained in:
Juan RP
2012-07-13 11:06:22 +02:00
parent 644891aeb2
commit 22f39831c5
11 changed files with 88 additions and 72 deletions

View File

@@ -1,29 +1,66 @@
# Template file for 'vim'
pkgname=vim
_distver=7.3
_patchver=515
_patchver=600
version=${_distver}.${_patchver}
build_style=gnu-configure
configure_args="--disable-perlinterp --disable-pythoninterp --disable-rubyinterp
--disable-cscope --disable-workshop --disable-netbeans --disable-sniff
--disable-gpm --disable-hangulinput --disable-xim --enable-gui=no
--without-x --enable-multibyte --with-tlib=ncursesw"
depends="vim-common>=7.3.515"
makedepends="mercurial ncurses-devel acl-devel"
revision=1
nofetch=yes
noextract=yes
subpackages="vim-common vim-x11 gvim"
depends="vim-common>=$version"
makedepends="mercurial ncurses-devel acl-devel pkg-config libXt-devel gtk+-devel"
short_desc="Vim editor (vi clone)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.vim.org"
license=""
long_desc="
Vim is an almost compatible version of the UNIX editor Vi. Many new features
have been added: multi level undo, syntax highlighting, command line history,
on-line help, filename completion, block operations, etc."
nofetch=yes
noextract=yes
subpackages="vim-common"
do_fetch() {
local url="http://code.google.com/p/vim/"
hg clone -u v7-3-${_patchver} ${url} ${pkgname}-${version}
}
pre_configure() {
mkdir -p /tmp/vim-x11
cp -a $wrksrc/* /tmp/vim-x11
mv /tmp/vim-x11 $wrksrc/
mkdir -p /tmp/gvim
cp -a $wrksrc/* /tmp/gvim
mv /tmp/gvim $wrksrc/gvim
}
do_configure() {
local sharedargs="--disable-perlinterp --disable-pythoninterp \
--disable-rubyinterp --disable-cscope --disable-workshop \
--disable-netbeans --disable-sniff --disable-gpm \
--disable-hangulinput --disable-xim --enable-multibyte \
--with-tlib=ncursesw"
# Normal version.
cd $wrksrc
./configure ${CONFIGURE_SHARED_ARGS} ${sharedargs} \
--enable-gui=no --with-x=no
# X11 version.
cd $wrksrc/vim-x11
./configure ${CONFIGURE_SHARED_ARGS} ${sharedargs} \
--enable-gui=no --with-x
# GTK+ version.
cd $wrksrc/gvim
./configure ${CONFIGURE_SHARED_ARGS} ${sharedargs} \
--enable-gui=gtk2 --with-x --with-vim-name=gvim
}
do_build() {
for f in "" vim-x11 gvim; do
cd $wrksrc/$f && make ${makejobs}
done
}
do_install() {
make DESTDIR=$DESTDIR install
}