diff --git a/srcpkgs/vim/template b/srcpkgs/vim/template index 4a4704f7c9..11ec50e23a 100644 --- a/srcpkgs/vim/template +++ b/srcpkgs/vim/template @@ -1,23 +1,23 @@ # Template file for 'vim' pkgname=vim _distver=7.3 -_patchver=125 +_patchver=237 version=${_distver}.${_patchver} -wrksrc=vim73 -distfiles="ftp://ftp.vim.org/pub/vim/unix/$pkgname-${_distver}.tar.bz2" build_style=gnu_configure +build_wrksrc=vim73 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" short_desc="Vim editor (vi clone)" maintainer="Juan RP " -checksum=5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d 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" Add_dependency run glibc Add_dependency run ncurses-libs @@ -26,22 +26,11 @@ Add_dependency run vim-common ">=${version}" Add_dependency build glibc-devel Add_dependency build ncurses-devel Add_dependency build acl-devel +Add_dependency build mercurial -pre_configure() +do_fetch() { - local url="ftp://ftp.vim.org/pub/vim/patches/${_distver}" - - if [ "${_patchver}" -gt 000 ]; then - cd ${XBPS_SRCDISTDIR} || return 1 - for p in $(seq -w 001 ${_patchver}); do - [ -f ${XBPS_SRCDISTDIR}/${_distver}.${p} ] && continue - msg_normal " Fetching ${url}/${_distver}-$p patch...\n" - $XBPS_FETCH_CMD ${url}/${_distver}.$p 2>&1 - done - fi - cd ${wrksrc} - for p in $(seq -w 001 ${_patchver}); do - patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${_distver}.${p} && \ - msg_normal " Applied patch ${_distver}.$p.\n" - done + local url="https://vim.googlecode.com/hg" + cd ${wrksrc} + hg clone -u v7-3-${_patchver} ${url} ${build_wrksrc} }