cvs: peardoc /en/guide/developers package2.xml packagedef.xml
| From: | Christian Weiske | Date: | Mon, 09 Apr 2007 19:52:46 +0000 |
| Subject: | cvs: peardoc /en/guide/developers package2.xml packagedef.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9612@lists.php.net to get a copy of this message | ||
cweiske Mon Apr 9 19:52:46 2007 UTC
Modified files:
/peardoc/en/guide/developers package2.xml packagedef.xml
Log:
Add notes about adoption and package.xmk v1 deprecation
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/package2.xml?r1=1.13&r2=1.14&diff_format=u
Index: peardoc/en/guide/developers/package2.xml
diff -u peardoc/en/guide/developers/package2.xml:1.13 peardoc/en/guide/developers/package2.xml:1.14
--- peardoc/en/guide/developers/package2.xml:1.13 Sun Sep 18 05:30:15 2005
+++ peardoc/en/guide/developers/package2.xml Mon Apr 9 19:52:46 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<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>
@@ -35,7 +35,7 @@
</para>
<simpara>
For those of you with an existing package.xml version 1.0, you can create an approximate
- equivalent package using the
+ equivalent package using the
</simpara>
<para>
<screen>
@@ -44,8 +44,10 @@
</userinput>
</screen>
</para>
+
<simpara>
- command. Note that as of version 1.6.0a1, PEAR_PackageFileManager supports package.xml
+ command. Note that as of version 1.6.0a1,
+ <classname>PEAR_PackageFileManager</classname> supports package.xml
2.0 with the PEAR_PackageFileManager2 class.
</simpara>
<simpara>
@@ -53,6 +55,17 @@
<link linkend="guide.developers.package2.pecl">read here</link>.
</simpara>
+ <note>
+ <para>
+ <filename>package.xml</filename> version 2.0 is supported from PEAR 1.4 on.
+ Current PEAR adoption rates can be found at
+ <ulink url="http://pear.php.net/~greg/stats/">pear.php.net/~greg/stats/</ulink>.
+ As of 2007-04, PEAR 1.4 or greater is used in more than 99.8% of all
+ installations in the wild that downloaded packages - there is no need
+ to support v1.0 for backwards compatibility anymore.
+ </para>
+ </note>
+
<sect2 id="guide.developers.package2.example">
<title>An example file with all elements</title>
@@ -325,11 +338,11 @@
</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 here (unfinished)
</para>
-
+
&guide.developers.package2.channel;
&guide.developers.package2.uri;
&guide.developers.package2.developers;
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/packagedef.xml?r1=1.34&r2=1.35&diff_format=u
Index: peardoc/en/guide/developers/packagedef.xml
diff -u peardoc/en/guide/developers/packagedef.xml:1.34
peardoc/en/guide/developers/packagedef.xml:1.35
--- peardoc/en/guide/developers/packagedef.xml:1.34 Thu Oct 12 21:54:13 2006
+++ peardoc/en/guide/developers/packagedef.xml Mon Apr 9 19:52:46 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.34 $ -->
+<!-- $Revision: 1.35 $ -->
<!--
WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING
THIS DOCUMENT YET.
@@ -15,8 +15,15 @@
<warning>
<title>package.xml version 1.0 is deprecated</title>
<para>
- package.xml 1.0 is deprecated, please use package.xml version 2.0,
- documentation is found at <link
linkend="guide.developers.package2">package.xml 2.0 documentation</link>
+ package.xml 1.0 is deprecated.
+ You should really be using package.xml version 2.0.
+ Documentation can be found at
+ <link linkend="guide.developers.package2">package.xml 2.0
documentation</link>.
+ </para>
+ <para>
+ <ulink url="http://pear.php.net/~greg/stats/">More
than 99.8% of all PEAR
+ installations in the wild</ulink> are capable of using package.xml 2.0
+ files, so you should not worry about backwards compatibility.
</para>
</warning>
@@ -140,7 +147,7 @@
</listitem>
<listitem>
<simpara>
- <literal><license></literal>: The <link
linkend="faq.licenses">license</link>
+ <literal><license></literal>: The <link
linkend="faq.licenses">license</link>
under which the code is available.
</simpara>
</listitem>
@@ -260,7 +267,7 @@
<title>Validing</title>
<para>
- In order to validate <filename>package.xml</filename> files one
+ In order to validate <filename>package.xml</filename> files one
can use the <command>xmllint</command> tool that comes with
<ulink url="&url.libxml;">libxml2</ulink>.
</para>
@@ -671,7 +678,7 @@
The attribute <literal>optional</literal> can be used when
a dependency is not required but having the package installed
can bring enhanced functionalities. The only legal values are "yes"
- and "no". If the optional attribute is not present, a dependency is
+ and "no". If the optional attribute is not present, a dependency is
required.
When <literal>optional="yes"</literal> is used, this attribute
will result in installation messages similar to the following messages: