Skip to content

Commit

Permalink
Update vim to 8.1.1526
Browse files Browse the repository at this point in the history
  • Loading branch information
Mno-hime committed Jun 14, 2019
1 parent 98d606f commit 1fb467b
Show file tree
Hide file tree
Showing 7 changed files with 1,788 additions and 1,707 deletions.
23 changes: 12 additions & 11 deletions components/editor/vim/Makefile
Expand Up @@ -28,14 +28,14 @@
include ../../../make-rules/shared-macros.mk

COMPONENT_NAME= vim
COMPONENT_VERSION= 8.1.1002
COMPONENT_VERSION= 8.1.1526
# Remove leading zeros in the patch-level part of $COMPONENT_VERSION (IPS does not like them)
IPS_COMPONENT_VERSION= $(shell echo $(COMPONENT_VERSION) | sed -e 's/\.00*\([1-9]\)/.\1/')
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL= https://www.vim.org/
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_URL= https://github.com/vim/vim/archive/v$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH= sha256:9278224aa2cbd6154a2405d678a0aa8e0fd23c8265ca9f33d0c3db8ae8d2e61a
COMPONENT_ARCHIVE_HASH= sha256:6b95513bfd3ae0fee60f37f79fe76ee7baf8ffa0e45c60ce6e815e39c716d160

include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
Expand All @@ -44,8 +44,6 @@ include $(WS_MAKE_RULES)/ips.mk
COMPONENT_POST_UNPACK_ACTION += ( chmod +x $(@D)/configure $(@D)/src/auto/configure $(@D)/src/configure $(@D)/src/mkinstalldirs ; \
find $(@D) -name \*.sh -exec chmod +x '{}' ';' )

PKG_MACROS += VIMVER=vim81

X_VARIANT = $(BUILD_DIR)/$(MACH32)-gvim
NOX_VARIANT = $(BUILD_DIR)/$(MACH32)-vim

Expand Down Expand Up @@ -75,17 +73,19 @@ CONFIGURE_OPTIONS += --enable-rubyinterp=dynamic
CONFIGURE_OPTIONS += --enable-terminal

# We build two variants: with and without X support.
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-vim-name=gvim
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-x
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gui=gtk3
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gtk3-check
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-libcanberra
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --without-x
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gui
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-gtktest
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-vim-name=gvim
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-x
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gui=gtk2
$(X_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-gtk2-check
$(NOX_VARIANT)/.configured: CONFIGURE_OPTIONS += --without-libcanberra

# Vim's build is too smart for itself and configure can't run outside of a
# complete source tree.
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D) ; cd $(@D)/src ; aclocal ; autoconf ; )

