2008-10-04 04:29:49 +00:00
|
|
|
# Template file for 'vim'
|
|
|
|
pkgname=vim
|
2010-11-09 02:46:37 +00:00
|
|
|
_distver=7.3
|
2011-01-18 18:48:12 +00:00
|
|
|
_patchver=102
|
2010-05-17 18:38:53 +00:00
|
|
|
version=${_distver}.${_patchver}
|
2010-11-09 02:46:37 +00:00
|
|
|
wrksrc=vim73
|
2010-05-17 18:38:53 +00:00
|
|
|
distfiles="ftp://ftp.vim.org/pub/vim/unix/$pkgname-${_distver}.tar.bz2"
|
2008-09-30 23:01:18 +00:00
|
|
|
build_style=gnu_configure
|
2009-12-07 07:33:54 +00:00
|
|
|
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"
|
2008-09-30 23:01:18 +00:00
|
|
|
short_desc="Vim editor (vi clone)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-11-09 02:46:37 +00:00
|
|
|
checksum=5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d
|
2008-09-30 23:01:18 +00:00
|
|
|
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."
|
2008-10-24 03:32:40 +00:00
|
|
|
|
2010-01-21 02:35:46 +00:00
|
|
|
subpackages="vim-common"
|
2009-12-07 07:33:54 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run ncursesw
|
|
|
|
Add_dependency run acl
|
2010-01-21 02:35:46 +00:00
|
|
|
Add_dependency run vim-common ">=${version}"
|
2009-12-07 07:33:54 +00:00
|
|
|
Add_dependency build glibc-devel
|
|
|
|
Add_dependency build ncursesw-devel
|
|
|
|
Add_dependency build acl-devel
|
2010-11-09 02:46:37 +00:00
|
|
|
|
|
|
|
pre_configure()
|
|
|
|
{
|
|
|
|
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
|
2010-12-19 23:22:12 +00:00
|
|
|
msg_normal " Fetching ${url}/${_distver}-$p patch...\n"
|
2010-11-09 02:46:37 +00:00
|
|
|
$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} && \
|
2010-12-19 23:22:12 +00:00
|
|
|
msg_normal " Applied patch ${_distver}.$p.\n"
|
2010-11-09 02:46:37 +00:00
|
|
|
done
|
|
|
|
}
|