schlitt.info - php, photography and private stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Tobias Schlitt :Date: Thu, 27 Nov 2008 18:00:29 +0100 :Revision: 2 :Copyright: CC by-nc-sa ============================================================ A look at package2.xml and how to create a PEAR 1.4 package. ============================================================ :Description: I recently gave an overview on what will be new in PEAR 1.4, this time I'd like to start publishing some more detailed info on PEAR 1.4 news. Today's topic is package.xml version 2 and how to create a PEAR 1.4 package. I recently gave an `overview`__ on what will be new in `PEAR`__ 1.4, this time I'd like to start publishing some more detailed info on PEAR 1.4 news. Today's topic is package.xml version 2 and how to create a PEAR 1.4 package. .. __: /opensource/blog/0304_pear_1_4_at_the_horizon.html .. __: http://pear.php.net/package/PEAR **Update, 2005-02-26, 02:32**: I updated the little tutorial regarding Gregs comment. Sadly his XML input has been stripped by S9Y. I'll contact him to clear that up. **Update, 2005-02-26, 02:46**: Greg replied very quickly. Another update. :) This little article covers the creation of a package2.xml (package.xml version 2.0) and packaging a package with it. Best ways of learning are a) looking at exmaples and b) trial and error. I hope this little example will help you to move your package.xml to package2.xml a bit more smooth. Basically the conversion is pretty simple. The pear convert command (run the directory where your old package.xml lies) does a great job and converts all data for you. But in most cases, there will still be some work to be done. So, let's take a walk through the package2.xml of `Net_FTP`__ and look, what's in there. .. __: http://pear.php.net/package/Net_FTP :: This references to the package2.xml schema files are auto generated by the pear convert command. :: Net_FTP pear.php.net The first new tag is , which describes, in which channel your package is available. For PEAR packages, this is of course correct, as it is. For a PECL package pecl.php.net should be sufficient. :: Net_FTP provides... Net_FTP allows you to communicate with FTP servers... Tobias Schlitt toby toby@php.net yes The and tags have been dropped. Package maintainers are now listed directly inside the main tag, using tags to cover the user data that directly correspond to the PEAR development roles (e.g. lead, developer,...). A new subtag for a maintainer is the flag, which enables you to have retired maintainers still listed to give them credit (switching active to "no"). :: 2005-02-24 The