Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH] pkg-mgr-commands.tex: Allow inverted condition in use_with.
Date: Sun, 12 Aug 2018 13:13:09
Message-Id: w6gpnynafu0.fsf@kph.uni-mainz.de
1 This allows calls like "use_with !foo bar" or "use_enable !foo bar"
2 which are supported by all three package managers and widely used in
3 the tree.
4
5 Explicitly forbid the "use_with !foo" one-argument form. It is not
6 used in the tree, and ebuilds can use the more explicit two-argument
7 form instead. (Current portage-2.3.46 outputs "--with-!foo".)
8 ---
9 pkg-mgr-commands.tex | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
13 index f51e0f0..74c8983 100644
14 --- a/pkg-mgr-commands.tex
15 +++ b/pkg-mgr-commands.tex
16 @@ -846,7 +846,8 @@ table~\ref{tab:use-list-strictness}.
17 an empty third argument is treated as if it weren't provided. If the USE flag is set, outputs
18 \t{-{}-with-\$\{opt\}=\$\{value\}} if the third argument was provided, and
19 \t{-{}-with-\$\{opt\}} otherwise. If the flag is not set, then it outputs
20 - \t{-{}-without-\$\{opt\}}.
21 + \t{-{}-without-\$\{opt\}}. The condition is inverted if the flag name is prefixed with~\t{!};
22 + this is valid only for the two- and three-argument forms.
23 \item[use_enable] Works the same as \t{use_with()}, but outputs \t{-{}-enable-} or
24 \t{-{}-disable-} instead of \t{-{}-with-} or \t{-{}-without-}.
25 \item[usex] \featurelabel{usex} Accepts at least one and at most five arguments. The first argument
26 --
27 2.18.0

Attachments

File name MIME type
signature.asc application/pgp-signature