From ed9829038751fab208ed07a97a35fa3168edae93 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Fri, 18 Feb 2022 12:27:49 +0100 Subject: app-editors/vim-core: fix conflicts in 8.2.{4285,4328} We fixed defaults.vim installation conflicts in e4c6279825a758f660237211dfcdfd83399887f4, but not for 8.2.4285 and 8.2.4328. Fix the issue for the versions. Bug: https://bugs.gentoo.org/830177 Signed-off-by: Dongsu Park Closes: https://github.com/gentoo/gentoo/pull/24247 Signed-off-by: Sam James --- app-editors/vim-core/vim-core-8.2.4285.ebuild | 10 +++++++--- app-editors/vim-core/vim-core-8.2.4328.ebuild | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app-editors/vim-core/vim-core-8.2.4285.ebuild b/app-editors/vim-core/vim-core-8.2.4285.ebuild index bfac57e4caa8..eda637ba36f0 100644 --- a/app-editors/vim-core/vim-core-8.2.4285.ebuild +++ b/app-editors/vim-core/vim-core-8.2.4285.ebuild @@ -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 ) @@ -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 diff --git a/app-editors/vim-core/vim-core-8.2.4328.ebuild b/app-editors/vim-core/vim-core-8.2.4328.ebuild index bfac57e4caa8..eda637ba36f0 100644 --- a/app-editors/vim-core/vim-core-8.2.4328.ebuild +++ b/app-editors/vim-core/vim-core-8.2.4328.ebuild @@ -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 ) @@ -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 -- cgit v1.2.3-65-gdbad