Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-8 commit in: /
Date: Sun, 16 May 2021 19:13:44
Message-Id: 1621191577.fd3c7bfed5bd1502a021325b7e603124a27d6135.ulm@gentoo
1 commit: fd3c7bfed5bd1502a021325b7e603124a27d6135
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 16 18:59:37 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun May 16 18:59:37 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=fd3c7bfe
7
8 EAPI 8: usev has an optional second argument
9
10 Bug: https://bugs.gentoo.org/744868
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 eapi-differences.tex | 4 ++++
14 pkg-mgr-commands.tex | 20 ++++++++++++++++++--
15 2 files changed, 22 insertions(+), 2 deletions(-)
16
17 diff --git a/eapi-differences.tex b/eapi-differences.tex
18 index 0579fa3..559a686 100644
19 --- a/eapi-differences.tex
20 +++ b/eapi-differences.tex
21 @@ -313,6 +313,9 @@ Controllable stripping & \compactfeatureref{dostrip} &
22 \t{dostrip} & \compactfeatureref{dostrip} &
23 No & No & No & Yes & Yes \\
24
25 +\t{usev} second arg & \compactfeatureref{usev} &
26 + No & No & No & No & Yes \\
27 +
28 \t{use_with} empty third arg & \compactfeatureref{use-with} &
29 * & Yes & Yes & Yes & Yes \\
30
31 @@ -532,6 +535,7 @@ EAPI 8 is EAPI 7 with the following changes:
32 \item Less strict naming rules for files in \t{updates} directory, \featureref{updates-filenames}.
33 \item \t{dosym} can create relative paths, \featureref{dosym-relative}.
34 \item \t{PROPERTIES}, \t{RESTRICT} accumulated across eclasses, \featureref{accumulate-vars}.
35 +\item \t{usev} supports an optional second argument, \featureref{usev}.
36 \end{compactitem}
37
38 \ChangeWhenAddingAnEAPI{8}
39
40 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
41 index 8d5c903..41b3b47 100644
42 --- a/pkg-mgr-commands.tex
43 +++ b/pkg-mgr-commands.tex
44 @@ -931,8 +931,10 @@ table~\ref{tab:use-list-strictness}.
45 \item[use] Returns shell true (0) if the first argument (a \t{USE} flag name) is enabled, false
46 otherwise. If the flag name is prefixed with \t{!}, returns true if the flag is disabled, and
47 false if it is enabled. It is guaranteed that this command is quiet.
48 -\item[usev] The same as \t{use}, but also prints the flag name if the condition
49 - is met.
50 +\item[usev] \featurelabel{usev} The same as \t{use}, but also prints the flag name if the condition
51 + is met. In EAPIs listed in table~\ref{tab:usev-second-arg} as supporting an optional second
52 + argument for \t{usev}, prints the second argument instead, if it is specified and if the
53 + condition is met.
54 \item[useq] Deprecated synonym for \t{use}.
55 In EAPIs listed in table~\ref{tab:banned-commands-table-2}, this command is banned as per
56 section~\ref{sec:banned-commands}.
57 @@ -973,6 +975,20 @@ table~\ref{tab:use-list-strictness}.
58 \end{tabular}
59 \end{centertable}
60
61 +\ChangeWhenAddingAnEAPI{8}
62 +\begin{centertable}{EAPIs supporting an optional second argument in \t{usev}}
63 + \label{tab:usev-second-arg}
64 + \begin{tabular}{ll}
65 + \toprule
66 + \multicolumn{1}{c}{\textbf{EAPI}} &
67 + \multicolumn{1}{c}{\textbf{Supports optional second argument?}} \\
68 + \midrule
69 + 0, 1, 2, 3, 4, 5, 6, 7 & No \\
70 + 8 & Yes \\
71 + \bottomrule
72 + \end{tabular}
73 +\end{centertable}
74 +
75 \ChangeWhenAddingAnEAPI{8}
76 \begin{centertable}{EAPIs supporting empty third argument in \t{use_with} and \t{use_enable}}
77 \label{tab:use-with-third-arg}