1 |
commit: 0fa5e48ce63409ad3ce9fd3577df3e54cc27cd48 |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Apr 6 11:51:12 2022 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 30 12:57:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa5e48c |
7 |
|
8 |
vim-plugin.eclass: add debug-print-function calls |
9 |
|
10 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
eclass/vim-plugin.eclass | 12 ++++++++++++ |
14 |
1 file changed, 12 insertions(+) |
15 |
|
16 |
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass |
17 |
index 1dda852d5a57..c4fa6b2771c6 100644 |
18 |
--- a/eclass/vim-plugin.eclass |
19 |
+++ b/eclass/vim-plugin.eclass |
20 |
@@ -44,6 +44,8 @@ if [[ ${_DEFINE_VIM_PLUGIN_SRC_PREPARE} ]]; then |
21 |
# other packages. |
22 |
# Note that this function is only defined and exported in EAPIs >= 8. |
23 |
vim-plugin_src_prepare() { |
24 |
+ debug-print-function ${FUNCNAME} "${@}" |
25 |
+ |
26 |
default_src_prepare |
27 |
|
28 |
# return if there's nothing to do |
29 |
@@ -84,6 +86,8 @@ _VIM_PLUGIN_ALLOWED_DIRS=( |
30 |
# } |
31 |
# @CODE |
32 |
vim-plugin_src_install() { |
33 |
+ debug-print-function ${FUNCNAME} "${@}" |
34 |
+ |
35 |
# Install non-vim-help-docs |
36 |
einstalldocs |
37 |
|
38 |
@@ -113,6 +117,8 @@ vim-plugin_src_install() { |
39 |
# * update_vim_afterscripts |
40 |
# * display_vim_plugin_help |
41 |
vim-plugin_pkg_postinst() { |
42 |
+ debug-print-function ${FUNCNAME} "${@}" |
43 |
+ |
44 |
update_vim_helptags # from vim-doc |
45 |
update_vim_afterscripts # see below |
46 |
display_vim_plugin_help # see below |
47 |
@@ -124,6 +130,8 @@ vim-plugin_pkg_postinst() { |
48 |
# This function calls the update_vim_helptags and update_vim_afterscripts |
49 |
# functions and eventually removes a bunch of empty directories. |
50 |
vim-plugin_pkg_postrm() { |
51 |
+ debug-print-function ${FUNCNAME} "${@}" |
52 |
+ |
53 |
update_vim_helptags # from vim-doc |
54 |
update_vim_afterscripts # see below |
55 |
|
56 |
@@ -139,6 +147,8 @@ vim-plugin_pkg_postrm() { |
57 |
# Creates scripts in /usr/share/vim/vimfiles/after/* |
58 |
# comprised of the snippets in /usr/share/vim/vimfiles/after/*/*.d |
59 |
update_vim_afterscripts() { |
60 |
+ debug-print-function ${FUNCNAME} "${@}" |
61 |
+ |
62 |
local d f afterdir="${EROOT}"/usr/share/vim/vimfiles/after |
63 |
|
64 |
# Nothing to do if the dir isn't there |
65 |
@@ -176,6 +186,8 @@ update_vim_afterscripts() { |
66 |
# extra message regarding enabling filetype plugins is displayed if |
67 |
# VIM_PLUGIN_MESSAGES includes the word "filetype". |
68 |
display_vim_plugin_help() { |
69 |
+ debug-print-function ${FUNCNAME} "${@}" |
70 |
+ |
71 |
local h |
72 |
|
73 |
if [[ -z ${REPLACING_VERSIONS} ]]; then |