cvs: peardoc /peardoc2/en/guide/developers packagedef.xml

From: Date: Sun, 26 Jan 2003 04:09:56 +0000
Subject: cvs: peardoc /peardoc2/en/guide/developers packagedef.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-312@lists.php.net to get a copy of this message
alexmerz Sat Jan 25 23:09:56 2003 EDT Modified files: /peardoc/peardoc2/en/guide/developers packagedef.xml Log: add notes about file roles and deps, still needs a larger rewrite

Index: peardoc/peardoc2/en/guide/developers/packagedef.xml diff -u peardoc/peardoc2/en/guide/developers/packagedef.xml:1.1.1.1 peardoc/peardoc2/en/guide/developers/packagedef.xml:1.2 --- peardoc/peardoc2/en/guide/developers/packagedef.xml:1.1.1.1 Mon Sep 30 23:23:53 2002 +++ peardoc/peardoc2/en/guide/developers/packagedef.xml Sat Jan 25 23:09:56 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1.1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -283,7 +283,271 @@ to ask on the <ulink url="mailto:&email.pear.general;">mailinglist</ulink>. </para> </sect2> - </sect1> + + <sect2> + <title>The file roles</title> + <para> + The <emphasis>role</emphasis>-attribute in the &lt;file&gt; tag + defines where there file will be installed on the system. + <table> + <title>role values</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Value</entry> + <entry></entry> + <entry>Destination dir</entry> + </row> + </thead> + <tbody> + + <row> + <entry>php</entry> + <entry>PHP source file</entry> + <entry>the directory is determined by the package name</entry> + </row> + + <row> + <entry>ext</entry> + <entry>Extension, dynamical loadable library</entry> + <entry>the PHP extension directory or + <constant>PHP_PEAR_EXTENSION_DIR</constant> + if defined</entry> + </row> + + <row> + <entry>doc</entry> + <entry>Documentation file</entry> + <entry>{PEAR_documentation_dir}/Package_Name/</entry> + </row> + + <row> + <entry>data</entry> + <entry>Package related data files (grapics etc)</entry> + <entry>{PEAR_data_dir}/Package_Name/</entry> + </row> + + <row> + <entry>test</entry> + <entry>Package related data files (grapics etc)</entry> + <entry>{PEAR_test_dir}/Package_Name/</entry> + </row> + + <row> + <entry>script</entry> + <entry>Package related shell scripts</entry> + <entry>the PHP binary directory or + <constant>PHP_PEAR_BIN_DIR</constant> + if defined</entry> + </row> + + <row> + <entry>src and extsrc</entry> + <entry>C or C++ source code</entry> + <entry>not copied directly - used to build a + extension</entry> + </row> + + </tbody> + </tgroup> + </table> + </para> + + </sect2> + <sect2> + <title>Defining Dependencies</title> + <!-- <titleabbrev>DD</titleabbrev> --> + + <para> + The PEAR Package Manager supports checking for + different system capabilities. You define those + dependencies with the &lt;dep&gt; tag: + <programlisting> + <![CDATA[ + <dep type="" rel="" version=""> + ]]> + </programlisting> + </para> + <sect3> + <title>The type-attribute</title> + <para> + The following <emphasis>types</emphasis> are supported: + <table> + <title>type values</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Value</entry> + <entry></entry> + <entry>Meaning</entry> + <entry>version value example</entry> + </row> + </thead> + <tbody> + + <row> + <entry>pkg</entry> + <entry>Package</entry> + <entry>depends on a certain Package</entry> + <entry><quote>HTML_Flexy</quote></entry> + </row> + + <row> + <entry>ext</entry> + <entry>Extension</entry> + <entry>depends on a certain PHP extension</entry> + <entry><quote>curl</quote></entry> + </row> + + <row> + <entry>php</entry> + <entry>PHP</entry> + <entry>depends on a certain PHP version</entry> + <entry><quote>4.2</quote></entry> + </row> + + <row> + <entry>prog</entry> + <entry>Program</entry> + <entry> + depends on a certain Program avaible in the + system path + </entry> + <entry><quote>latex</quote></entry> + </row> + + <row> + <entry>os</entry> + <entry>Operating System</entry> + <entry>depends on a certain OS version</entry> + <entry><quote>Win</quote></entry> + </row> + + <row> + <entry>sapi</entry> + <entry>Server API</entry> + <entry>depends on a certain Server API</entry> + <entry><quote>Apache</quote></entry> + </row> + + <row> + <entry>zend</entry> + <entry>Zend</entry> + <entry>depends on a certain Zend version (PHP Core)</entry> + <entry><quote>2</quote></entry> + </row> + </tbody> + </tgroup> + </table> + + </para> + <warning> + <simpara> + The DTD for the package definition file supports + further types, but those are not supported yet. + </simpara> + </warning> + </sect3> + <sect3> + <title>The rel-attribute</title> + <para> + The <emphasis>rel</emphasis>-attribute + defines the relationship between the existing + capability and the required. + </para> + <table> + <title>rel values</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Value</entry> + <entry></entry> + <entry>Meaning</entry> + <entry>usable with type</entry> + </row> + </thead> + <tbody> + + <row> + <entry>has</entry> + <entry>has</entry> + <entry> + the existing capability must has the + requirement - version-attribute is + not required + </entry> + <entry>pkg, ext, php, prog, os, sapi, zend</entry> + </row> + + <row> + <entry>eq</entry> + <entry>equal</entry> + <entry> + the existing capability must exactly match the + version value + </entry> + <entry>pkg, ext, php, prog, os, sapi, zend</entry> + </row> + + <row> + <entry>lt</entry> + <entry>less then</entry> + <entry> + the existing capability must lesser then the + version value + </entry> + <entry>pkg, ext, php, zend</entry> + </row> + + <row> + <entry>le</entry> + <entry>less then or equal</entry> + <entry> + the existing capability must lesser then the + version value or equal + </entry> + <entry>pkg, ext, php, zend</entry> + </row> + + <row> + <entry>gt</entry> + <entry>greater then</entry> + <entry> + the existing capability must greater then the + version value + </entry> + <entry>pkg, ext, php, zend</entry> + </row> + + <row> + <entry>ge</entry> + <entry>greater then or equal</entry> + <entry> + the existing capability must greater then the + version value or equal + </entry> + <entry>pkg, ext, php, zend</entry> + </row> + + </tbody> + </tgroup> + </table> + <para> + The value <quote>has</quote> is the default value, if you not + define a <emphasis>rel</emphasis> attribute. + </para> + </sect3> + <sect3> + <title>The version-attribute</title> + + <para> + The <emphasis>version</emphasis>-attribute defines which value should + use to compare. + </para> + + </sect3> + </sect2> + </sect1> </chapter> <!-- Keep this comment at the end of the file
« previous php.pear.doc (#312) next »