Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
c8e9d5b1
Commit
c8e9d5b1
authored
Aug 17, 2018
by
Chris Thurber
Committed by
GitHub
Aug 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2559 from uberhacker/add-gvim-package
Add gvim package
parents
6a48bc3c
e7c14db4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
packages/gvim.rb
packages/gvim.rb
+83
-0
No files found.
packages/gvim.rb
0 → 100644
View file @
c8e9d5b1
require
'package'
class
Gvim
<
Package
description
'gVim is a highly configurable text editor built to make creating and changing any kind of text very efficient.'
homepage
'http://www.vim.org/'
version
'8.1'
source_url
'ftp://ftp.vim.org/pub/vim/unix/vim-8.1.tar.bz2'
source_sha256
'8b69fbd01c877dd8ecbbeca1dc66e5e927228d631ac4c2174b9307eb5c827c86'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.1-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'38214e7c175c449f2f0918436de73442972b7e7207fa81a9baf98050393dccd1'
,
armv7l:
'38214e7c175c449f2f0918436de73442972b7e7207fa81a9baf98050393dccd1'
,
i686:
'898790d171557a46128eae1df18e8121c22c78a3a114f7b651c19883cd4852e5'
,
x86_64:
'366e9f29c198cfe34737ff6f644c928e124880455178e52b0d2c1c45c8121c8a'
,
})
depends_on
'vim'
depends_on
'sommelier'
def
self
.
build
system
"./configure \
--prefix=
#{
CREW_PREFIX
}
\
--disable-nls \
--enable-gui \
--with-x \
--enable-fontset \
--enable-multibyte \
--with-tlib=ncurses \
--enable-perlinterp \
--enable-python3interp \
--enable-rubyinterp \
--with-python3-command=
#{
CREW_PREFIX
}
/bin/python3 \
--with-ruby-command=
#{
CREW_PREFIX
}
/bin/ruby \
--with-features=huge \
--disable-selinux"
system
'make'
end
def
self
.
install
tmpdir
=
"
#{
CREW_PREFIX
}
/tmp/vim"
configdir
=
"
#{
CREW_PREFIX
}
/.config/vim"
configdestdir
=
"
#{
CREW_DEST_PREFIX
}
/.config/vim"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
FileUtils
.
mkdir_p
"
#{
tmpdir
}
"
system
"cp
#{
CREW_DEST_PREFIX
}
/bin/evi*
#{
tmpdir
}
"
system
"cp
#{
CREW_DEST_PREFIX
}
/bin/*gvi*
#{
tmpdir
}
"
system
"cp
#{
CREW_DEST_PREFIX
}
/share/man/man1/evi*.1
#{
tmpdir
}
"
system
"cp
#{
CREW_DEST_PREFIX
}
/share/man/man1/*gvi*.1
#{
tmpdir
}
"
system
"cp
#{
CREW_DEST_PREFIX
}
/share/vim/vim81/gvimrc_example.vim
#{
tmpdir
}
"
system
"rm -rf
#{
CREW_DEST_PREFIX
}
"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/man/man1"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/vim/vim81"
system
"mv
#{
tmpdir
}
/gvimrc_example.vim
#{
CREW_DEST_PREFIX
}
/share/vim/vim81"
system
"mv
#{
tmpdir
}
/*.1
#{
CREW_DEST_PREFIX
}
/share/man/man1"
system
"mv
#{
tmpdir
}
/*
#{
CREW_DEST_PREFIX
}
/bin"
system
"rm -rf
#{
tmpdir
}
"
system
"compressdoc --gzip -9
#{
CREW_DEST_PREFIX
}
/share/man/man1"
FileUtils
.
mkdir_p
"
#{
configdestdir
}
"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_HOME
}
"
system
"touch
#{
configdir
}
/gvimrc
#{
configdestdir
}
/gvimrc"
system
"ln -s
#{
configdir
}
/gvimrc
#{
CREW_DEST_HOME
}
/.gvimrc"
system
"ln -sf
#{
configdir
}
/gvimrc $HOME/.gvimrc"
end
def
self
.
postinstall
configdir
=
"
#{
CREW_PREFIX
}
/.config/vim"
system
"cp
#{
CREW_PREFIX
}
/share/vim/vim81/gvimrc_example.vim
#{
configdir
}
/gvimrc"
unless
File
.
size?
"
#{
configdir
}
/gvimrc"
puts
puts
"To finish the installation, execute the following:"
.
lightblue
puts
"echo '# Fixes Warning: Missing charsets in String to FontSet conversion' >> ~/.bashrc"
.
lightblue
puts
"echo 'export LC_ALL=C' >> ~/.bashrc && . ~/.bashrc"
.
lightblue
puts
puts
"The config files are located in $HOME/.vim"
.
lightblue
puts
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment