Re: Install pear package as a ant target
| From: | Brett Bieber | Date: | Sat, 01 May 2010 17:22:08 +0000 |
| Subject: | Re: Install pear package as a ant target | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53448@lists.php.net to get a copy of this message | ||
On Fri, Apr 30, 2010 at 5:26 PM, Alexandre Haguiar
<alexandrehaguiar@gmail.com> wrote:
> Hi,
>
> I was searching for a generic script to install all the pear package and
> other dependencies like symfony or zend inside a subdirectory of the
> projects. The facty is that i building a continuous integration server and
> some projects has more than 1 version of some packages. So, my need was some
> solution that build all project enviroment as a ant target, without change
> any inside the continuous ingregration server.
>
> As solution i build a script in bash that make the job, you set inside the
> build.xml the pear library folder, all channels to add and packages to
> install and the script will make pear do all for you. The project is very
> new and will be greate have some help. Well, i put inside the google code
> with lgpl3 license at
> http://code.google.com/p/install-local-pear/.
Aha, a very nice solution for PHP 5.2.
This is also very easy to do with PHP 5.3 and pyrus, the next
generation pear installer —
http://pear.php.net/manual/en/pyrus.php
I usually create a lib dir for each new project, then simply install
the packages needed:
mkdir lib
php pyrus.phar ./lib install pear/Net_URL
Each lib dir is a sandboxed registry (just like the pear -c …), except
it requires no setup, is portable, and can be committed to a
repository. You can then make a checkout or clone on another machine,
and packages be upgraded without worrying about the paths: php
pyrus.phar ./lib upgrade pear/Net_URL
--
Brett Bieber