From: Patrice Clement <monsieurp@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: vim@lists.gentoo.org
Subject: [gentoo-dev] [PATCH] eclass/vim-plugin.eclass: delete if has_version condition.
Date: Thu, 22 Jul 2021 10:54:02 +0200 [thread overview]
Message-ID: <20210722085402.6666-1-monsieurp@gentoo.org> (raw)
... 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.
---
eclass/vim-plugin.eclass | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
index 6b72d66111d..460edcce3eb 100644
--- a/eclass/vim-plugin.eclass
+++ b/eclass/vim-plugin.eclass
@@ -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"
--
2.31.1
next reply other threads:[~2021-07-22 8:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-22 8:54 Patrice Clement [this message]
2021-07-23 5:35 ` [gentoo-dev] [PATCH] eclass/vim-plugin.eclass: delete if has_version condition Patrice Clement
-- strict thread matches above, loose matches on Subject: below --
2021-07-21 16:47 Patrice Clement
2021-07-21 17:16 ` Ulrich Mueller
2021-07-22 8:27 ` Patrice Clement
2021-07-22 3:44 ` Sam James
2021-07-22 8:32 ` Patrice Clement
2021-07-22 21:24 ` Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210722085402.6666-1-monsieurp@gentoo.org \
--to=monsieurp@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=vim@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox