[translate] web/xml/packaging packaging.en.xml,1.26,1.27

Daniel Macks <[email protected]>
Newsgroups gmane.os.apple.fink.i18n
Message-ID <[email protected]>
Update of /cvsroot/fink/web/xml/packaging

Modified Files:
	packaging.en.xml 
Log Message:
Explained order-of-operations in Depends. Documented the single-string
form of conditional syntax.

Index: packaging.en.xml
===================================================================
RCS file: /cvsroot/fink/web/xml/packaging/packaging.en.xml,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- packaging.en.xml	27 Apr 2004 22:43:45 -0000	1.26
+++ packaging.en.xml	30 Apr 2004 08:23:47 -0000	1.27
@@ -1411,16 +1411,25 @@
 If you want to offer the user both options, make two separate
 packages, e.g. wget and wget-ssl.
 </p><p>
+Order of operations: logical &quot;OR&quot; (list of alternatives) has
+a higher precedence (binds more tightly) than the logical
+&quot;AND&quot; between each package (or set of alternatives) in the
+comma-separated list. Unlike the use of parentheses in arithmetic,
+there is no way to specify alternative groups of packages or otherwise
+change the order of operations in <code>Depends</code> and related
+fields.
+</p><p>
 Starting with a post-0.18.2 CVS version of fink, you can have
 conditional dependencies. These are specified by placing
 <code>(string1 op string2)</code> before a package name. Percent
-expansion is performed as usual and then the two strings are compared
+expansion is performed as usual and then the two strings
+(neither of which can be null) are compared
 according to the <code>op</code> operator: &lt;&lt;, &lt;=, =, !=,
 &gt;&gt;, &gt;=. The immediately-following package is only considered
 as a dependency if the comparison is true.
 </p><p>
 You can use this format to simplify maintaining several similar
-packages. For example, both elinks and elinks-ssl could list:
+packages. For example, the packages elinks and elinks-ssl could both list:
 </p>
 <codeblock>Depends: (%n = elinks-ssl) openssl097-shlibs, expat-shlibs</codeblock>
 <p>
@@ -1431,6 +1440,19 @@
 and elinks-ssl list:
 </p>
 <codeblock>Depends: openssl097-shlibs, expat-shlibs</codeblock>
+<p>
+As an alternative syntax, you can also specify <code>(string)</code>,
+which is &quot;true&quot; if <code>string</code> is non-null. For example:
+</p>
+<codeblock>
+Package: nethack%type_pkg[-x11]
+Type: -x11 (boolean)
+Depends: (%type_pkg[-x11]) x11
+</codeblock>
+<p>
+would set the package x11 as a dependency for the nethack-x11 variant
+but not for the nethack variant.
+</p>
 </itemd></item>
 
 <item><itemt>BuildDepends</itemt>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.