Commit 20eb100c authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Update vim from 8.2.0014 to 8.2.0346 (#3858)

Tested on ARM.
parent 95dc95aa
...@@ -3,21 +3,13 @@ require 'package' ...@@ -3,21 +3,13 @@ require 'package'
class Gvim < Package class Gvim < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (with advanced features, such as a GUI)' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (with advanced features, such as a GUI)'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.0014' version '8.2.0346'
source_url 'https://github.com/vim/vim/archive/v8.2.0014.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.0346.tar.gz'
source_sha256 '5e433abdebf36855bcec38b4e195a1281d04309b72523a265a21288717061845' source_sha256 '418d1cbc9f53f31cb19869b6df0294ca5c377ca2824c759e3f6796edc60e5628'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.0014-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.0014-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.0014-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.0014-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '0a03d59fe6790574ae83b36aa5da4bdadd5a2c6097dcc671933323400f2e1352',
armv7l: '0a03d59fe6790574ae83b36aa5da4bdadd5a2c6097dcc671933323400f2e1352',
i686: '3a1f848861f0faccb30d95bdd4657abbdbc80b4654d13ecfb3502559ae014e91',
x86_64: 'ef77b6f6a7d2ab6adf04148ede4ad1682d1ab0eefd59208d729bfe9d6a2023d0',
}) })
depends_on 'python27' => :build depends_on 'python27' => :build
...@@ -31,7 +23,7 @@ class Gvim < Package ...@@ -31,7 +23,7 @@ class Gvim < Package
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h"
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h"
system "autoconf" system 'autoconf'
end end
end end
...@@ -39,23 +31,23 @@ class Gvim < Package ...@@ -39,23 +31,23 @@ class Gvim < Package
system "./configure", system "./configure",
"--prefix=#{CREW_PREFIX}", "--prefix=#{CREW_PREFIX}",
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", "--localstatedir=#{CREW_PREFIX}/var/lib/vim",
"--with-features=huge", '--with-features=huge',
"--with-compiledby='Chromebrew'", "--with-compiledby='Chromebrew'",
"--with-x=yes", '--with-x=yes',
"--enable-gui=gtk3", '--enable-gui=gtk3',
"--enable-multibyte", '--enable-multibyte',
"--enable-cscope", '--enable-cscope',
"--enable-fontset", '--enable-fontset',
"--enable-perlinterp=dynamic", '--enable-perlinterp=dynamic',
"--enable-pythoninterp=dynamic", '--enable-pythoninterp=dynamic',
"--enable-python3interp=dynamic", '--enable-python3interp=dynamic',
"--enable-rubyinterp=dynamic", '--enable-rubyinterp=dynamic',
"--disable-selinux" '--disable-selinux'
system "make" system "make"
end end
def self.install def self.install
system "make", "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", 'install'
# these are provided by 'vim_runtime' # these are provided by 'vim_runtime'
FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim" FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim"
......
...@@ -3,9 +3,9 @@ require 'package' ...@@ -3,9 +3,9 @@ require 'package'
class Vim < Package class Vim < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.0014' version '8.2.0346'
source_url 'https://github.com/vim/vim/archive/v8.2.0014.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.0346.tar.gz'
source_sha256 '5e433abdebf36855bcec38b4e195a1281d04309b72523a265a21288717061845' source_sha256 '418d1cbc9f53f31cb19869b6df0294ca5c377ca2824c759e3f6796edc60e5628'
if ARGV[0] == 'install' if ARGV[0] == 'install'
gvim = `which gvim 2> /dev/null`.chomp gvim = `which gvim 2> /dev/null`.chomp
...@@ -13,16 +13,8 @@ class Vim < Package ...@@ -13,16 +13,8 @@ class Vim < Package
end end
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.0014-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.0014-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.0014-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.0014-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '23e46b4456fcf8af514dd4b014db36812f041498531ab10b7cd7595b4987922b',
armv7l: '23e46b4456fcf8af514dd4b014db36812f041498531ab10b7cd7595b4987922b',
i686: '8771da6eb9bca4ed4440cd4a4318bf93ee426034e8ffe733ff56fcefb401e8f6',
x86_64: 'bbc47db5a8b8fb98c4e7430ab7d32598f827ddb12f6d378fbc7d745a8447ebc7',
}) })
depends_on 'python27' => :build depends_on 'python27' => :build
...@@ -34,7 +26,7 @@ class Vim < Package ...@@ -34,7 +26,7 @@ class Vim < Package
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h"
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h"
system "autoconf" system 'autoconf'
end end
end end
...@@ -42,23 +34,23 @@ class Vim < Package ...@@ -42,23 +34,23 @@ class Vim < Package
system "./configure", system "./configure",
"--prefix=#{CREW_PREFIX}", "--prefix=#{CREW_PREFIX}",
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", "--localstatedir=#{CREW_PREFIX}/var/lib/vim",
"--with-features=huge", '--with-features=huge',
"--with-compiledby='Chromebrew'", "--with-compiledby='Chromebrew'",
"--with-x=no", '--with-x=no',
"--disable-gui", '--disable-gui',
"--enable-multibyte", '--enable-multibyte',
"--enable-cscope", '--enable-cscope',
"--enable-fontset", '--enable-fontset',
"--enable-perlinterp=dynamic", '--enable-perlinterp=dynamic',
"--enable-pythoninterp=dynamic", '--enable-pythoninterp=dynamic',
"--enable-python3interp=dynamic", '--enable-python3interp=dynamic',
"--enable-rubyinterp=dynamic", '--enable-rubyinterp=dynamic',
"--disable-selinux" '--disable-selinux'
system "make" system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "VIMRCLOC=#{CREW_PREFIX}/etc", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", "VIMRCLOC=#{CREW_PREFIX}/etc", 'install'
# these are provided by 'vim_runtime' # these are provided by 'vim_runtime'
FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim" FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim"
......
...@@ -3,21 +3,13 @@ require 'package' ...@@ -3,21 +3,13 @@ require 'package'
class Vim_runtime < Package class Vim_runtime < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (shared runtime)' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (shared runtime)'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.0014' version '8.2.0346'
source_url 'https://github.com/vim/vim/archive/v8.2.0014.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.0346.tar.gz'
source_sha256 '5e433abdebf36855bcec38b4e195a1281d04309b72523a265a21288717061845' source_sha256 '418d1cbc9f53f31cb19869b6df0294ca5c377ca2824c759e3f6796edc60e5628'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.0014-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.0014-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.0014-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.0014-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '3911f7fb1bcc8ba9d7d8afdb9d70b7b86865b5f232bec647470db45fe84d87e2',
armv7l: '3911f7fb1bcc8ba9d7d8afdb9d70b7b86865b5f232bec647470db45fe84d87e2',
i686: 'c2859e2221137ad5bcb0583cadac66318915671e42ca9bca6b2e29219b06bf43',
x86_64: '801a6f930cf20529c5339a280566865646dad3c94681cf85d6b5f25d95ac80fa',
}) })
depends_on 'python27' => :build depends_on 'python27' => :build
...@@ -28,7 +20,7 @@ class Vim_runtime < Package ...@@ -28,7 +20,7 @@ class Vim_runtime < Package
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h"
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h"
system "autoconf" system 'autoconf'
end end
end end
...@@ -36,23 +28,23 @@ class Vim_runtime < Package ...@@ -36,23 +28,23 @@ class Vim_runtime < Package
system "./configure", system "./configure",
"--prefix=#{CREW_PREFIX}", "--prefix=#{CREW_PREFIX}",
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", "--localstatedir=#{CREW_PREFIX}/var/lib/vim",
"--with-features=huge", '--with-features=huge',
"--with-compiledby='Chromebrew'", "--with-compiledby='Chromebrew'",
"--with-x=no", '--with-x=no',
"--disable-gui", '--disable-gui',
"--enable-multibyte", '--enable-multibyte',
"--enable-cscope", '--enable-cscope',
"--enable-fontset", '--enable-fontset',
"--enable-perlinterp=dynamic", '--enable-perlinterp=dynamic',
"--enable-pythoninterp=dynamic", '--enable-pythoninterp=dynamic',
"--enable-python3interp=dynamic", '--enable-python3interp=dynamic',
"--enable-rubyinterp=dynamic", '--enable-rubyinterp=dynamic',
"--disable-selinux" '--disable-selinux'
system "make" system 'make'
end end
def self.install def self.install
system "make", "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", 'install'
# bin and man will be provided by the 'vim' packages # bin and man will be provided by the 'vim' packages
FileUtils.rm_r "#{CREW_DEST_PREFIX}/bin" FileUtils.rm_r "#{CREW_DEST_PREFIX}/bin"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment