mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Reduce i686 drivers Add glproto dependency to xorg_server Bump mesa version Add pre-built binaries Add twm, xclock and xterm dependencies to xinit
76 lines
2.9 KiB
Ruby
76 lines
2.9 KiB
Ruby
require '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)'
|
|
homepage 'http://www.vim.org/'
|
|
version '8.1.0648'
|
|
source_url 'https://github.com/vim/vim/archive/v8.1.0648.tar.gz'
|
|
source_sha256 '7e6ad44dbb8fda0aca91c22fa0dcaed2d845cf00c26d6d3df3bfaa38c9da222a'
|
|
|
|
binary_url ({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1.0648-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1.0648-chromeos-armv7l.tar.xz',
|
|
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1.0648-chromeos-i686.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1.0648-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256 ({
|
|
aarch64: 'c45090038eea4923238023236849b34366da1e6b9a50db3dc6ef8b409c4c075d',
|
|
armv7l: 'c45090038eea4923238023236849b34366da1e6b9a50db3dc6ef8b409c4c075d',
|
|
i686: 'a7e9a2c05d77784b6da46ee40b7bbc8365a0ea4840b1979e05abe4cbc69aa1c6',
|
|
x86_64: '7e6c36e7602a62d615899cdc3230aacea3a08c908f1927ba2f44ff31bd09fe4f',
|
|
})
|
|
|
|
depends_on 'python27' => :build
|
|
depends_on 'python3' => :build
|
|
depends_on 'vim_runtime'
|
|
depends_on 'gtk3'
|
|
depends_on 'sommelier'
|
|
|
|
def self.patch
|
|
# set the system-wide vimrc path
|
|
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_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h"
|
|
system "autoconf"
|
|
end
|
|
end
|
|
|
|
def self.build
|
|
system "./configure",
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--localstatedir=#{CREW_PREFIX}/var/lib/vim",
|
|
"--with-features=huge",
|
|
"--with-compiledby='Chromebrew'",
|
|
"--with-x=yes",
|
|
"--enable-gui=gtk3",
|
|
"--enable-multibyte",
|
|
"--enable-cscope",
|
|
"--enable-fontset",
|
|
"--enable-perlinterp=dynamic",
|
|
"--enable-pythoninterp=dynamic",
|
|
"--enable-python3interp=dynamic",
|
|
"--enable-rubyinterp=dynamic",
|
|
"--disable-selinux"
|
|
system "make"
|
|
end
|
|
|
|
def self.install
|
|
system "make", "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
|
|
system "compressdoc --gzip -9 #{CREW_DEST_PREFIX}/share/man/man1"
|
|
|
|
# these are provided by 'vim_runtime'
|
|
system "rm", "-r", "#{CREW_DEST_PREFIX}/share/vim"
|
|
end
|
|
|
|
def self.postinstall
|
|
puts
|
|
puts "The config files are located in #{CREW_PREFIX}/etc".lightblue
|
|
puts "User-specific configuration should go in ~/.gvimrc".lightblue
|
|
puts
|
|
puts "If you are upgrading from an earlier version, edit ~/.bashrc".orange
|
|
puts "and remove the 'export VIMRUNTIME' and 'export LC_ALL=C' lines.".orange
|
|
puts
|
|
end
|
|
end
|