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
9d90045b
Commit
9d90045b
authored
Mar 10, 2021
by
Ed Reel
Committed by
GitHub
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vim packages (#5380)
Add gpm dependency to vim_runtime
parent
da8bbcaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
packages/gvim.rb
packages/gvim.rb
+2
-2
packages/vim.rb
packages/vim.rb
+2
-2
packages/vim_runtime.rb
packages/vim_runtime.rb
+2
-3
No files found.
packages/gvim.rb
View file @
9d90045b
...
...
@@ -27,12 +27,12 @@ class Gvim < Package
depends_on
'sommelier'
def
self
.
preflight
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
vim
=
`which vim 2> /dev/null`
.
chomp
vim
=
`which
#{
CREW_PREFIX
}
/bin/vim 2> /dev/null`
.
chomp
abort
"vim version
#{
version
}
already installed."
.
lightgreen
unless
vim
.
to_s
==
''
end
def
self
.
patch
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
# 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
\"
|"
,
...
...
packages/vim.rb
View file @
9d90045b
...
...
@@ -25,12 +25,12 @@ class Vim < Package
depends_on
'vim_runtime'
def
self
.
preflight
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
gvim
=
`which gvim 2> /dev/null`
.
chomp
gvim
=
`which
#{
CREW_PREFIX
}
/bin/gvim 2> /dev/null`
.
chomp
abort
"gvim version
#{
version
}
already installed."
.
lightgreen
unless
gvim
.
to_s
==
''
end
def
self
.
patch
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
# 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
\"
|"
,
...
...
packages/vim_runtime.rb
View file @
9d90045b
...
...
@@ -22,11 +22,10 @@ class Vim_runtime < Package
x86_64:
'9b8e3d8e1e7455d049000342972c9dfb09ad1fb0b98ef665dde381aa646f9951'
})
def
self
.
preflight
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
end
depends_on
'gpm'
def
self
.
patch
abort
(
'Please remove libiconv before building.'
)
if
File
.
exist?
(
"
#{
CREW_LIB_PREFIX
}
/libcharset.so"
)
# 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
\"
|"
,
...
...
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