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