# For the GUI, install only the executable itself.
$(X_VARIANT)/.installed: COMPONENT_INSTALL_ARGS += -C src
Expand All @@ -98,7 +98,6 @@ $(SOURCE_DIR)/runtime/doc/uganda.txt: prep
$(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt
nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@

# common targets
build: $(BUILD_32)

install: $(INSTALL_32) $(BUILD_DIR)/license
Expand All @@ -108,9 +107,11 @@ test: $(TEST_32)

# Auto-generated dependencies
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += library/desktop/cairo
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
REQUIRED_PACKAGES += library/desktop/gtk2
REQUIRED_PACKAGES += library/desktop/gtk3
REQUIRED_PACKAGES += library/desktop/pango
REQUIRED_PACKAGES += library/desktop/xdg/libcanberra
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/ncurses
REQUIRED_PACKAGES += runtime/perl-522
Expand Down
2 changes: 1 addition & 1 deletion components/editor/vim/gvim.p5m
Expand Up @@ -51,7 +51,7 @@ file path=usr/share/icons/locolor/16x16/apps/gvim.png
file path=usr/share/icons/locolor/32x32/apps/gvim.png
link path=usr/share/man/man1/gvim.1 target=vim.1
link path=usr/share/man/man1/gvimdiff.1 target=vimdiff.1
file path=usr/share/vim/$(VIMVER)/gvimrc_example.vim
file path=usr/share/vim/vim81/gvimrc_example.vim
#
license license license="VIM License"
#
Expand Down
10 changes: 10 additions & 0 deletions components/editor/vim/manifests/sample-manifest.p5m
Expand Up @@ -397,6 +397,7 @@ file path=usr/share/vim/vim81/doc/pi_spec.txt
file path=usr/share/vim/vim81/doc/pi_tar.txt
file path=usr/share/vim/vim81/doc/pi_vimball.txt
file path=usr/share/vim/vim81/doc/pi_zip.txt
file path=usr/share/vim/vim81/doc/popup.txt
file path=usr/share/vim/vim81/doc/print.txt
file path=usr/share/vim/vim81/doc/quickfix.txt
file path=usr/share/vim/vim81/doc/quickref.txt
Expand Down Expand Up @@ -601,6 +602,7 @@ file path=usr/share/vim/vim81/ftplugin/muttrc.vim
file path=usr/share/vim/vim81/ftplugin/nanorc.vim
file path=usr/share/vim/vim81/ftplugin/neomuttrc.vim
file path=usr/share/vim/vim81/ftplugin/netrc.vim
file path=usr/share/vim/vim81/ftplugin/nroff.vim
file path=usr/share/vim/vim81/ftplugin/nsis.vim
file path=usr/share/vim/vim81/ftplugin/objc.vim
file path=usr/share/vim/vim81/ftplugin/ocaml.vim
Expand Down Expand Up @@ -802,6 +804,7 @@ file path=usr/share/vim/vim81/indent/tex.vim
file path=usr/share/vim/vim81/indent/tf.vim
file path=usr/share/vim/vim81/indent/tilde.vim
file path=usr/share/vim/vim81/indent/treetop.vim
file path=usr/share/vim/vim81/indent/typescript.vim
file path=usr/share/vim/vim81/indent/vb.vim
file path=usr/share/vim/vim81/indent/verilog.vim
file path=usr/share/vim/vim81/indent/vhdl.vim
Expand Down Expand Up @@ -967,6 +970,10 @@ file path=usr/share/vim/vim81/lang/menu_hu.iso_8859-2.vim
file path=usr/share/vim/vim81/lang/menu_hu.utf-8.vim
file path=usr/share/vim/vim81/lang/menu_hu_hu.iso_8859-2.vim
file path=usr/share/vim/vim81/lang/menu_hu_hu.utf-8.vim
file path=usr/share/vim/vim81/lang/menu_is.latin1.vim
file path=usr/share/vim/vim81/lang/menu_is.utf-8.vim
file path=usr/share/vim/vim81/lang/menu_is_is.latin1.vim
file path=usr/share/vim/vim81/lang/menu_is_is.utf-8.vim
file path=usr/share/vim/vim81/lang/menu_it.latin1.vim
file path=usr/share/vim/vim81/lang/menu_it.utf-8.vim
file path=usr/share/vim/vim81/lang/menu_it_it.latin1.vim
Expand Down Expand Up @@ -1693,6 +1700,7 @@ file path=usr/share/vim/vim81/syntax/taskedit.vim
file path=usr/share/vim/vim81/syntax/tasm.vim
file path=usr/share/vim/vim81/syntax/tcl.vim
file path=usr/share/vim/vim81/syntax/tcsh.vim
file path=usr/share/vim/vim81/syntax/template.vim
file path=usr/share/vim/vim81/syntax/teraterm.vim
file path=usr/share/vim/vim81/syntax/terminfo.vim
file path=usr/share/vim/vim81/syntax/tex.vim
Expand All @@ -1714,6 +1722,7 @@ file path=usr/share/vim/vim81/syntax/tssop.vim
file path=usr/share/vim/vim81/syntax/tt2.vim
file path=usr/share/vim/vim81/syntax/tt2html.vim
file path=usr/share/vim/vim81/syntax/tt2js.vim
file path=usr/share/vim/vim81/syntax/typescript.vim
file path=usr/share/vim/vim81/syntax/uc.vim
file path=usr/share/vim/vim81/syntax/udevconf.vim
file path=usr/share/vim/vim81/syntax/udevperm.vim
Expand Down Expand Up @@ -1832,6 +1841,7 @@ file path=usr/share/vim/vim81/tutor/tutor.it.utf-8
file path=usr/share/vim/vim81/tutor/tutor.ja.euc
file path=usr/share/vim/vim81/tutor/tutor.ja.sjis
file path=usr/share/vim/vim81/tutor/tutor.ja.utf-8
file path=usr/share/vim/vim81/tutor/tutor.ko
file path=usr/share/vim/vim81/tutor/tutor.ko.euc
file path=usr/share/vim/vim81/tutor/tutor.ko.utf-8
file path=usr/share/vim/vim81/tutor/tutor.lv.utf-8
Expand Down
63 changes: 63 additions & 0 deletions components/editor/vim/patches/disable_libcanberra.patch
@@ -0,0 +1,63 @@
https://github.com/vim/vim/issues/4531#issuecomment-502116548

--- vim-8.1.1523-8d24104/src/configure.ac 2019-06-14 14:30:09.711036154 +0000
+++ vim-8.1.1523-8d24104/src/configure.ac 2019-06-14 14:27:55.187933266 +0000
@@ -3751,27 +3751,39 @@ dnl define _LARGE_FILES, _FILE_OFFSET_BI
dnl appropriate, so that off_t is 64 bits when needed.
AC_SYS_LARGEFILE

+AC_ARG_WITH(libcanberra,
+ [ --with-libcanberra Enable sound support by using libcanberra],
+ if test "x$withval" = xno; then
+ want_libcanberra=no
+ else
+ want_libcanberra=yes
+ fi,
+ want_libcanberra=no)

-if test "x$PKG_CONFIG" != "xno"; then
- canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
- canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
+if test "x$want_libcanberra" = xyes; then
+{
+ if test "x$PKG_CONFIG" != "xno"; then
+ canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
+ canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
+ fi
+ if test "x$canberra_lib" = "x"; then
+ canberra_lib=-lcanberra
+ canberra_cflags=-D_REENTRANT
+ fi
+ AC_MSG_CHECKING(for libcanberra)
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $canberra_cflags"
+ LIBS="$LIBS $canberra_lib"
+ AC_TRY_LINK([
+ # include <canberra.h>
+ ], [
+ ca_context *hello;
+ ca_context_create(&hello);],
+ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA),
+ AC_MSG_RESULT(no); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")
+}
fi
-if test "x$canberra_lib" = "x"; then
- canberra_lib=-lcanberra
- canberra_cflags=-D_REENTRANT
-fi
-AC_MSG_CHECKING(for libcanberra)
-ac_save_CFLAGS="$CFLAGS"
-ac_save_LIBS="$LIBS"
-CFLAGS="$CFLAGS $canberra_cflags"
-LIBS="$LIBS $canberra_lib"
-AC_TRY_LINK([
-# include <canberra.h>
- ], [
- ca_context *hello;
- ca_context_create(&hello);],
- AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CANBERRA),
- AC_MSG_RESULT(no); CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS")


dnl fstatfs() can take 2 to 4 arguments, try to use st_blksize if possible
16 changes: 7 additions & 9 deletions components/editor/vim/patches/test_edit_longfilename.patch
Expand Up @@ -4,11 +4,9 @@ Patch 545 doesn't have the right fix. See the pull request at

This fix has not yet been submitted upstream.

diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim
index 0986bf9b1..857f4627b 100644
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -1329,16 +1329,6 @@ func Test_edit_complete_very_long_name()
--- vim-8.1.1471/src/testdir/test_edit.vim 2019-06-05 22:57:04.000000000 +0000
+++ vim-8.1.1471/src/testdir/test_edit.vim 2019-06-06 07:12:05.005908740 +0000
@@ -1349,16 +1349,6 @@ func Test_edit_complete_very_long_name()
return
endif

Expand All @@ -22,11 +20,11 @@ index 0986bf9b1..857f4627b 100644
- return
- endtry
-
" Try to get the Vim window position before setting 'columns'.
" Try to get the Vim window position before setting 'columns', so that we can
" move the window back to where it was.
let winposx = getwinposx()
let winposy = getwinposy()
@@ -1348,7 +1338,24 @@ func Test_edit_complete_very_long_name()
call assert_equal(2000, &columns)
@@ -1384,7 +1374,24 @@ func Test_edit_complete_very_long_name()
set columns=2000
set noswapfile

- let longfilename = longdirname . '/' . repeat('a', 255)
Expand Down
2 changes: 1 addition & 1 deletion components/editor/vim/vim-core.p5m
Expand Up @@ -119,7 +119,7 @@ link path=usr/share/man/ru.UTF-8/man1/ex.1 target=vim.1
link path=usr/share/man/ru.UTF-8/man1/vi.1 target=vim.1
link path=usr/share/man/ru.UTF-8/man1/view.1 target=vim.1
file path=usr/share/man/ru.UTF-8/man1/vim.1
file help_minimized.txt path=usr/share/vim/$(VIMVER)/doc/help_minimized.txt
file help_minimized.txt path=usr/share/vim/vim81/doc/help_minimized.txt
#
license license license="VIM License"

Expand Down

0 comments on commit 1fb467b

Please sign in to comment.