diff --git a/x11-packages/vim-gtk/build.sh b/x11-packages/vim-gtk/build.sh index 8455ffc8e..102f40ebf 100644 --- a/x11-packages/vim-gtk/build.sh +++ b/x11-packages/vim-gtk/build.sh @@ -4,10 +4,9 @@ TERMUX_PKG_LICENSE="VIM License" TERMUX_PKG_MAINTAINER="@termux" # vim should only be updated every 50 releases on multiples of 50. -TERMUX_PKG_VERSION=8.2.3700 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_VERSION=8.2.4650 TERMUX_PKG_SRCURL=https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=c6ec0fbfc1493c4538050cc154c6285441ad4a5ebc424ab6cad33df0eac89ba9 +TERMUX_PKG_SHA256=f91b3bddaeb538a7a2cc3325cbc80bd1b0009a92407b3a8cb29f7618498fa950 TERMUX_PKG_DEPENDS="gdk-pixbuf, glib, gtk3, libcairo, libcanberra, libice, libiconv, liblua53, libsm, libx11, libxpm, libxt, ncurses, pango, python" TERMUX_PKG_CONFLICTS="vim, vim-python, vim-runtime" diff --git a/x11-packages/vim-gtk/runtime-autoload-context.vim.patch b/x11-packages/vim-gtk/runtime-autoload-context.vim.patch new file mode 100644 index 000000000..e8d3b2668 --- /dev/null +++ b/x11-packages/vim-gtk/runtime-autoload-context.vim.patch @@ -0,0 +1,11 @@ +--- a/runtime/autoload/context.vim ++++ b/runtime/autoload/context.vim +@@ -17,7 +17,7 @@ + function! s:sh() + return has('win32') || has('win64') || has('win16') || has('win95') + \ ? ['cmd.exe', '/C'] +- \ : ['/bin/sh', '-c'] ++ \ : ['@TERMUX_PREFIX@/bin/sh', '-c'] + endfunction + + " For backward compatibility diff --git a/x11-packages/vim-gtk/runtime-syntax-sh.vim.patch b/x11-packages/vim-gtk/runtime-syntax-sh.vim.patch new file mode 100644 index 000000000..0b127b625 --- /dev/null +++ b/x11-packages/vim-gtk/runtime-syntax-sh.vim.patch @@ -0,0 +1,17 @@ +--- a/runtime/syntax/sh.vim ++++ b/runtime/syntax/sh.vim +@@ -25,10 +25,10 @@ + " the script itself does not specify which shell to use. FYI: /bin/sh is ambiguous. + " Assuming /bin/sh is executable, and if its a link, find out what it links to. + let s:shell = "" +- if executable("/bin/sh") +- let s:shell = resolve("/bin/sh") +- elseif executable("/usr/bin/sh") +- let s:shell = resolve("/usr/bin/sh") ++ if executable("@TERMUX_PREFIX@/bin/sh") ++ let s:shell = resolve("@TERMUX_PREFIX@/bin/sh") ++ elseif executable("/system/bin/sh") ++ let s:shell = resolve("/system/bin/sh") + endif + if s:shell =~ '\' + let b:is_kornshell= 1 diff --git a/x11-packages/vim-gtk/src-evalfunc.c.patch b/x11-packages/vim-gtk/src-evalfunc.c.patch new file mode 100644 index 000000000..3824c7d55 --- /dev/null +++ b/x11-packages/vim-gtk/src-evalfunc.c.patch @@ -0,0 +1,11 @@ +--- a/src/evalfunc.c ++++ b/src/evalfunc.c +@@ -5313,6 +5313,8 @@ f_has(typval_T *argvars, typval_T *rettv + #endif + }, + {"ebcdic", 0 }, ++ {"android", 1}, ++ {"termux", 1}, + {"fname_case", + #ifndef CASE_INSENSITIVE_FILENAME + 1 diff --git a/x11-packages/vim-gtk/src-if_cscope.c.patch b/x11-packages/vim-gtk/src-if_cscope.c.patch deleted file mode 100644 index 375ae96f2..000000000 --- a/x11-packages/vim-gtk/src-if_cscope.c.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr vim-8.1.0050/src/if_cscope.c vim-8.1.0050.mod/src/if_cscope.c ---- vim-8.1.0050/src/if_cscope.c 2018-06-12 21:25:52.000000000 +0300 -+++ vim-8.1.0050.mod/src/if_cscope.c 2018-06-19 20:32:38.661663690 +0300 -@@ -962,7 +962,7 @@ - PERROR(_("cs_create_connection setpgid failed")); - # endif - # endif -- if (execl("/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1) -+ if (execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", cmd, (char *)NULL) == -1) - PERROR(_("cs_create_connection exec failed")); - - exit(127); diff --git a/x11-packages/vim-gtk/os_unix.h.patch b/x11-packages/vim-gtk/src-os_unix.h.patch similarity index 100% rename from x11-packages/vim-gtk/os_unix.h.patch rename to x11-packages/vim-gtk/src-os_unix.h.patch