1 # Contributor: Osily <ly50247{at}gmail{dot}com>
8 pkgdesc="Vim compiled without gui, without deps on vi/vim, ruby and desktop utils, supports x clipboard."
10 license=('custom:vim')
11 url="http://www.vim.org"
12 depends=('libxt' 'gtk2')
13 makedepends=('wget' 'sed' 'grep' 'python2' 'perl' 'gzip')
14 provides=(${_realname})
16 source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2)
17 md5sums=('5b9510a17074e2b37d8bb38ae09edbf2')
20 cd ${srcdir}/vim$(echo ${_srcver} | sed "s/\.//")
21 wget ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.*
22 for x in `ls 7.3.*`; do patch -p0 -i $x; done
25 sed -i -e 's|vi_cv_path_python, python|vi_cv_path_python, python2|' \
26 ${srcdir}/vim73/src/configure.in
27 (cd ${srcdir}/vim73/src && autoconf)
29 ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
30 --with-features=big --disable-gui \
31 --with-x=auto --disable-gpm \
32 --with-global-runtime=/usr/share/vim \
33 --enable-multibyte --enable-cscope \
34 --enable-perlinterp --enable-pythoninterp
37 make VIMRCLOC=/etc DESTDIR=${pkgdir} install
40 rm -f ex view rview xxd vimtutor
41 find ${pkgdir}/usr/share/man -type d -name 'man1' 2>/dev/null | \
42 while read _mandir; do
44 rm -f ex.1 view.1 vimtutor.1 xxd.1
48 sed -i 's|messages,/var|messages,/var/log/messages.log,/var|' \
49 ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/filetype.vim
51 sed -i "s/rpmsave/pacsave/;s/rpmnew/pacnew/;s/,\*\.ebuild/\0,PKGBUILD*,*.install/" \
52 ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/filetype.vim
53 sed -i "/find the end/,+3{s/changelog_date_entry_search/changelog_date_end_entry_search/}" \
54 ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/ftplugin/changelog.vim
57 install -Dm644 ${srcdir}/vim$(echo ${_srcver} | sed "s/\.//")/runtime/doc/uganda.txt\
58 ${pkgdir}/usr/share/licenses/${_realname}/license.txt