Browse Source

neovim: Update to git master

android-5
Fredrik Fornwall 7 years ago
parent
commit
f7fa1064b4
  1. 6
      packages/neovim/build.sh
  2. 11
      packages/neovim/runtime-autoload-man.vim.patch

6
packages/neovim/build.sh

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://neovim.io/ TERMUX_PKG_HOMEPAGE=https://neovim.io/
TERMUX_PKG_DESCRIPTION="Ambitious Vim-fork focused on extensibility and agility (nvim)" TERMUX_PKG_DESCRIPTION="Ambitious Vim-fork focused on extensibility and agility (nvim)"
local _COMMIT=dc536295875640ef5d7b28d8135d0ef72d782d5e local _COMMIT=f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8
TERMUX_PKG_VERSION=0.2.3~2018.02.08 TERMUX_PKG_VERSION=0.2.3~2018.06.06
TERMUX_PKG_SHA256=23ee040ac9bb8c67c839b21a993d88e79f7ac5c2fc3612498523c6f2d255f261 TERMUX_PKG_SHA256=6450ca461e66b421ebc5deb50c84bb81af6aca4373478751e9b13dc4e008560b
TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/${_COMMIT}.zip TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/${_COMMIT}.zip
TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libvterm, libtermkey, libutil, liblua, libunibilium" TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libvterm, libtermkey, libutil, liblua, libunibilium"
TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_HOSTBUILD=true

11
packages/neovim/runtime-autoload-man.vim.patch

@ -10,14 +10,3 @@ diff -u -r ../neovim-0851057a8deaa1197bd0af22babb62c1146d836c/runtime/autoload/m
return s:system(cmd + (s:localfile_arg ? ['-l', a:path] : [a:path])) return s:system(cmd + (s:localfile_arg ? ['-l', a:path] : [a:path]))
endfunction endfunction
@@ -213,7 +213,9 @@
function! s:get_path(sect, name) abort
if empty(a:sect)
- return s:system(['man', s:find_arg, a:name])
+ " Take the first one if multiple lines returned, such as when
+ " both man1p/test.1p and man1/test.1 exists.
+ return split(s:system(['man', s:find_arg, a:name]), "\n")[0] . "\n"
endif
" '-s' flag handles:
" - tokens like 'printf(echo)'

Loading…
Cancel
Save