Browse Source

neovim: Fix malformed clipboard.vim patch

Fixes #1096.
android-5
Fredrik Fornwall 8 years ago
parent
commit
54acc39837
  1. 6
      packages/neovim/build.sh
  2. 4
      packages/neovim/runtime-autoload-provider-clipboard.vim.patch

6
packages/neovim/build.sh

@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://neovim.io/
TERMUX_PKG_DESCRIPTION="Ambitious Vim-fork focused on extensibility and agility (nvim)"
local _COMMIT=76ea97c809e50fccc5ca6615943ac6da1db1e030
TERMUX_PKG_VERSION=0.2.1~20170619
local _COMMIT=dcbeefcd23b8b54de7b2ae16fbf1af39ab91e480
TERMUX_PKG_VERSION=0.2.1~20170620
TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=36cfbc908457b953cbe9f49ed50b7745670d788d2256bef972e01ad6aa79c121
TERMUX_PKG_SHA256=47c44153e940c3fab51147118b1a06a0197c7b1f4cc3279329e32333ef3272ae
TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libvterm, libtermkey, libutil, liblua"
TERMUX_PKG_FOLDERNAME="neovim-$_COMMIT"
TERMUX_PKG_HOSTBUILD=true

4
packages/neovim/runtime-autoload-provider-clipboard.vim.patch

@ -1,7 +1,7 @@
diff -u -r ../neovim-76ea97c809e50fccc5ca6615943ac6da1db1e030/runtime/autoload/provider/clipboard.vim ./runtime/autoload/provider/clipboard.vim
--- ../neovim-76ea97c809e50fccc5ca6615943ac6da1db1e030/runtime/autoload/provider/clipboard.vim 2017-06-19 00:01:29.000000000 +0000
+++ ./runtime/autoload/provider/clipboard.vim 2017-06-19 20:10:55.376978820 +0000
@@ -90,6 +90,14 @@
@@ -90,6 +90,12 @@
let s:copy['*'] = s:copy['+']
let s:paste['*'] = s:paste['+']
return 'tmux'
@ -11,8 +11,6 @@ diff -u -r ../neovim-76ea97c809e50fccc5ca6615943ac6da1db1e030/runtime/autoload/p
+ let s:copy['*'] = s:copy['+']
+ let s:paste['*'] = s:paste['+']
+ return 'termux-clipboard'
+ endif
+
endif
let s:err = 'clipboard: No clipboard tool available. :help clipboard'

Loading…
Cancel
Save