mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
vim-plugin.eclass: add debug-print-function calls
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
committed by
Patrice Clement
parent
6e2405e9fe
commit
0fa5e48ce6
@@ -44,6 +44,8 @@ if [[ ${_DEFINE_VIM_PLUGIN_SRC_PREPARE} ]]; then
|
||||
# other packages.
|
||||
# Note that this function is only defined and exported in EAPIs >= 8.
|
||||
vim-plugin_src_prepare() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
default_src_prepare
|
||||
|
||||
# return if there's nothing to do
|
||||
@@ -84,6 +86,8 @@ _VIM_PLUGIN_ALLOWED_DIRS=(
|
||||
# }
|
||||
# @CODE
|
||||
vim-plugin_src_install() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
# Install non-vim-help-docs
|
||||
einstalldocs
|
||||
|
||||
@@ -113,6 +117,8 @@ vim-plugin_src_install() {
|
||||
# * update_vim_afterscripts
|
||||
# * display_vim_plugin_help
|
||||
vim-plugin_pkg_postinst() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
update_vim_helptags # from vim-doc
|
||||
update_vim_afterscripts # see below
|
||||
display_vim_plugin_help # see below
|
||||
@@ -124,6 +130,8 @@ vim-plugin_pkg_postinst() {
|
||||
# This function calls the update_vim_helptags and update_vim_afterscripts
|
||||
# functions and eventually removes a bunch of empty directories.
|
||||
vim-plugin_pkg_postrm() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
update_vim_helptags # from vim-doc
|
||||
update_vim_afterscripts # see below
|
||||
|
||||
@@ -139,6 +147,8 @@ vim-plugin_pkg_postrm() {
|
||||
# Creates scripts in /usr/share/vim/vimfiles/after/*
|
||||
# comprised of the snippets in /usr/share/vim/vimfiles/after/*/*.d
|
||||
update_vim_afterscripts() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local d f afterdir="${EROOT}"/usr/share/vim/vimfiles/after
|
||||
|
||||
# Nothing to do if the dir isn't there
|
||||
@@ -176,6 +186,8 @@ update_vim_afterscripts() {
|
||||
# extra message regarding enabling filetype plugins is displayed if
|
||||
# VIM_PLUGIN_MESSAGES includes the word "filetype".
|
||||
display_vim_plugin_help() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local h
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
|
||||
Reference in New Issue
Block a user