1 |
commit: f7c2235b1ec969741a0cc734cd9554e128b33984 |
2 |
Author: Marco Sirabella <marco <AT> sirabella <DOT> org> |
3 |
AuthorDate: Sun Apr 18 07:32:37 2021 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 20:22:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c2235b |
7 |
|
8 |
vim-plugin.eclass: don't remove files on install. |
9 |
|
10 |
This helps with multiple `ebuild install`s in a row, and also uses |
11 |
standard install functions instead of manual commands |
12 |
|
13 |
Signed-off-by: Marco Sirabella <marco <AT> sirabella.org> |
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
eclass/vim-plugin.eclass | 14 ++++++-------- |
17 |
1 file changed, 6 insertions(+), 8 deletions(-) |
18 |
|
19 |
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass |
20 |
index a0ba714f6e6..8b3ddf80ffd 100644 |
21 |
--- a/eclass/vim-plugin.eclass |
22 |
+++ b/eclass/vim-plugin.eclass |
23 |
@@ -63,17 +63,15 @@ vim-plugin_src_install() { |
24 |
else |
25 |
dodoc "${f}" |
26 |
fi |
27 |
- rm "${f}" || die |
28 |
done |
29 |
|
30 |
# Install remainder of plugin |
31 |
- cd "${WORKDIR}" || die "couldn't cd in ${WORKDIR}" |
32 |
- dodir /usr/share/vim |
33 |
- mv "${S}" "${ED}"/usr/share/vim/vimfiles || die \ |
34 |
- "couldn't move ${S} to ${ED}/usr/share/vim/vimfiles" |
35 |
- |
36 |
- # Set permissions |
37 |
- fperms -R a+rX /usr/share/vim/vimfiles |
38 |
+ insinto /usr/share/vim/vimfiles/ |
39 |
+ local d |
40 |
+ for d in *; do |
41 |
+ [[ -d "${d}" ]] || continue |
42 |
+ doins -r "${d}" |
43 |
+ done |
44 |
} |
45 |
|
46 |
# @FUNCTION: vim-plugin_pkg_postinst |