Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms <gentoo-pms@l.g.o>
Subject: [gentoo-pms] [PATCH] EAPI 5 supports usex.
Date: Fri, 31 Aug 2012 16:23:16
Message-Id: 20544.58599.373978.688965@a1i15.kph.uni-mainz.de
1 Please review.
2
3 From 90b87edeaf92608805330c30f948e041410455d5 Mon Sep 17 00:00:00 2001
4 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
5 Date: Fri, 31 Aug 2012 18:17:37 +0200
6 Subject: [PATCH] EAPI 5 supports usex.
7
8 See bug 382963.
9 ---
10 eapi-differences.tex | 4 ++++
11 pkg-mgr-commands.tex | 23 +++++++++++++++++++++++
12 2 files changed, 27 insertions(+), 0 deletions(-)
13
14 diff --git a/eapi-differences.tex b/eapi-differences.tex
15 index c70231f..2c04dd7 100644
16 --- a/eapi-differences.tex
17 +++ b/eapi-differences.tex
18 @@ -184,6 +184,9 @@ Controllable compression & \compactfeatureref{controllable-compress} &
19 \t{use\_with} empty third arg & \compactfeatureref{use-with} &
20 No & No & No & No & Yes & Yes \\
21
22 +\t{usex} & \compactfeatureref{usex} &
23 + No & No & No & No & No & Yes \\
24 +
25 \t{unpack} support for \t{xz}? & \compactfeatureref{unpack-extensions} &
26 No & No & No & Yes & Yes & Yes \\
27
28 @@ -294,6 +297,7 @@ EAPI 5 is EAPI 4 with the following changes:
29 \featureref{host-root-option}.
30 \item \t{doheader} and \t{newheader} support, \featureref{doheader}.
31 \item \t{new*} can read from standard input, \featureref{newfoo-stdin}.
32 +\item \t{usex} support, \featureref{usex}.
33 \end{compactitem}
34
35 \ChangeWhenAddingAnEAPI{5}
36 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
37 index 0f003eb..a04556e 100644
38 --- a/pkg-mgr-commands.tex
39 +++ b/pkg-mgr-commands.tex
40 @@ -664,6 +664,12 @@ either behaviour is undefined or it is an error as decided by table~\ref{tab:use
41 \t{-{}-without-\$\{opt\}}.
42 \item[use\_enable] Works the same as \t{use\_with()}, but outputs \t{-{}-enable-} or \t{-{}-disable-}
43 instead of \t{-{}-with-} or \t{-{}-without-}.
44 +\item[usex] \featurelabel{usex} Accepts at least one and at most five arguments. The first argument
45 + is a USE flag name, any subsequent arguments (\t{\$\{arg2\}} to \t{\$\{arg5\}}) are string
46 + values. If not provided, \t{\$\{arg2\}} and \t{\$\{arg3\}} default to \t{yes} and \t{no},
47 + respectively; \t{\$\{arg4\}} and \t{\$\{arg5\}} default to the empty string. If the USE flag is
48 + set, outputs \t{\$\{arg2\}\$\{arg4\}}. Otherwise, outputs \t{\$\{arg3\}\$\{arg5\}}.
49 + Only available in EAPIs listed in table~\ref{tab:usex-table} as supporting \t{usex}.
50 \end{description}
51
52 \ChangeWhenAddingAnEAPI{5}
53 @@ -701,6 +707,23 @@ instead of \t{-{}-with-} or \t{-{}-without-}.
54 \end{tabular}
55 \end{centertable}
56
57 +\ChangeWhenAddingAnEAPI{5}
58 +\begin{centertable}{EAPIs supporting \t{usex}} \label{tab:usex-table}
59 + \begin{tabular}{ l l }
60 + \toprule
61 + \multicolumn{1}{c}{\textbf{EAPI}} &
62 + \multicolumn{1}{c}{\textbf{Supports \t{usex}?}} \\
63 + \midrule
64 + \t{0} & No \\
65 + \t{1} & No \\
66 + \t{2} & No \\
67 + \t{3} & No \\
68 + \t{4} & No \\
69 + \t{5} & Yes \\
70 + \bottomrule
71 + \end{tabular}
72 +\end{centertable}
73 +
74 \subsubsection{Text List Functions}
75 These functions check whitespace-separated lists for a particular value.
76
77 --
78 1.7.8.6

Replies

Subject Author
[gentoo-pms] Re: [PATCH] EAPI 5 supports usex. Ulrich Mueller <ulm@g.o>