[arch-commits] Commit in vim/trunk (PKGBUILD)

Thomas Dziedzic td123 at nymeria.archlinux.org
Sat May 24 15:06:41 UTC 2014


    Date: Saturday, May 24, 2014 @ 17:06:38
  Author: td123
Revision: 213545

upgpkg: vim 7.4.307-1

bump and add python3 support

Modified:
  vim/trunk/PKGBUILD

----------+
 PKGBUILD |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 62 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-24 11:30:12 UTC (rev 213544)
+++ PKGBUILD	2014-05-24 15:06:38 UTC (rev 213545)
@@ -4,10 +4,10 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgbase=vim
-pkgname=('vim' 'gvim' 'vim-runtime')
+pkgname=('vim' 'gvim' 'gvim-python3' 'vim-runtime')
 _topver=7.4
-_patchlevel=274
-__hgrev=075eea398fff
+_patchlevel=307
+__hgrev=54d96e3b2eec
 _versiondir="vim${_topver//./}"
 pkgver=${_topver}.${_patchlevel}
 pkgrel=1
@@ -14,13 +14,13 @@
 arch=('i686' 'x86_64')
 license=('custom:vim')
 url="http://www.vim.org"
-makedepends=('gpm' 'python2' 'ruby' 'libxt' 'desktop-file-utils' 'gtk2' 'lua')
+makedepends=('gpm' 'python2' 'python' 'ruby' 'libxt' 'desktop-file-utils' 'gtk2' 'lua')
 source=("ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz"
         "ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz.sig"
         'vimrc'
         'archlinux.vim'
         'gvim.desktop')
-md5sums=('98bf9f8d57b95715d08fcc42beae8761'
+md5sums=('836c8b5bab883658c07b67cba445b667'
          'SKIP'
          'b9d4dcb9d3ee2e151dc4be1e94934f6a'
          '10353a61aadc3f276692d0e17db1478e'
@@ -67,6 +67,7 @@
   (cd vim-build/src && autoconf)
 
   cp -a vim-build gvim-build
+  cp -a vim-build gvim-python3-build
 
   cd "${srcdir}"/vim-build
 
@@ -111,6 +112,28 @@
     --enable-luainterp
 
   make
+
+  cd "${srcdir}"/gvim-python3-build
+
+  ./configure \
+    --prefix=/usr \
+    --localstatedir=/var/lib/vim \
+    --with-features=huge \
+    --with-compiledby='Arch Linux' \
+    --enable-gpm \
+    --enable-acl \
+    --with-x=yes \
+    --enable-gui=gtk2 \
+    --enable-multibyte \
+    --enable-cscope \
+    --enable-netbeans \
+    --enable-perlinterp \
+    --disable-pythoninterp \
+    --enable-python3interp \
+    --enable-rubyinterp \
+    --enable-luainterp
+
+  make
 }
 
 check() {
@@ -186,6 +209,40 @@
     "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
 }
 
+package_gvim-python3() {
+  pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI) with python 3 support'
+  depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'ruby' 'libxt'
+           'desktop-file-utils' 'gtk2' 'lua' 'python')
+  provides=("vim=${pkgver}-${pkgrel}")
+  conflicts=('vim')
+  install=gvim.install
+
+  cd "${srcdir}"/gvim-python3-build
+  make -j1 VIMRCLOC=/etc DESTDIR="${pkgdir}" install
+
+  # provided by (n)vi in core
+  rm "${pkgdir}"/usr/bin/{ex,view}
+
+  # delete some manpages
+  find "${pkgdir}"/usr/share/man -type d -name 'man1' 2>/dev/null | \
+    while read _mandir; do
+    cd ${_mandir}
+    rm -f ex.1 view.1 # provided by (n)vi
+  done
+
+  # Move the runtime for later packaging
+  mv "${pkgdir}"/usr/share/vim "${srcdir}"/runtime-install
+
+  # freedesktop links
+  install -Dm644 "${srcdir}"/gvim.desktop \
+    "${pkgdir}"/usr/share/applications/gvim.desktop
+  install -Dm644 runtime/vim48x48.png "${pkgdir}"/usr/share/pixmaps/gvim.png
+
+  # license
+   install -Dm644 "${srcdir}"/vim-${pkgver}/runtime/doc/uganda.txt \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
+}
+
 package_vim-runtime() {
   pkgdesc='Runtime for vim and gvim'
   depends=('perl' 'gawk')




More information about the arch-commits mailing list