public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms:eapi-8 commit in: /
Date: Wed,  2 Jun 2021 19:44:38 +0000 (UTC)	[thread overview]
Message-ID: <1622662989.f29147041820ffce284f9026c4e276fbaa09e7a5.ulm@gentoo> (raw)

commit:     f29147041820ffce284f9026c4e276fbaa09e7a5
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun May 16 18:59:37 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jun  2 19:43:09 2021 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=f2914704

EAPI 8: usev has an optional second argument

Bug: https://bugs.gentoo.org/744868
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eapi-differences.tex |  4 ++++
 pkg-mgr-commands.tex | 23 ++++++++++++++---------
 2 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/eapi-differences.tex b/eapi-differences.tex
index d263cbc..5609de6 100644
--- a/eapi-differences.tex
+++ b/eapi-differences.tex
@@ -317,6 +317,9 @@ Controllable stripping & \compactfeatureref{dostrip} &
 \t{dostrip} & \compactfeatureref{dostrip} &
     No & No & No & Yes & Yes \\
 
+\t{usev} second arg & \compactfeatureref{usev} &
+    No & No & No & No & Yes \\
+
 \t{use_with} empty third arg & \compactfeatureref{use-with} &
     * & Yes & Yes & Yes & Yes \\
 
@@ -529,6 +532,7 @@ EAPI 8 is EAPI 7 with the following changes:
 \item \t{dosym} can create relative paths, \featureref{dosym-relative}.
 \item \t{insopts} no longer affects \t{doconfd}, \t{doenvd} and \t{doheader}, \featureref{insopts}.
 \item \t{exeopts} no longer affects \t{doinitd}, \featureref{exeopts}.
+\item \t{usev} supports an optional second argument, \featureref{usev}.
 \end{compactitem}
 
 \ChangeWhenAddingAnEAPI{8}

diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index 2e6975a..4d098cb 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -936,15 +936,17 @@ table~\ref{tab:use-list-strictness}.
 \item[use] Returns shell true (0) if the first argument (a \t{USE} flag name) is enabled, false
     otherwise.  If the flag name is prefixed with \t{!}, returns true if the flag is disabled, and
     false if it is enabled. It is guaranteed that this command is quiet.
-\item[usev] The same as \t{use}, but also prints the flag name if the condition
-    is met.
+\item[usev] \featurelabel{usev} The same as \t{use}, but also prints the flag name if the condition
+    is met. In EAPIs listed in table~\ref{tab:use-list-args} as supporting an optional second
+    argument for \t{usev}, prints the second argument instead, if it is specified and if the
+    condition is met.
 \item[useq] Deprecated synonym for \t{use}.
     In EAPIs listed in table~\ref{tab:banned-commands-table}, this command is banned as per
     section~\ref{sec:banned-commands}.
 \item[use_with] \featurelabel{use-with} Has one-, two-, and three-argument forms. The first
     argument is a USE flag name, the second a \t{configure} option name (\t{\$\{opt\}}), defaulting
     to the same as the first argument if not provided, and the third is a string value
-    (\t{\$\{value\}}). For EAPIs listed in table~\ref{tab:use-with-third-arg} as not supporting it,
+    (\t{\$\{value\}}). For EAPIs listed in table~\ref{tab:use-list-args} as not supporting it,
     an empty third argument is treated as if it weren't provided. If the USE flag is set, outputs
     \t{-{}-with-\$\{opt\}=\$\{value\}} if the third argument was provided, and
     \t{-{}-with-\$\{opt\}} otherwise. If the flag is not set, then it outputs
@@ -979,15 +981,18 @@ table~\ref{tab:use-list-strictness}.
 \end{centertable}
 
 \ChangeWhenAddingAnEAPI{8}
-\begin{centertable}{EAPIs supporting empty third argument in \t{use_with} and \t{use_enable}}
-    \label{tab:use-with-third-arg}
-    \begin{tabular}{ll}
+\begin{centertable}{\t{usev}, \t{use_with} and \t{use_enable} arguments for EAPIs}
+    \label{tab:use-list-args}
+    \begin{tabular}{lll}
       \toprule
       \multicolumn{1}{c}{\textbf{EAPI}} &
-      \multicolumn{1}{c}{\textbf{Supports empty third argument?}} \\
+      \multicolumn{1}{P{8em}}{\textbf{\t{usev} has optional second argument?}} &
+      \multicolumn{1}{P{14em}}{\textbf{\t{use_with} and \t{use_enable} support empty third
+        argument?}} \\
       \midrule
-      0, 1, 2, 3        & No  \\
-      4, 5, 6, 7, 8     & Yes \\
+      0, 1, 2, 3        & No  & No  \\
+      4, 5, 6, 7        & No  & Yes \\
+      8                 & Yes & Yes \\
       \bottomrule
     \end{tabular}
 \end{centertable}


             reply	other threads:[~2021-06-02 19:44 UTC|newest]

Thread overview: 263+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 19:44 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-13 19:15 [gentoo-commits] proj/pms:eapi-8 commit in: / Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-05  8:57 Ulrich Müller
2021-06-03  8:55 Ulrich Müller
2021-06-03  8:55 Ulrich Müller
2021-06-03  8:55 Ulrich Müller
2021-06-03  8:21 Ulrich Müller
2021-06-03  8:21 Ulrich Müller
2021-06-03  8:21 Ulrich Müller
2021-06-03  8:21 Ulrich Müller
2021-06-02 19:44 Ulrich Müller
2021-06-02 19:44 Ulrich Müller
2021-06-02 19:44 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-27 19:27 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-26  7:13 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 19:39 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24 10:35 Ulrich Müller
2021-05-24  8:54 [gentoo-commits] proj/pms:retroactive " Ulrich Müller
2021-05-24 10:35 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 Ulrich Müller
2021-05-22  6:36 [gentoo-commits] proj/pms:retroactive " Ulrich Müller
2021-05-22  6:36 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-19 15:38 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-18  5:44 Ulrich Müller
2021-05-17 21:30 Ulrich Müller
2021-05-17 21:30 Ulrich Müller
2021-05-17 21:30 Ulrich Müller
2021-05-17 21:30 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 21:23 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 19:37 Ulrich Müller
2021-05-17 16:56 Ulrich Müller
2021-05-17 16:17 Ulrich Müller
2021-05-17 16:17 Ulrich Müller
2021-05-17 16:17 Ulrich Müller
2021-05-17 16:17 Ulrich Müller
2021-05-17 16:17 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-17 16:16 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-16 19:13 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-13 11:42 Ulrich Müller
2021-05-01 10:28 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2021-05-01 10:28 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2021-04-25 20:39 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2021-01-19 20:01 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-09-21 19:25 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-09-21 19:25 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-09-21 19:25 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-09-21 19:25 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-08-06 16:12 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-07-07  7:55 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-06-29 17:35 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-06-28 10:46 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller
2020-06-15 17:38 [gentoo-commits] proj/pms:master " Ulrich Müller
2021-05-13 11:42 ` [gentoo-commits] proj/pms:eapi-8 " Ulrich Müller

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=1622662989.f29147041820ffce284f9026c4e276fbaa09e7a5.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@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