Hi,
You should now be able to build and install a valid PEAR package in
trunk. This should be a good start.
*Build*
$ ant pear-package
*Install*
$ sudo pear install target/pear/log4php-2.0.0.tgz
*Uninstall*
$ sudo pear uninstall log4php
*About the setup*
- The packaging is done with PEAR_PackageFileManager2 [1] (you should
get a notice from package.php [2] script on how to proceed if you don't
have it installed, shouldn't be a problem introducing this dependency
since this is targeted to be run from build machines or by a release
manager)
- package-config.php [3] contains all configuration parameters as input
to the generated package.xml file, in most cases this is the file you
should touch to update the package.xml content.
- Output directory is target/pear
- Examples, license, readme, changelog is installed under the
doc-directory of your PEAR environment.
*Note*
I had a problem with the "foreach" taskdef in build.xml while developing
this. If you just want to run the "pear-package" target you can just
comment out line 25 in build.xml. I see that this is some Maven
dependency and I tried to run the target through Maven without success.
If you know how to fix this please help me out :)
Knut
[1] http://pear.php.net/package/PEAR_PackageFileManager2
[2] http://svn.apache.org/repos/asf/incubator/log4php/trunk/package.php
[3]
http://svn.apache.org/repos/asf/incubator/log4php/trunk/package-config.php