Date: Monday, February 8, 2016 @ 00:43:12
  Author: foutrelis
Revision: 160545

archrelease: copy trunk to community-staging-any

Added:
  vim-jedi/repos/community-staging-any/
  vim-jedi/repos/community-staging-any/PKGBUILD
    (from rev 160544, vim-jedi/trunk/PKGBUILD)
  vim-jedi/repos/community-staging-any/vim-jedi.install
    (from rev 160544, vim-jedi/trunk/vim-jedi.install)

------------------+
 PKGBUILD         |   34 ++++++++++++++++++++++++++++++++++
 vim-jedi.install |   31 +++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

Copied: vim-jedi/repos/community-staging-any/PKGBUILD (from rev 160544, 
vim-jedi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2016-02-07 23:43:12 UTC (rev 160545)
@@ -0,0 +1,34 @@
+# Maintainer: Lukas Fleischer <[email protected]>
+# Contributor: Danilo Bargen <[email protected]>
+
+pkgname=vim-jedi
+_reponame=jedi-vim
+pkgver=0.8.0
+pkgrel=2
+pkgdesc='Vim plugin for jedi, an awesome Python autocompletion.'
+arch=('any')
+url="https://github.com/davidhalter/${_reponame}";
+license=('MIT')
+depends=('vim' 'python-jedi' 'python')
+optdepends=('vim-supertab: for tab completion'
+            'python2-jedi: for Python 2 support')
+groups=('vim-plugins')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/davidhalter/${_reponame}/archive/${pkgver}.tar.gz";)
+sha256sums=('d1f000b8c93c915a1bcc379a4784e68e58192747a6fddc992af04245f68743b6')
+install=${pkgname}.install
+
+package() {
+  cd "$srcdir/$_reponame-$pkgver"
+
+  install -d "${pkgdir}/usr/share/vim/vimfiles/doc"
+
+  cp -dp --no-preserve=ownership jedi_vim.py initialize.py 
"${pkgdir}/usr/share/vim/vimfiles/"
+  cp -dp --no-preserve=ownership doc/jedi-vim.txt 
"${pkgdir}/usr/share/vim/vimfiles/doc/"
+  cp -dpr --no-preserve=ownership after 
"${pkgdir}/usr/share/vim/vimfiles/after"
+  cp -dpr --no-preserve=ownership autoload 
"${pkgdir}/usr/share/vim/vimfiles/autoload"
+  cp -dpr --no-preserve=ownership ftplugin 
"${pkgdir}/usr/share/vim/vimfiles/ftplugin"
+  cp -dpr --no-preserve=ownership plugin 
"${pkgdir}/usr/share/vim/vimfiles/plugin"
+
+  # install license file
+  install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: vim-jedi/repos/community-staging-any/vim-jedi.install (from rev 160544, 
vim-jedi/trunk/vim-jedi.install)
===================================================================
--- community-staging-any/vim-jedi.install                              (rev 0)
+++ community-staging-any/vim-jedi.install      2016-02-07 23:43:12 UTC (rev 
160545)
@@ -0,0 +1,31 @@
+warn_nopy3() {
+       py3grep=`vim --version | grep "\+python3"`
+    if [ ${#py3grep} -le 1 ]
+    then
+        echo "-----------------------------------------------------"
+        echo -e "\e[1mWarning:\e[m"
+        echo "Your vim install doesn't seem to support Python 3."
+        echo "If that's the case you should install the python2 and 
python2-jedi packages."
+        echo "-----------------------------------------------------"
+    fi
+}
+
+update_helptags() {
+    printf "Updating vim help tags..."
+    vim -e -s -c "helptags /usr/share/vim/vimfiles/doc/" -c "quit"
+    printf "done\n"
+}
+
+post_install() {
+    update_helptags
+    warn_nopy3
+}
+
+post_upgrade() {
+    update_helptags
+    warn_nopy3
+}
+
+post_remove() {
+    update_helptags
+}

Reply via email to