2008-10-04 06:29:49 +02:00
|
|
|
# Template file for 'vim'
|
|
|
|
pkgname=vim
|
2010-11-09 03:46:37 +01:00
|
|
|
_distver=7.3
|
2012-12-08 17:43:46 +01:00
|
|
|
_patchver=754
|
2010-05-17 20:38:53 +02:00
|
|
|
version=${_distver}.${_patchver}
|
2012-09-07 13:06:22 +02:00
|
|
|
revision=1
|
2012-07-13 11:06:22 +02:00
|
|
|
subpackages="vim-common vim-x11 gvim"
|
|
|
|
depends="vim-common>=$version"
|
2012-10-22 14:04:30 +02:00
|
|
|
makedepends="mercurial ncurses-devel acl-devel pkg-config libXt-devel
|
|
|
|
gtk+-devel"
|
2008-10-01 01:01:18 +02:00
|
|
|
short_desc="Vim editor (vi clone)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-13 11:06:22 +02:00
|
|
|
homepage="http://www.vim.org"
|
|
|
|
license=""
|
2008-10-01 01:01:18 +02: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 05:32:40 +02:00
|
|
|
|
2012-10-22 14:04:30 +02:00
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_fetch() {
|
2012-01-07 16:18:11 +01:00
|
|
|
local url="http://code.google.com/p/vim/"
|
2011-10-14 19:24:20 +02:00
|
|
|
hg clone -u v7-3-${_patchver} ${url} ${pkgname}-${version}
|
2010-11-09 03:46:37 +01:00
|
|
|
}
|
2012-07-13 11:06:22 +02:00
|
|
|
|
|
|
|
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 \
|
2012-07-15 01:08:37 +02:00
|
|
|
--with-tlib=ncursesw --with-ex-name=vim-ex \
|
|
|
|
--with-view-name=vim-view"
|
2012-07-13 11:06:22 +02:00
|
|
|
|
|
|
|
# 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
|
2012-07-15 01:08:37 +02:00
|
|
|
# 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
|
2012-07-13 11:06:22 +02:00
|
|
|
}
|