cvs: peardoc /en/guide/developers packagedef.xml
| From: | Martin Jansen | Date: | Sat, 05 Apr 2003 14:46:05 +0000 |
| Subject: | cvs: peardoc /en/guide/developers packagedef.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-608@lists.php.net to get a copy of this message | ||
mj Sat Apr 5 09:46:05 2003 EDT
Modified files:
/peardoc/en/guide/developers packagedef.xml
Log:
* Overhaul of the dependency description
Index: peardoc/en/guide/developers/packagedef.xml diff -u peardoc/en/guide/developers/packagedef.xml:1.2 peardoc/en/guide/developers/packagedef.xml:1.3 --- peardoc/en/guide/developers/packagedef.xml:1.2 Sat Jan 25 23:09:56 2003 +++ peardoc/en/guide/developers/packagedef.xml Sat Apr 5 09:46:05 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -179,6 +179,23 @@ </itemizedlist> </para> </listitem> + <listitem> + <para> + <literal><deps></literal>: List of dependencies of the + package. + <itemizedlist> + <listitem> + <para> + <literal> + <dep type="xxx" rel="yyy">name</dep> + </literal>: For more information about dependencies, please + see + <link linkend="guide.developers.packagedef.deps">below</link>. + </para> + </listitem> + </itemizedlist> + </para> + </listitem> </itemizedlist> </sect2> @@ -287,11 +304,12 @@ <sect2> <title>The file roles</title> <para> - The <emphasis>role</emphasis>-attribute in the <file> tag - defines where there file will be installed on the system. + The <literal>role</literal>-attribute in the <file> tag + defines what type the file has and in which location it should + be installed. <table> - <title>role values</title> - <tgroup cols="4"> + <title>Possible values</title> + <tgroup cols="3"> <thead> <row> <entry>Value</entry> @@ -309,7 +327,7 @@ <row> <entry>ext</entry> - <entry>Extension, dynamical loadable library</entry> + <entry>Extension, dynamically loadable library</entry> <entry>the PHP extension directory or <constant>PHP_PEAR_EXTENSION_DIR</constant> if defined</entry> @@ -354,33 +372,47 @@ </para> </sect2> - <sect2> + <sect2 id="guide.developers.packagedef.deps"> <title>Defining Dependencies</title> - <!-- <titleabbrev>DD</titleabbrev> --> <para> The PEAR Package Manager supports checking for different system capabilities. You define those - dependencies with the <dep> tag: - <programlisting> - <![CDATA[ - <dep type="" rel="" version=""> - ]]> - </programlisting> + dependencies with the <literal><dep></literal> tag: + <example> + <title><filename>package.xml</filename> with dependencies</title> + <simpara> + The following example shows how to specificy dependencies for + PHP 4.3.0 or better and <classname>XML_Parser</classname> 1.0. + </simpara> + <programlisting role="xml"> + <![CDATA[ +<?xml version="1.0" encoding="ISO-8859-1" ?> + +[...] + </release> + <deps> + <dep type="php" rel="ge">4.3.0</dep> + <dep type="pkg" rel="has" version="1.0">XML_Parser</dep> + </deps> +</package> + ]]> + </programlisting> + </example> </para> <sect3> - <title>The type-attribute</title> + <title>The <literal>type</literal>-attribute</title> <para> - The following <emphasis>types</emphasis> are supported: + The following <literal>type</literal>s are supported: <table> - <title>type values</title> + <title>type values</title> <tgroup cols="4"> <thead> <row> <entry>Value</entry> <entry></entry> <entry>Meaning</entry> - <entry>version value example</entry> + <entry>Example</entry> </row> </thead> <tbody> @@ -420,7 +452,7 @@ <entry>os</entry> <entry>Operating System</entry> <entry>depends on a certain OS version</entry> - <entry><quote>Win</quote></entry> + <entry><quote>Linux</quote></entry> </row> <row> @@ -433,7 +465,7 @@ <row> <entry>zend</entry> <entry>Zend</entry> - <entry>depends on a certain Zend version (PHP Core)</entry> + <entry>depends on a certain version of the Zend API</entry> <entry><quote>2</quote></entry> </row> </tbody> @@ -449,9 +481,9 @@ </warning> </sect3> <sect3> - <title>The rel-attribute</title> + <title>The <literal>rel</literal>-attribute</title> <para> - The <emphasis>rel</emphasis>-attribute + The <literal>rel</literal>-attribute defines the relationship between the existing capability and the required. </para> @@ -463,7 +495,7 @@ <entry>Value</entry> <entry></entry> <entry>Meaning</entry> - <entry>usable with type</entry> + <entry>Can be used with</entry> </row> </thead> <tbody> @@ -472,7 +504,7 @@ <entry>has</entry> <entry>has</entry> <entry> - the existing capability must has the + the existing capability must have the requirement - version-attribute is not required </entry> @@ -483,7 +515,7 @@ <entry>eq</entry> <entry>equal</entry> <entry> - the existing capability must exactly match the + the the existing capability must exactly match the version value </entry> <entry>pkg, ext, php, prog, os, sapi, zend</entry> @@ -491,20 +523,19 @@ <row> <entry>lt</entry> - <entry>less then</entry> + <entry>less than</entry> <entry> - the existing capability must lesser then the - version value + the existing capability must be less than the version value </entry> <entry>pkg, ext, php, zend</entry> </row> <row> <entry>le</entry> - <entry>less then or equal</entry> + <entry>less than or equal</entry> <entry> - the existing capability must lesser then the - version value or equal + the existing capability must be less than or equal to the + version value </entry> <entry>pkg, ext, php, zend</entry> </row> @@ -513,18 +544,18 @@ <entry>gt</entry> <entry>greater then</entry> <entry> - the existing capability must greater then the - version value + the existing capability must be greater than the version + value </entry> <entry>pkg, ext, php, zend</entry> </row> <row> <entry>ge</entry> - <entry>greater then or equal</entry> + <entry>greater than or equal</entry> <entry> - the existing capability must greater then the - version value or equal + the existing capability must greater than or equal to the + version value </entry> <entry>pkg, ext, php, zend</entry> </row> @@ -533,18 +564,17 @@ </tgroup> </table> <para> - The value <quote>has</quote> is the default value, if you not - define a <emphasis>rel</emphasis> attribute. + <literal>Has</literal> will be used if no other value has been + defined. </para> </sect3> <sect3> - <title>The version-attribute</title> + <title>The <literal>version</literal>-attribute</title> <para> - The <emphasis>version</emphasis>-attribute defines which value should - use to compare. + The attribute <literal>version</literal> defines the version + that is used to compare. </para> - </sect3> </sect2> </sect1>
Index: peardoc/en/guide/developers/packagedef.xml diff -u peardoc/en/guide/developers/packagedef.xml:1.2 peardoc/en/guide/developers/packagedef.xml:1.3 --- peardoc/en/guide/developers/packagedef.xml:1.2 Sat Jan 25 23:09:56 2003 +++ peardoc/en/guide/developers/packagedef.xml Sat Apr 5 09:46:05 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -179,6 +179,23 @@ </itemizedlist> </para> </listitem> + <listitem> + <para> + <literal><deps></literal>: List of dependencies of the + package. + <itemizedlist> + <listitem> + <para> + <literal> + <dep type="xxx" rel="yyy">name</dep> + </literal>: For more information about dependencies, please + see + <link linkend="guide.developers.packagedef.deps">below</link>. + </para> + </listitem> + </itemizedlist> + </para> + </listitem> </itemizedlist> </sect2> @@ -287,11 +304,12 @@ <sect2> <title>The file roles</title> <para> - The <emphasis>role</emphasis>-attribute in the <file> tag - defines where there file will be installed on the system. + The <literal>role</literal>-attribute in the <file> tag + defines what type the file has and in which location it should + be installed. <table> - <title>role values</title> - <tgroup cols="4"> + <title>Possible values</title> + <tgroup cols="3"> <thead> <row> <entry>Value</entry> @@ -309,7 +327,7 @@ <row> <entry>ext</entry> - <entry>Extension, dynamical loadable library</entry> + <entry>Extension, dynamically loadable library</entry> <entry>the PHP extension directory or <constant>PHP_PEAR_EXTENSION_DIR</constant> if defined</entry> @@ -354,33 +372,47 @@ </para> </sect2> - <sect2> + <sect2 id="guide.developers.packagedef.deps"> <title>Defining Dependencies</title> - <!-- <titleabbrev>DD</titleabbrev> --> <para> The PEAR Package Manager supports checking for different system capabilities. You define those - dependencies with the <dep> tag: - <programlisting> - <![CDATA[ - <dep type="" rel="" version=""> - ]]> - </programlisting> + dependencies with the <literal><dep></literal> tag: + <example> + <title><filename>package.xml</filename> with dependencies</title> + <simpara> + The following example shows how to specificy dependencies for + PHP 4.3.0 or better and <classname>XML_Parser</classname> 1.0. + </simpara> + <programlisting role="xml"> + <![CDATA[ +<?xml version="1.0" encoding="ISO-8859-1" ?> + +[...] + </release> + <deps> + <dep type="php" rel="ge">4.3.0</dep> + <dep type="pkg" rel="has" version="1.0">XML_Parser</dep> + </deps> +</package> + ]]> + </programlisting> + </example> </para> <sect3> - <title>The type-attribute</title> + <title>The <literal>type</literal>-attribute</title> <para> - The following <emphasis>types</emphasis> are supported: + The following <literal>type</literal>s are supported: <table> - <title>type values</title> + <title>type values</title> <tgroup cols="4"> <thead> <row> <entry>Value</entry> <entry></entry> <entry>Meaning</entry> - <entry>version value example</entry> + <entry>Example</entry> </row> </thead> <tbody> @@ -420,7 +452,7 @@ <entry>os</entry> <entry>Operating System</entry> <entry>depends on a certain OS version</entry> - <entry><quote>Win</quote></entry> + <entry><quote>Linux</quote></entry> </row> <row> @@ -433,7 +465,7 @@ <row> <entry>zend</entry> <entry>Zend</entry> - <entry>depends on a certain Zend version (PHP Core)</entry> + <entry>depends on a certain version of the Zend API</entry> <entry><quote>2</quote></entry> </row> </tbody> @@ -449,9 +481,9 @@ </warning> </sect3> <sect3> - <title>The rel-attribute</title> + <title>The <literal>rel</literal>-attribute</title> <para> - The <emphasis>rel</emphasis>-attribute + The <literal>rel</literal>-attribute defines the relationship between the existing capability and the required. </para> @@ -463,7 +495,7 @@ <entry>Value</entry> <entry></entry> <entry>Meaning</entry> - <entry>usable with type</entry> + <entry>Can be used with</entry> </row> </thead> <tbody> @@ -472,7 +504,7 @@ <entry>has</entry> <entry>has</entry> <entry> - the existing capability must has the + the existing capability must have the requirement - version-attribute is not required </entry> @@ -483,7 +515,7 @@ <entry>eq</entry> <entry>equal</entry> <entry> - the existing capability must exactly match the + the the existing capability must exactly match the version value </entry> <entry>pkg, ext, php, prog, os, sapi, zend</entry> @@ -491,20 +523,19 @@ <row> <entry>lt</entry> - <entry>less then</entry> + <entry>less than</entry> <entry> - the existing capability must lesser then the - version value + the existing capability must be less than the version value </entry> <entry>pkg, ext, php, zend</entry> </row> <row> <entry>le</entry> - <entry>less then or equal</entry> + <entry>less than or equal</entry> <entry> - the existing capability must lesser then the - version value or equal + the existing capability must be less than or equal to the + version value </entry> <entry>pkg, ext, php, zend</entry> </row> @@ -513,18 +544,18 @@ <entry>gt</entry> <entry>greater then</entry> <entry> - the existing capability must greater then the - version value + the existing capability must be greater than the version + value </entry> <entry>pkg, ext, php, zend</entry> </row> <row> <entry>ge</entry> - <entry>greater then or equal</entry> + <entry>greater than or equal</entry> <entry> - the existing capability must greater then the - version value or equal + the existing capability must greater than or equal to the + version value </entry> <entry>pkg, ext, php, zend</entry> </row> @@ -533,18 +564,17 @@ </tgroup> </table> <para> - The value <quote>has</quote> is the default value, if you not - define a <emphasis>rel</emphasis> attribute. + <literal>Has</literal> will be used if no other value has been + defined. </para> </sect3> <sect3> - <title>The version-attribute</title> + <title>The <literal>version</literal>-attribute</title> <para> - The <emphasis>version</emphasis>-attribute defines which value should - use to compare. + The attribute <literal>version</literal> defines the version + that is used to compare. </para> - </sect3> </sect2> </sect1>