cvs: peardoc /en/pyrus/extending packagefile.xml
[email protected] ("Greg Beaver")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <cvscellog1247160893@cvsserver> |
cellog Thu Jul 9 17:34:53 2009 UTC
Modified files:
/peardoc/en/pyrus/extending packagefile.xml
Log:
add docs on accessing pecl-specific properties in package.xml
http://cvs.php.net/viewvc.cgi/peardoc/en/pyrus/extending/packagefile.xml?r1=1.4&r2=1.5&diff_format=u
Index: peardoc/en/pyrus/extending/packagefile.xml
diff -u peardoc/en/pyrus/extending/packagefile.xml:1.4 peardoc/en/pyrus/extending/packagefile.xml:1.5
--- peardoc/en/pyrus/extending/packagefile.xml:1.4 Thu Jul 9 17:23:20 2009
+++ peardoc/en/pyrus/extending/packagefile.xml Thu Jul 9 17:34:52 2009
@@ -580,7 +580,26 @@
<section xml:id="pyrus.extending.packagefile.pecl">
<info><title>Accessing PECL properties</title></info>
<para>
- This document is a work in progress.
+ Accessing PECL properties is relatively simple, here is an example
+ illustrating them:
+ </para>
+ <para>
+ <programlisting role="php">
+ <![CDATA[
+<?php
+$package->type = 'extsrc'; // extension source release
+$package->configureoption['foothing']->prompt = 'Value for thing';
+$package->configureoption['with-zlib']->prompt('Support zlib compression?')->default('yes');
+
+$package->providesextension = 'foo';
+
+$package->type = 'extbin'; // extension binary package release
+$package->srcpackage = 'pecl.php.net/foo';
+// for packages that are binary releases of URI-based packages
+$package->srcuri = 'http://example.com/foo-1.2.3';
+?>
+ ]]>
+ </programlisting>
</para>
</section>
</section>