i'm not really into the packaging of PEAR-packages, but as far as i
know, you can add files to the folder "scripts" which are installed into
the $PATH of the system. This would be the zf.sh or zf.bat (depends on
the OS).
Then add a section to the package.xml (just did a quick search on
PEAR.net and adopted the examples, you probably know a lot more about
that stuff):
<dir name="scripts">
<file name="pecl.bat" role="script">
<tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
<tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
<tasks:windowseol/>
</file>
<file name="pear.sh" role="script">
<tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
<tasks:replace from="@php_dir@" to="php_dir" type="pear-config" />
<tasks:unixeol/>
</file>
</dir>
zf.php needs to be installed to "PEAR" then and not to "PEAR/Zend/bin/"
Perhaps this helps a little :)
Uli
Julian wrote:
> Hello Uli,
>
> I am not sure where to add that /bin folder.
> Actual structure is
> PEAR/Zend/Acl
> /Amf
> and so on
>
> I cannot change directory structure into:
> PEAR/Zend/library/Acl
> /bin
> as the backward include paths will be broken .
>
> Probably will be:
> PEAR/Zend/bin
> /Acl
> /Amf
> ....
>
> Not sure about that yet, still thinking...
>
> Saturday, May 30, 2009, 11:47:26 AM, you wrote:
>> Hello Julian,
>
>> thanks for this information, i'm looking forward to the next releases
>> then :) Would help a lot as this functionality is really nice :)
>
>> Thanks for your work!
>
>> Uli
>
>> Julian wrote:
>>> Hello Uli,
>>>
>>> Indeed.
>>> But we are taking this in consideration and probably in next versions
>>> will be added.
>>>
>>> Friday, May 29, 2009, 8:59:57 PM, you wrote:
>>>
>>>> Unfortunately this channel doesn't install the bin-folder, thus there is no
>>>> integration of Zend_Tool into the system. zfcampus provides this kind of
>>>> functionality...
>>>> Regards,
>>>> Uli
>>>
>>>> Julian-68 wrote:
>>>>> Hello Uli,
>>>>>
>>>>> The up-to-date PEAR channel is
>>>>> http://code.google.com/p/zend/
>>>>>
>>>>> Updated few hours after a new version is released
>>>>>
>>>>> --
>>>>> Julian
>>>>> Zend Certified Engineer
>>>>> ****************************
>>>>>
>>>
>>>
>>>
>
>
>
>
没有评论:
发表评论