vim: update to 7.4.193.
This commit is contained in:
parent
9e6585cdcc
commit
fe0e291f10
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'vim'
|
# Template file for 'vim'
|
||||||
pkgname=vim
|
pkgname=vim
|
||||||
_distver=7.4
|
_distver=7.4
|
||||||
_patchver=169
|
_patchver=193
|
||||||
version=${_distver}.${_patchver}
|
version=${_distver}.${_patchver}
|
||||||
revision=3
|
revision=1
|
||||||
hostmakedepends="mercurial pkg-config"
|
hostmakedepends="mercurial pkg-config"
|
||||||
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel
|
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel
|
||||||
desktop-file-utils hicolor-icon-theme ruby-devel python-devel lua-devel perl"
|
desktop-file-utils hicolor-icon-theme ruby-devel python-devel lua-devel perl"
|
||||||
|
@ -13,33 +13,38 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.vim.org"
|
homepage="http://www.vim.org"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
|
||||||
|
VIM_SUBPKGS="vim-x11 gvim"
|
||||||
|
# XXX vim-huge cannot be cross compiled for now.
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
VIM_SUBPKGS+=" vim-huge"
|
||||||
|
fi
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
local url="http://code.google.com/p/vim/"
|
local url="http://code.google.com/p/vim/"
|
||||||
hg clone -u v${_distver/./-}-${_patchver} ${url} ${pkgname}-${version}
|
hg clone -u v${_distver/./-}-${_patchver} ${url} ${pkgname}-${version}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
mkdir -p /tmp/vim-x11
|
for f in ${VIM_SUBPKGS}; do
|
||||||
cp -a $wrksrc/* /tmp/vim-x11
|
mkdir -p /tmp/${f}
|
||||||
mv /tmp/vim-x11 $wrksrc/
|
cp -a $wrksrc/* /tmp/${f}
|
||||||
mkdir -p /tmp/gvim
|
mv /tmp/${f} $wrksrc/${f}
|
||||||
cp -a $wrksrc/* /tmp/gvim
|
done
|
||||||
mv /tmp/gvim $wrksrc/gvim
|
|
||||||
mkdir -p /tmp/vim-huge
|
|
||||||
cp -a $wrksrc/* /tmp/vim-huge
|
|
||||||
mv /tmp/vim-huge $wrksrc/vim-huge
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
args+=" --disable-perlinterp --disable-pythoninterp
|
args="--enable-cscope --enable-multibyte --with-tlib=ncursesw
|
||||||
--disable-rubyinterp --disable-cscope --disable-workshop
|
--with-ex-name=vim-ex --with-view-name=vim-view"
|
||||||
|
|
||||||
|
nohuge_args="--disable-perlinterp --disable-pythoninterp
|
||||||
|
--disable-rubyinterp --disable-workshop
|
||||||
--disable-netbeans --disable-sniff --disable-gpm
|
--disable-netbeans --disable-sniff --disable-gpm
|
||||||
--disable-hangulinput --disable-xim --enable-multibyte
|
--disable-hangulinput --disable-xim"
|
||||||
--with-tlib=ncursesw --with-ex-name=vim-ex
|
|
||||||
--with-view-name=vim-view "
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" vim_cv_toupper_broken=no vim_cv_terminfo=yes
|
configure_args+="
|
||||||
|
--host=${XBPS_CROSS_TRIPLET}
|
||||||
|
vim_cv_toupper_broken=no vim_cv_terminfo=yes
|
||||||
vim_cv_tty_group=world vim_cv_getcwd_broken=no
|
vim_cv_tty_group=world vim_cv_getcwd_broken=no
|
||||||
vim_cv_stat_ignores_slash=yes
|
vim_cv_stat_ignores_slash=yes
|
||||||
vim_cv_memmove_handles_overlap=yes
|
vim_cv_memmove_handles_overlap=yes
|
||||||
|
@ -48,26 +53,28 @@ do_configure() {
|
||||||
|
|
||||||
# Normal version.
|
# Normal version.
|
||||||
cd $wrksrc
|
cd $wrksrc
|
||||||
./configure ${configure_args} ${args} --enable-gui=no --with-x=no
|
./configure ${configure_args} ${args} ${nohuge_args} --enable-gui=no --with-x=no
|
||||||
|
|
||||||
# X11 version.
|
# X11 version.
|
||||||
cd $wrksrc/vim-x11
|
cd $wrksrc/vim-x11
|
||||||
./configure ${configure_args} ${args} --enable-gui=no --with-x
|
./configure ${configure_args} ${args} ${nohuge_args} --enable-gui=no --with-x
|
||||||
|
|
||||||
# GTK+ version.
|
# GTK+ version.
|
||||||
cd $wrksrc/gvim
|
cd $wrksrc/gvim
|
||||||
./configure ${configure_args} ${args} --enable-gui=gtk2 --with-x --with-vim-name=gvim
|
./configure ${configure_args} ${args} ${nohuge_args} --enable-gui=gtk2 --with-x --with-vim-name=gvim
|
||||||
|
|
||||||
# Huge version.
|
# Huge version.
|
||||||
cd $wrksrc/vim-huge
|
cd $wrksrc/vim-huge
|
||||||
./configure ${configure_args} --with-features=huge --with-x=no --enable-gui=no
|
./configure ${configure_args} ${args} --with-x=no --enable-gui=no \
|
||||||
|
--with-features=huge --enable-perlinterp --enable-pythoninterp \
|
||||||
|
--enable-rubyinterp --enable-luainterp
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
cd $wrksrc
|
cd $wrksrc
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
|
||||||
for f in vim-x11 gvim; do
|
for f in ${VIM_SUBPKGS}; do
|
||||||
cd $wrksrc/$f
|
cd $wrksrc/$f
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
done
|
done
|
||||||
|
@ -120,8 +127,11 @@ gvim_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# XXX disabled for cross builds.
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
|
||||||
vim-huge_package() {
|
vim-huge_package() {
|
||||||
depends="vim-common-${version}_${revision}"
|
depends="python vim-common-${version}_${revision}"
|
||||||
short_desc+=" - Huge (all features enabled)"
|
short_desc+=" - Huge (all features enabled)"
|
||||||
provides="vim-${version}_${revision}"
|
provides="vim-${version}_${revision}"
|
||||||
replaces="vim>=0"
|
replaces="vim>=0"
|
||||||
|
@ -132,3 +142,5 @@ vim-huge_package() {
|
||||||
rm -rf $PKGDESTDIR/usr/share
|
rm -rf $PKGDESTDIR/usr/share
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue