summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Sirabella <marco@sirabella.org>2021-04-18 00:32:37 -0700
committerPatrice Clement <monsieurp@gentoo.org>2021-05-02 22:22:27 +0200
commitf7c2235b1ec969741a0cc734cd9554e128b33984 (patch)
tree5194082c81221da8f30428e2a1f420f4c1a7f8a6 /eclass/vim-plugin.eclass
parentapp-vim/*: bump EAPI 5 -> 7. (diff)
downloadgentoo-f7c2235b1ec969741a0cc734cd9554e128b33984.tar.gz
gentoo-f7c2235b1ec969741a0cc734cd9554e128b33984.tar.bz2
gentoo-f7c2235b1ec969741a0cc734cd9554e128b33984.zip
vim-plugin.eclass: don't remove files on install.
This helps with multiple `ebuild install`s in a row, and also uses standard install functions instead of manual commands Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'eclass/vim-plugin.eclass')
-rw-r--r--eclass/vim-plugin.eclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
index a0ba714f6e6..8b3ddf80ffd 100644
--- a/eclass/vim-plugin.eclass
+++ b/eclass/vim-plugin.eclass
@@ -63,17 +63,15 @@ vim-plugin_src_install() {
else
dodoc "${f}"
fi
- rm "${f}" || die
done
# Install remainder of plugin
- cd "${WORKDIR}" || die "couldn't cd in ${WORKDIR}"
- dodir /usr/share/vim
- mv "${S}" "${ED}"/usr/share/vim/vimfiles || die \
- "couldn't move ${S} to ${ED}/usr/share/vim/vimfiles"
-
- # Set permissions
- fperms -R a+rX /usr/share/vim/vimfiles
+ insinto /usr/share/vim/vimfiles/
+ local d
+ for d in *; do
+ [[ -d "${d}" ]] || continue
+ doins -r "${d}"
+ done
}
# @FUNCTION: vim-plugin_pkg_postinst