1 |
commit: e1d4dcd04ea940cee74e9c9d907b615620698278 |
2 |
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 31 21:17:59 2012 +0000 |
4 |
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 31 21:17:59 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/devmanual.git;a=commit;h=e1d4dcd0 |
7 |
|
8 |
ebuild-writing/eapi: Add case for selecting at least one use flag |
9 |
|
10 |
--- |
11 |
ebuild-writing/eapi/text.xml | 8 ++++++++ |
12 |
1 files changed, 8 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/ebuild-writing/eapi/text.xml b/ebuild-writing/eapi/text.xml |
15 |
index 4ab2789..9d7696b 100644 |
16 |
--- a/ebuild-writing/eapi/text.xml |
17 |
+++ b/ebuild-writing/eapi/text.xml |
18 |
@@ -590,6 +590,14 @@ REQUIRED_USE="^^ ( foo bar baz )" |
19 |
While an XOR could be formed from usual <c>DEPEND</c> syntax, a |
20 |
specific <c>^^</c> operator has been added for this case. |
21 |
</p> |
22 |
+ <p> |
23 |
+ Finally, to state "at least one of <c>foo</c>, <c>bar</c>, or |
24 |
+ <c>baz</c> must be set": |
25 |
+ </p> |
26 |
+ <codesample lang="ebuild"> |
27 |
+REQUIRED_USE="|| ( foo bar baz )" |
28 |
+ </codesample> |
29 |
+ |
30 |
<important> |
31 |
See section |
32 |
<uri link="::general-concepts/use-flags/#conflicting-use-flags" /> |