Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH 15/22] EAPI 6 has in_iuse.
Date: Thu, 15 Oct 2015 10:50:52
Message-Id: 1444906221-30505-16-git-send-email-ulm@gentoo.org
In Reply to: [gentoo-pms] EAPI 6 draft for review by "Ulrich Müller"
1 Bug: 449862
2 ---
3 eapi-differences.tex | 4 ++++
4 pkg-mgr-commands.tex | 22 ++++++++++++++++++++--
5 2 files changed, 24 insertions(+), 2 deletions(-)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index b3035e3..6002785 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -216,6 +216,9 @@ Controllable compression & \compactfeatureref{docompress} &
12 \t{usex} & \compactfeatureref{usex} &
13 No & No & No & Yes & Yes \\
14
15 +\t{in\_iuse} & \compactfeatureref{in-iuse} &
16 + No & No & No & No & Yes \\
17 +
18 \t{unpack} support for \t{xz}? & \compactfeatureref{unpack-extensions} &
19 No & Yes & Yes & Yes & Yes \\
20
21 @@ -337,6 +340,7 @@ EAPI 6 is EAPI 5 with the following changes:
22 \item \t{eapply} support, \featureref{eapply}.
23 \item \t{eapply\_user} support, \featureref{eapply-user}.
24 \item \t{econf} adds \t{-{}-docdir} and \t{-{}-htmldir}, \featureref{econf-options}.
25 +\item \t{in\_iuse} support, \featureref{in-iuse}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{6}
29 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
30 index 961af2a..6b150c7 100644
31 --- a/pkg-mgr-commands.tex
32 +++ b/pkg-mgr-commands.tex
33 @@ -715,8 +715,9 @@ These functions provide behaviour based upon set or unset use flags. Ebuilds mus
34 these commands once the current phase function has returned. Ebuilds must not run any of these
35 functions in global scope.
36
37 -If any of these functions is called with a flag value that is not included in \t{IUSE\_EFFECTIVE},
38 -either behaviour is undefined or it is an error as decided by table~\ref{tab:use-list-strictness}.
39 +Unless otherwise noted, if any of these functions is called with a flag value that is not included
40 +in \t{IUSE\_EFFECTIVE}, either behaviour is undefined or it is an error as decided by
41 +table~\ref{tab:use-list-strictness}.
42
43 \begin{description}
44 \item[use] Returns shell true (0) if the first argument (a \t{USE} flag name) is enabled, false
45 @@ -742,6 +743,9 @@ either behaviour is undefined or it is an error as decided by table~\ref{tab:use
46 set, outputs \t{\$\{arg2\}\$\{arg4\}}. Otherwise, outputs \t{\$\{arg3\}\$\{arg5\}}.
47 The condition is inverted if the flag name is prefixed with~\t{!}.
48 Only available in EAPIs listed in table~\ref{tab:usex-table} as supporting \t{usex}.
49 +\item[in\_iuse] \featurelabel{in-iuse} Returns shell true (0) if the first argument (a \t{USE} flag
50 + name) is included in \t{IUSE\_EFFECTIVE}, false otherwise. Only available in EAPIs listed in
51 + table~\ref{tab:in-iuse} as supporting \t{in\_iuse}.
52 \end{description}
53
54 \ChangeWhenAddingAnEAPI{6}
55 @@ -786,6 +790,20 @@ either behaviour is undefined or it is an error as decided by table~\ref{tab:use
56 \end{tabular}
57 \end{centertable}
58
59 +\ChangeWhenAddingAnEAPI{6}
60 +\begin{centertable}{EAPIs supporting \t{in\_iuse}}
61 + \label{tab:in-iuse}
62 + \begin{tabular}{ l l }
63 + \toprule
64 + \multicolumn{1}{c}{\textbf{EAPI}} &
65 + \multicolumn{1}{c}{\textbf{Supports \t{in\_iuse}?}} \\
66 + \midrule
67 + 0, 1, 2, 3, 4, 5 & No \\
68 + 6 & Yes \\
69 + \bottomrule
70 + \end{tabular}
71 +\end{centertable}
72 +
73 \subsubsection{Text List Functions}
74 These functions check whitespace-separated lists for a particular value.
75
76 --
77 2.6.1

Replies

Subject Author
Re: [gentoo-pms] [PATCH 15/22] EAPI 6 has in_iuse. Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>