Skip to content

Commit

Permalink
app-editors/vim-core: fix conflicts in 8.2.{4285,4328}
Browse files Browse the repository at this point in the history
We fixed defaults.vim installation conflicts in
e4c6279, but not for 8.2.4285 and
8.2.4328. Fix the issue for the versions.

Signed-off-by: Dongsu Park <dpark@linux.microsoft.com>
  • Loading branch information
dongsupark committed Feb 18, 2022
1 parent 29cd736 commit 42a7036
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions app-editors/vim-core/vim-core-8.2.4285.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ src_install() {
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"

# Delete defaults.vim to avoid conflicts with one from vim[minimal]
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"

local keep_colors="default"
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )

Expand All @@ -210,6 +207,13 @@ src_install() {
eshopts_pop
fi

# Delete defaults.vim to avoid conflicts with one from vim.
# If defaults.vim already exists in files installed from vim,
# do not install defaults.vim.
if [[ -f "${vimfiles}/defaults.vim" ]]; then
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
fi

newbashcomp "${FILESDIR}"/xxd-completion xxd

# install gvim icon since both vim/gvim desktop files reference it
Expand Down
10 changes: 7 additions & 3 deletions app-editors/vim-core/vim-core-8.2.4328.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ src_install() {
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"

# Delete defaults.vim to avoid conflicts with one from vim[minimal]
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"

local keep_colors="default"
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )

Expand All @@ -210,6 +207,13 @@ src_install() {
eshopts_pop
fi

# Delete defaults.vim to avoid conflicts with one from vim.
# If defaults.vim already exists in files installed from vim,
# do not install defaults.vim.
if [[ -f "${vimfiles}/defaults.vim" ]]; then
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
fi

newbashcomp "${FILESDIR}"/xxd-completion xxd

# install gvim icon since both vim/gvim desktop files reference it
Expand Down

0 comments on commit 42a7036

Please sign in to comment.