cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 channel.xml developers.xml uri.xml

From: Date: Fri, 04 Mar 2005 01:45:54 +0000
Subject: cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 channel.xml developers.xml uri.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5612@lists.php.net to get a copy of this message
cellog Thu Mar 3 20:45:54 2005 EDT Added files: /peardoc/en/guide/developers package2.xml /peardoc/en/guide/developers/package2 channel.xml developers.xml uri.xml Log: begin work on full package.xml 2.0 docs

http://cvs.php.net/co.php/peardoc/en/guide/developers/package2.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2.xml +++ peardoc/en/guide/developers/package2.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <chapter id="guide.developers.package2"> <title>The package definition file <filename>package.xml</filename>, version 2.0</title> <titleabbrev><filename>package.xml 2.0</filename></titleabbrev> <sect1 id="guide.developers.package2.intro"> <title>A quick and dirty guide to version 2.0 of the package definition file <filename>package.xml</filename></title> <titleabbrev>Introduction</titleabbrev> <simpara> The package definition file <filename>package.xml</filename> is, as the name already implies, a well-formed XML file that contains all information about a PEAR package. Version 2.0 contains several important enhancements over version 1.0, including </simpara> <para> <itemizedlist> <listitem> <para> Channel support </para> </listitem> <listitem> <para> Binary PECL packages support </para> </listitem> <listitem> <para> More specific dependency resolution </para> </listitem> </itemizedlist> </para> <simpara> For those of you with an existing package.xml version 1.0, you can create an approximate equivalent package using the </simpara> <para> <screen> <userinput> &dollar; pear convert </userinput> </screen> </para> <simpara> command. Note that at this time, PEAR_PackageFileManager does not yet support package.xml 2.0. </simpara> <sect2 id="guide.developers.package2.example"> <title>An example file with all elements</title> <para> <programlisting role="xml"> &lt;?xml version=&quot;1.0&quot;?&gt; &lt;package version=&quot;2.0&quot; xmlns=&quot;http://pear.php.net/dtd/package-2.0&quot; xmlns:tasks=&quot;http://pear.php.net/dtd/tasks-1.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd&quot;&gt; &lt;name&gt;PEAR&lt;/name&gt; <link linkend="guide.developers.package2.channel">&lt;channel&gt;</link>pear.php.net&lt;/channel&gt; &lt;summary&gt;Any one-line summary&lt;/summary&gt; &lt;description&gt;any static long description. This text should not change very much between releases, use the &quot;notes&quot; tag for release notes &lt;/description&gt; <link linkend="guide.developers.package2.developers">&lt;lead&gt;</link> &lt;name&gt;Greg Beaver&lt;/name&gt; &lt;user&gt;cellog&lt;/user&gt; &lt;email&gt;cellog@php.net&lt;/email&gt; &lt;active&gt;yes&lt;/active&gt; &lt;/lead&gt; &lt;date&gt;2005-02-26&lt;/date&gt; &lt;time&gt;20:30:13&lt;/time&gt; &lt;-- note: &lt;time&gt; is optional --&gt; &lt;version&gt; &lt;release&gt;1.4.0a2&lt;/release&gt; &lt;api&gt;1.4.0&lt;/api&gt; &lt;/version&gt; &lt;stability&gt; &lt;release&gt;alpha&lt;/release&gt; &lt;api&gt;alpha&lt;/api&gt; &lt;/stability&gt; &lt;license uri=&quot;http://www.php.net/license/3_0.txt&quot;&gt;PHP License&lt;/license&gt; &lt;notes&gt; Put release notes here. They can be multi-line &lt;/notes&gt; &lt;contents&gt; &lt;dir name=&quot;/&quot;&gt; &lt;dir name=&quot;PEAR&quot;&gt; &lt;dir name=&quot;ChannelFile&quot;&gt; &lt;file name=&quot;Parser.php&quot; role=&quot;php&quot; /&gt; &lt;/dir&gt; &lt;!-- /PEAR/ChannelFile --&gt; &lt;file name=&quot;Dependency2.php&quot; role=&quot;php&quot;&gt; &lt;tasks:replace from=&quot;@PEAR-VER@&quot; to=&quot;version&quot; type=&quot;package-info&quot;/&gt; &lt;/file&gt; &lt;/dir&gt; &lt;!-- /PEAR --&gt; &lt;dir name=&quot;scripts&quot; baseinstalldir=&quot;/&quot;&gt; &lt;file name=&quot;pear.bat&quot; role=&quot;script&quot;&gt; &lt;tasks:replace from=&quot;@bin_dir@&quot; to=&quot;bin_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:windowseol/&gt; &lt;/file&gt; &lt;file name=&quot;pecl.bat&quot; role=&quot;script&quot;&gt; &lt;tasks:replace from=&quot;@bin_dir@&quot; to=&quot;bin_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:windowseol/&gt; &lt;/file&gt; &lt;file name=&quot;pear.sh&quot; role=&quot;script&quot;&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_dir@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@pear_version@&quot; to=&quot;version&quot; type=&quot;package-info&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:unixeol/&gt; &lt;/file&gt; &lt;file name=&quot;pecl.sh&quot; role=&quot;script&quot;&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_dir@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@pear_version@&quot; to=&quot;version&quot; type=&quot;package-info&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:unixeol/&gt; &lt;/file&gt; &lt;file name=&quot;pearcmd.php&quot; role=&quot;php&quot;&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_dir@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@pear_version@&quot; to=&quot;version&quot; type=&quot;package-info&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;/file&gt; &lt;file name=&quot;peclcmd.php&quot; role=&quot;php&quot;&gt; &lt;tasks:replace from=&quot;@php_bin@&quot; to=&quot;php_bin&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@php_dir@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;tasks:replace from=&quot;@pear_version@&quot; to=&quot;version&quot; type=&quot;package-info&quot; /&gt; &lt;tasks:replace from=&quot;@include_path@&quot; to=&quot;php_dir&quot; type=&quot;pear-config&quot; /&gt; &lt;/file&gt; &lt;/dir&gt; &lt;!-- /scripts --&gt; &lt;file name=&quot;package.dtd&quot; role=&quot;data&quot; /&gt; &lt;file name=&quot;postinstall.php&quot; role=&quot;php&quot;&gt; &lt;tasks:postinstallscript/&gt; &lt;/file&gt; &lt;file name=&quot;template.spec&quot; role=&quot;data&quot; /&gt; &lt;/dir&gt; &lt;!-- / --&gt; &lt;/contents&gt; &lt;dependencies&gt; &lt;required&gt; &lt;php&gt; &lt;min&gt;4.2&lt;/min&gt; &lt;max&gt;6.0.0&lt;/max&gt; &lt;/php&gt; &lt;pearinstaller&gt; &lt;min&gt;1.4.0dev13&lt;/min&gt; &lt;/pearinstaller&gt; &lt;package&gt; &lt;name&gt;Archive_Tar&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;1.1&lt;/min&gt; &lt;recommended&gt;1.2&lt;/recommended&gt; &lt;/package&gt; &lt;package&gt; &lt;name&gt;Console_Getopt&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;1.2&lt;/min&gt; &lt;recommended&gt;1.2&lt;/recommended&gt; &lt;/package&gt; &lt;package&gt; &lt;name&gt;XML_RPC&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;1.2.0RC1&lt;/min&gt; &lt;recommended&gt;1.2.0&lt;/recommended&gt; &lt;/package&gt; &lt;extension&gt; &lt;name&gt;xml&lt;/name&gt; &lt;/extension&gt; &lt;extension&gt; &lt;name&gt;pcre&lt;/name&gt; &lt;/extension&gt; &lt;/required&gt; &lt;optional&gt; &lt;package&gt; &lt;name&gt;PEAR_Frontend_Web&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;0.5.0&lt;/min&gt; &lt;/package&gt; &lt;package&gt; &lt;name&gt;PEAR_Frontend_Gtk&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;0.4.0&lt;/min&gt; &lt;/package&gt; &lt;/optional&gt; &lt;group name=&quot;remoteinstall&quot; hint=&quot;adds the ability to install packages to a remote ftp server&quot;&gt; &lt;package&gt; &lt;name&gt;Net_FTP&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;1.3.0RC1&lt;/min&gt; &lt;recommended&gt;1.3.0&lt;/recommended&gt; &lt;/package&gt; &lt;/group&gt; &lt;group name=&quot;webinstaller&quot; hint=&quot;PEAR's web-based installer&quot;&gt; &lt;package&gt; &lt;name&gt;PEAR_Frontend_Web&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;0.5.0&lt;/min&gt; &lt;/package&gt; &lt;/group&gt; &lt;group name=&quot;gtkinstaller&quot; hint=&quot;PEAR's PHP-GTK-based installer&quot;&gt; &lt;package&gt; &lt;name&gt;PEAR_Frontend_Gtk&lt;/name&gt; &lt;channel&gt;pear.php.net&lt;/channel&gt; &lt;min&gt;0.4.0&lt;/min&gt; &lt;/package&gt; &lt;/group&gt; &lt;/dependencies&gt; &lt;phprelease&gt; &lt;installconditions&gt; &lt;os&gt; &lt;name&gt;windows&lt;/name&gt; &lt;/os&gt; &lt;/installconditions&gt; &lt;filelist&gt; &lt;install as=&quot;pear.bat&quot; name=&quot;scripts/pear.bat&quot; /&gt; &lt;install as=&quot;pecl.bat&quot; name=&quot;scripts/pecl.bat&quot; /&gt; &lt;install as=&quot;pearcmd.php&quot; name=&quot;scripts/pearcmd.php&quot; /&gt; &lt;install as=&quot;peclcmd.php&quot; name=&quot;scripts/peclcmd.php&quot; /&gt; &lt;ignore name=&quot;scripts/pear.sh&quot; /&gt; &lt;ignore name=&quot;scripts/pecl.sh&quot; /&gt; &lt;/filelist&gt; &lt;/phprelease&gt; &lt;phprelease&gt; &lt;filelist&gt; &lt;install as=&quot;pear&quot; name=&quot;scripts/pear.sh&quot; /&gt; &lt;install as=&quot;pecl&quot; name=&quot;scripts/pecl.sh&quot; /&gt; &lt;install as=&quot;pearcmd.php&quot; name=&quot;scripts/pearcmd.php&quot; /&gt; &lt;install as=&quot;peclcmd.php&quot; name=&quot;scripts/peclcmd.php&quot; /&gt; &lt;ignore name=&quot;scripts/pear.bat&quot; /&gt; &lt;ignore name=&quot;scripts/pecl.bat&quot; /&gt; &lt;/filelist&gt; &lt;/phprelease&gt; &lt;changelog&gt; &lt;release&gt; &lt;version&gt; &lt;release&gt;1.3.5&lt;/release&gt; &lt;api&gt;1.3.0&lt;/api&gt; &lt;/version&gt; &lt;stability&gt; &lt;release&gt;stable&lt;/release&gt; &lt;api&gt;stable&lt;/api&gt; &lt;/stability&gt; &lt;date&gt;2005-02-26&lt;/date&gt; &lt;license uri=&quot;http://www.php.net/license/3_0.txt&quot;&gt;PHP License&lt;/license&gt; &lt;notes&gt; * fix Bug #3505: pecl can't install PDO * enhance pear run-tests dramatically * fix Bug #3506: pear install should export the pear version into the environment &lt;/notes&gt; &lt;/release&gt; &lt;release&gt; &lt;version&gt; &lt;release&gt;1.4.0a1&lt;/release&gt; &lt;api&gt;1.4.0&lt;/api&gt; &lt;/version&gt; &lt;stability&gt; &lt;release&gt;alpha&lt;/release&gt; &lt;api&gt;alpha&lt;/api&gt; &lt;/stability&gt; &lt;date&gt;2005-02-26&lt;/date&gt; &lt;license uri=&quot;http://www.php.net/license/3_0.txt&quot;&gt;PHP License&lt;/license&gt; &lt;notes&gt; This is a major milestone release for PEAR. In addition to several killer features, every single element of PEAR has a regression test, and so stability is much higher than any previous PEAR release, even with the alpha label. New features in a nutshell: * full support for channels * pre-download dependency validation * new package.xml 2.0 format allows tremendous flexibility while maintaining BC * support for optional dependency groups and limited support for sub-packaging * robust dependency support * full dependency validation on uninstall * support for binary PECL packages * remote install for hosts with only ftp access - no more problems with restricted host installation * full support for mirroring * support for bundling several packages into a single tarball * support for static dependencies on a url-based package Specific changes from 1.3.5: * Implement request #1789: SSL support for xml-rpc and download * Everything above here that you just read &lt;/notes&gt; &lt;/release&gt; &lt;/changelog&gt; &lt;/package&gt; </programlisting> </para> </sect2> </sect1> <sect1 id="guide.developers.package2.tags"> <title>Detailed Tag Reference for package.xml version 2.0</title> <para> Each tag that needs further explanation is documented below (unfinished) </para> &guide.developers.package2.channel; &guide.developers.package2.uri; &guide.developers.package2.developers; </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/channel.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/channel.xml +++ peardoc/en/guide/developers/package2/channel.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.channel"> <refnamediv> <refname>&lt;channel&gt;</refname> <refpurpose>What is a channel?</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.channel.intro"> <title>Quick introduction to channels</title> <para> Channels are new in PEAR 1.4.0. Channels are a systemized way of differentiating between different download sources. One such download source is pear.php.net, another is pecl.php.net, and there are several third party channels slowly springing up around the net. </para> <para> The &lt;channel&gt; tag should contain the full channel name, not any alias (don't use &quot;pear&quot;, use &quot;pear.php.net&quot;. </para> <para> A good rule of thumb to use when determining what channel name to use is &quot;where do I upload my releases to?&quot; If the answer is pear.php.net, that is your package's channel. If the answer is pecl.php.net, then that is your channel. </para> <para> If you aren't running a channel server and wish to serve your packages as well as allow other packages to remotely depend on your package, the new uri-based package distribution method is the best choice, see the &lt;uri&gt; tag documentation link below. </para> <refsect2> <title>See also:</title> <para> <link linkend="guide.developers.package2.uri">&lt;uri&gt;</link> </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/developers.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/developers.xml +++ peardoc/en/guide/developers/package2/developers.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.developers"> <refnamediv> <refname>&lt;lead&gt;, &lt;developer&gt;, &lt;contributor&gt;, and &lt;helper&gt;</refname> <refpurpose>Developer documentation for a release</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.developers.purpose"> <title>Documenting who develops a package</title> <para> In package.xml 1.0, a developer was documented using the &lt;maintainer&gt; tag inside of a redundant &lt;maintainers&gt; container tag. This has been simplified in package.xml 2.0 both to slightly speed parsing and to make validation of the xml simpler. Now, the contents of the &lt;role&gt; tag has been extracted as 4 tags to describe the maintainers of a package. </para> <para> In addition, a new internal tag &lt;active&gt; has been added, so that you can honor retired developers' work without having to remove them altogether from package.xml. </para> <para> <emphasis>WARNING:</emphasis> tag order is important. List leads followed by developers followed by contributors and finally helpers. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/uri.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/uri.xml +++ peardoc/en/guide/developers/package2/uri.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.uri"> <refnamediv> <refname>&lt;uri&gt;</refname> <refpurpose>When should I use &lt;uri&gt;?</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.uri.intro"> <title>When to use &lt;uri&gt; instead of &lt;channel&gt;</title> <para> If you do not have a channel server and wish to serve your packages so that others can depend on them, use &lt;uri&gt;. This should contain a static uri that links to a single package version's downloadable .tgz </para> <para> If you do not need to allow external remote dependencies, then simply use the pear.php.net channel as your package's channel. </para> <para> For instance, if you wish to serve package Foo version 1.1.0 from www.example.com, use the uri &quot;http://www.example.com/Foo-1.1.0&quot;. Note that the uri must contain the full path MINUS THE EXTENSION. Provide both Foo-1.1.0.tar and Foo-1.1.0.tgz for users without gzip. </para> <refsect2> <title>See also:</title> <para> <link linkend="guide.developers.package2.channel">&lt;channel&gt;</link> </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#5612) next »