Gentoo Archives: gentoo-dev

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-dev@l.g.o
Cc: vim@g.o
Subject: [gentoo-dev] [PATCH v3 8/8] vim-plugin.eclass: add debug-print-function calls
Date: Wed, 06 Apr 2022 13:55:18
Message-Id: 20220406135203.24882-9-cyber+gentoo@sysrq.in
In Reply to: [gentoo-dev] [PATCH v3 0/8] Vim eclasses by Anna Vyalkova
1 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
2 ---
3 eclass/vim-plugin.eclass | 11 +++++++++++
4 1 file changed, 11 insertions(+)
5
6 diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
7 index 063893ad41..4f0ee3c815 100644
8 --- a/eclass/vim-plugin.eclass
9 +++ b/eclass/vim-plugin.eclass
10 @@ -54,6 +54,8 @@ if ${_DEFINE_VIM_PLUGIN_SRC_PREPARE}; then
11 # other packages.
12 # Note that this function is only defined and exported in EAPIs >= 8.
13 vim-plugin_src_prepare() {
14 + debug-print-function ${FUNCNAME} "${@}"
15 +
16 default_src_prepare
17
18 # return if there's nothing to do
19 @@ -93,6 +95,7 @@ _VIM_PLUGIN_ALLOWED_DIRS=(
20 # }
21 # @CODE
22 vim-plugin_src_install() {
23 + debug-print-function ${FUNCNAME} "${@}"
24
25 # Install non-vim-help-docs
26 einstalldocs
27 @@ -123,6 +126,8 @@ vim-plugin_src_install() {
28 # * update_vim_afterscripts
29 # * display_vim_plugin_help
30 vim-plugin_pkg_postinst() {
31 + debug-print-function ${FUNCNAME} "${@}"
32 +
33 update_vim_helptags # from vim-doc
34 update_vim_afterscripts # see below
35 display_vim_plugin_help # see below
36 @@ -134,6 +139,8 @@ vim-plugin_pkg_postinst() {
37 # This function calls the update_vim_helptags and update_vim_afterscripts
38 # functions and eventually removes a bunch of empty directories.
39 vim-plugin_pkg_postrm() {
40 + debug-print-function ${FUNCNAME} "${@}"
41 +
42 update_vim_helptags # from vim-doc
43 update_vim_afterscripts # see below
44
45 @@ -149,6 +156,8 @@ vim-plugin_pkg_postrm() {
46 # Creates scripts in /usr/share/vim/vimfiles/after/*
47 # comprised of the snippets in /usr/share/vim/vimfiles/after/*/*.d
48 update_vim_afterscripts() {
49 + debug-print-function ${FUNCNAME} "${@}"
50 +
51 local d f afterdir="${EROOT}"/usr/share/vim/vimfiles/after
52
53 # Nothing to do if the dir isn't there
54 @@ -186,6 +195,8 @@ update_vim_afterscripts() {
55 # extra message regarding enabling filetype plugins is displayed if
56 # VIM_PLUGIN_MESSAGES includes the word "filetype".
57 display_vim_plugin_help() {
58 + debug-print-function ${FUNCNAME} "${@}"
59 +
60 local h
61
62 if [[ -z ${REPLACING_VERSIONS} ]]; then
63 --
64 2.35.1