Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 299196
Collapse All | Expand All

(-)function-reference/query-functions/text.xml (-5 / +11 lines)
Lines 23-29 Link Here
23
      <c>use flagname</c>
23
      <c>use flagname</c>
24
    </ti>
24
    </ti>
25
    <ti>
25
    <ti>
26
      Returns a true value if and only if <c>flagname</c> is included in <c>USE</c>
26
      Returns a true value if and only if <c>flagname</c> is enabled.
27
      The condition is inverted if prefixed with an exclamation mark,
28
      <c>!flagname</c>.
29
      It is guaranteed that <c>use</c> produces no output.
27
    </ti>
30
    </ti>
28
  </tr>
31
  </tr>
29
  <tr>
32
  <tr>
Lines 31-37 Link Here
31
      <c>useq flagname</c>
34
      <c>useq flagname</c>
32
    </ti>
35
    </ti>
33
    <ti>
36
    <ti>
34
      As <c>use</c>, guaranteed to produce no output.
37
      Deprecated synonym for <c>use</c>.
35
    </ti>
38
    </ti>
36
  </tr>
39
  </tr>
37
  <tr>
40
  <tr>
Lines 65-72 Link Here
65
      <c>has flag string</c>
68
      <c>has flag string</c>
66
    </ti>
69
    </ti>
67
    <ti>
70
    <ti>
68
      Returns true if <c>flag</c> is included in the flag list <c>string</c> (example:
71
      Returns true if <c>flag</c> is included in the flag list <c>string</c>
69
      <c>if has ccache $FEATURES ; then</c>).
72
      (example: <c>if has ccache $FEATURES ; then</c>).
73
      The condition is inverted if prefixed with an exclamation mark,
74
      <c>!flag</c>.
75
      It is guaranteed that <c>has</c> produces no output.
70
    </ti>
76
    </ti>
71
  </tr>
77
  </tr>
72
  <tr>
78
  <tr>
Lines 74-80 Link Here
74
      <c>hasq flag string</c>
80
      <c>hasq flag string</c>
75
    </ti>
81
    </ti>
76
    <ti>
82
    <ti>
77
      As <c>has</c>, guaranteed quiet.
83
      Deprecated synonym for <c>has</c>.
78
    </ti>
84
    </ti>
79
  </tr>
85
  </tr>
80
  <tr>
86
  <tr>
(-)ebuild-writing/use-conditional-code/text.xml (-3 / +5 lines)
Lines 52-60 Link Here
52
</p>
52
</p>
53
53
54
<p>
54
<p>
55
You must not rely upon <c>use</c> producing an output <d/> this no longer happens.
55
It is guaranteed that <c>use</c> produces no output. If you need output
56
If you really need output displayed, use the <c>usev</c> function. The
56
displayed, use the <c>usev</c> function; it echoes the USE flag's name
57
<c>useq</c> function is available for explicitly requesting no output.
57
if the condition is met.
58
The <c>useq</c> function is a deprecated synonym for <c>use</c>, don't
59
use it in new code.
58
</p>
60
</p>
59
</body>
61
</body>
60
62
(-)eclass-writing/text.xml (-1 / +1 lines)
Lines 195-201 Link Here
195
195
196
domacosapp() {
196
domacosapp() {
197
    [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; &lt;new file&gt;"
197
    [[ -z "${1}" ]] &amp;&amp; die "usage: domacosapp &lt;file&gt; &lt;new file&gt;"
198
    if useq ppc-macos ; then
198
    if use ppc-macos ; then
199
        insinto /Applications
199
        insinto /Applications
200
        newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
200
        newins "$1" "${2:-${1}}" || die "Failed to install ${1}"
201
    fi
201
    fi

Return to bug 299196