Skip to content

Commit

Permalink
eclass/vim-plugin.eclass: delete if has_version condition.
Browse files Browse the repository at this point in the history
... and replace it with a test against the REPLACING_VERSIONS variable.

See https://projects.gentoo.org/pms/8/pms.html#x1-10900011.1.

This is an updated version of the same patch discussed previously on this ML.

Suggested-by: Arfrever Frehtes Taifersar Arahesis <[email protected]>
Reviewed-by: Ulrich Mueller <[email protected]>
Signed-off-by: Patrice Clement <[email protected]>
  • Loading branch information
monsieurp committed Jul 23, 2021
1 parent 22be474 commit d2194b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eclass/vim-plugin.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -126,31 +126,31 @@ update_vim_afterscripts() {
display_vim_plugin_help() {
local h

if ! has_version ${CATEGORY}/${PN} ; then
if [[ -n "${VIM_PLUGIN_HELPFILES}" ]] ; then
if [[ -z ${REPLACING_VERSIONS} ]]; then
if [[ -n ${VIM_PLUGIN_HELPFILES} ]]; then
elog " "
elog "This plugin provides documentation via vim's help system. To"
elog "view it, use:"
for h in ${VIM_PLUGIN_HELPFILES} ; do
for h in ${VIM_PLUGIN_HELPFILES}; do
elog " :help ${h}"
done
elog " "

elif [[ -n "${VIM_PLUGIN_HELPTEXT}" ]] ; then
elif [[ -n ${VIM_PLUGIN_HELPTEXT} ]]; then
elog " "
while read h ; do
elog "$h"
done <<<"${VIM_PLUGIN_HELPTEXT}"
elog " "

elif [[ -n "${VIM_PLUGIN_HELPURI}" ]] ; then
elif [[ -n ${VIM_PLUGIN_HELPURI} ]]; then
elog " "
elog "Documentation for this plugin is available online at:"
elog " ${VIM_PLUGIN_HELPURI}"
elog " "
fi

if has "filetype" "${VIM_PLUGIN_MESSAGES}" ; then
if has filetype ${VIM_PLUGIN_MESSAGES}; then
elog "This plugin makes use of filetype settings. To enable these,"
elog "add lines like:"
elog " filetype plugin on"
Expand Down

0 comments on commit d2194b9

Please sign in to comment.