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