summaryrefslogtreecommitdiff
path: root/libre/vim/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-11 16:41:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-01-11 16:46:09 -0300
commitb30e27a8d8c570d3b06ef13f78aa77a8df3b5b60 (patch)
tree2788261d719bed1f42874b6f5206ff67b7b88796 /libre/vim/PKGBUILD
parent1f3b2a6953e262149957043f61620097dd6f954a (diff)
downloadabslibre-b30e27a8d8c570d3b06ef13f78aa77a8df3b5b60.tar.gz
abslibre-b30e27a8d8c570d3b06ef13f78aa77a8df3b5b60.tar.bz2
abslibre-b30e27a8d8c570d3b06ef13f78aa77a8df3b5b60.zip
vim-7.4.1063-1.parabola1: updating version
* merge python3 support into {g,}vim package; FS#47500 -> https://bugs.archlinux.org/task/47500 * this allows to move Perl, Lua and Ruby into package optional dependencies. in the future it allows to eliminate vim-minimal package as its list of dependencies is the same as for vim.
Diffstat (limited to 'libre/vim/PKGBUILD')
-rw-r--r--libre/vim/PKGBUILD176
1 files changed, 39 insertions, 137 deletions
diff --git a/libre/vim/PKGBUILD b/libre/vim/PKGBUILD
index 2fd675401..589a211ad 100644
--- a/libre/vim/PKGBUILD
+++ b/libre/vim/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 257342 2015-12-28 22:05:35Z foutrelis $
+# $Id: PKGBUILD 257650 2016-01-08 21:26:32Z anatolik $
# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor (Arch): Thomas Dziedzic <gostrc@gmail.com>
# Contributor (Arch): Jan "heftig" Steffens <jan.steffens@gmail.com>
@@ -8,22 +8,20 @@
# Contributor: Márcio Silva <coadde@parabola.nu>
pkgbase=vim
-pkgname=(vim-minimal vim vim-python3 gvim gvim-python3 vim-runtime)
-pkgver=7.4.944
+pkgname=(vim-minimal vim gvim vim-runtime)
+pkgver=7.4.1063
_versiondir=74
-pkgrel=2.parabola1
+pkgrel=1.parabola1
arch=(i686 x86_64)
license=('custom:vim')
url='http://www.vim.org'
-makedepends=(gpm python2 python ruby libxt desktop-file-utils gtk2 lua)
+makedepends=(gpm python2 python ruby libxt desktop-file-utils gtk2 lua gawk)
source=(vim-$pkgver.tar.gz::http://github.com/vim/vim/archive/v$pkgver.tar.gz
vimrc
- parabola.vim
- gvim.desktop)
-sha1sums=('a670bd0a8417363d757341e1435474b42dd3ca75'
+ parabola.vim)
+sha1sums=('2efe8f5454b37ff234d93d1e146db2e616732753'
'7bacf26cb66f6c36184a62bc306ef33bfe892686'
- 'a72ca0f8d941ff221598091338d9c1bf75a3494b'
- '4a579cf66590d711f49c5dfb4a25e5df116ff7ba')
+ 'a72ca0f8d941ff221598091338d9c1bf75a3494b')
prepare() {
cd vim-$pkgver
@@ -58,7 +56,7 @@ build() {
--enable-multibyte \
--enable-cscope \
--disable-netbeans \
- --enable-perlinterp \
+ --disable-perlinterp \
--disable-pythoninterp \
--disable-python3interp \
--disable-rubyinterp \
@@ -80,7 +78,7 @@ build() {
--enable-multibyte \
--enable-cscope \
--disable-netbeans \
- --enable-perlinterp \
+ --disable-perlinterp \
--disable-pythoninterp \
--disable-python3interp \
--disable-rubyinterp \
@@ -102,33 +100,11 @@ build() {
--enable-multibyte \
--enable-cscope \
--enable-netbeans \
- --enable-perlinterp \
- --enable-pythoninterp \
- --disable-python3interp \
- --enable-rubyinterp \
- --enable-luainterp
-
- make
-
- cd "${srcdir}"/vim-python3-build
-
- ./configure \
- --prefix=/usr \
- --localstatedir=/var/lib/vim \
- --with-features=huge \
- --with-compiledby='Parabola GNU/Linux-libre' \
- --enable-gpm \
- --enable-acl \
- --with-x=no \
- --disable-gui \
- --enable-multibyte \
- --enable-cscope \
- --enable-netbeans \
- --enable-perlinterp \
- --disable-pythoninterp \
- --enable-python3interp \
- --enable-rubyinterp \
- --enable-luainterp
+ --enable-perlinterp=dynamic \
+ --enable-pythoninterp=dynamic \
+ --enable-python3interp=dynamic \
+ --enable-rubyinterp=dynamic \
+ --enable-luainterp=dynamic
make
@@ -146,33 +122,11 @@ build() {
--enable-multibyte \
--enable-cscope \
--enable-netbeans \
- --enable-perlinterp \
- --enable-pythoninterp \
- --disable-python3interp \
- --enable-rubyinterp \
- --enable-luainterp
-
- make
-
- cd "${srcdir}"/gvim-python3-build
-
- ./configure \
- --prefix=/usr \
- --localstatedir=/var/lib/vim \
- --with-features=huge \
- --with-compiledby='Parabola GNU/Linux-libre' \
- --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
+ --enable-perlinterp=dynamic \
+ --enable-pythoninterp=dynamic \
+ --enable-python3interp=dynamic \
+ --enable-rubyinterp=dynamic \
+ --enable-luainterp=dynamic
make
}
@@ -189,7 +143,7 @@ check() {
package_vim-minimal() {
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with a minimal set of dependencies)'
depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'acl')
- conflicts=('vim' 'vim-python3' 'gvim' 'gvim-python3')
+ conflicts=('vim' 'gvim')
provides=("vim=${pkgver}-${pkgrel}" "xxd")
cd "${srcdir}"/vim-minimal-build
@@ -216,9 +170,15 @@ package_vim-minimal() {
package_vim() {
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with support for additional scripting languages)'
- depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'ruby' 'lua' 'python2' 'acl')
- conflicts=('vim-minimal' 'vim-python3' 'gvim' 'gvim-python3')
- provides=("xxd")
+ depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'acl')
+ optdepends=('python2: Python 2 language support'
+ 'python: Python 3 language support'
+ 'ruby: Ruby language support'
+ 'lua: Lua language support'
+ 'perl: Perl language support')
+ conflicts=('vim-minimal' 'gvim')
+ provides=('xxd')
+ replaces=('vim-python3')
cd "${srcdir}"/vim-build
make -j1 VIMRCLOC=/etc DESTDIR="${pkgdir}" install
@@ -242,40 +202,17 @@ package_vim() {
"${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
}
-package_vim-python3() {
- pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with support for additional scripting languages)'
- depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'ruby' 'lua' 'python' 'acl')
- conflicts=('vim-minimal' 'vim' 'gvim' 'gvim-python3')
- provides=("vim=${pkgver}-${pkgrel}" "xxd")
-
- cd "${srcdir}"/vim-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
- rm -f evim.1 # this does not make sense if we have no GUI
- done
-
- # Runtime provided by runtime package
- rm -r "${pkgdir}"/usr/share/vim
-
- # license
- install -Dm644 runtime/doc/uganda.txt \
- "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
-}
-
package_gvim() {
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI)'
- depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'ruby' 'libxt'
- 'desktop-file-utils' 'gtk2' 'lua' 'python2')
+ depends=("vim-runtime=${pkgver}-${pkgrel}" 'gpm' 'libxt' 'desktop-file-utils' 'gtk2')
+ optdepends=('python2: Python 2 language support'
+ 'python: Python 3 language support'
+ 'ruby: Ruby language support'
+ 'lua: Lua language support'
+ 'perl: Perl language support')
provides=("vim=${pkgver}-${pkgrel}" "xxd")
- conflicts=('vim-minimal' 'vim' 'vim-python3' 'gvim-python3')
+ conflicts=('vim-minimal' 'vim')
+ replaces=('gvim-python3')
install=gvim.install
cd "${srcdir}"/gvim-build
@@ -295,42 +232,7 @@ package_gvim() {
rm -r "${pkgdir}"/usr/share/vim
# 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 runtime/doc/uganda.txt \
- "${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}" "gvim=${pkgver}-${pkgrel}" "xxd")
- conflicts=('vim-minimal' 'vim' 'vim-python3' 'gvim')
- 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
-
- # need to remove since this is provided by vim-runtime
- rm -r "${pkgdir}"/usr/share/vim
-
- # freedesktop links
- install -Dm644 "${srcdir}"/gvim.desktop \
- "${pkgdir}"/usr/share/applications/gvim.desktop
+ install -Dm644 runtime/gvim.desktop "${pkgdir}"/usr/share/applications/gvim.desktop
install -Dm644 runtime/vim48x48.png "${pkgdir}"/usr/share/pixmaps/gvim.png
# license