2013/6/8 andrea rota <a...@xelera.eu>:
> hi Mathieu,

Hello,

> On Fri, Jun 07, 2013 at 10:08:51AM +0200, Mathieu Parent wrote:
>> Package: pkg-php-tools
>> Version: 1.6
>>
>> As discussed on the ML [1], Composer "Dependency Manager for PHP " [2]
>> seems to get some audience, pkg-php-tools can be improved to support
>> its format.
>>
>> Two different solutions:
>> - use Composer API [3] (this requires packaging it)
>> - parse the composer.json file directly
>
> i can try packaging it, although i haven't done much PHP packaging work
> at all before except for initial work on wp-cli.

We can review it on this ML.

> as far as i can see, composer itself is a self-contained
> phar file, which can be downloaded directly
> (http://getcomposer.org/composer.phar for the latest snapshot, or a
> specific version listed on http://getcomposer.org/download/) or via a
> PHP script which checks local PHP setup and a few other settings before
> retrieving the phar via curl and saving it locally.
>
> in terms of Debian packaging (at least as a starting point), would it be
> ok to simply package the upstream phar file or would it be necessary for
> debian/rules to actually include the full source tree
> (git://github.com/composer/composer.git), run phpunit tests, build the
> phar file from scratch, etc?

I think the phar format is not "the preferred form for modification"
(it is not unarchivable with common tools). One more example of PHP
guys reinventing the wheel (at least Java's jar files are zip file
with a manifest). We can create the orig source from a git tag
(example: [1]).

Building the phar is not necessary (but it is possible).

Reading [2], I hope there won't be bootstrap problem.

[1]: 
http://anonscm.debian.org/gitweb/?p=pkg-samba/ctdb.git;a=blob;f=debian/uupdate-wrapper;h=51262b61d223b9b15b89a1ad14206338ad2a6d38;hb=HEAD

[2]: https://github.com/composer/composer#installation-from-source

>
> any pointers to best practices or examples would be very helpful.
> (i am looking at pkg-php packages in anonscm.debian.org but i'm not sure
> which packages there would be closest in terms of layout to a possible
> composer Debian package... perhaps pkg-php/debpear.git?)

Composer is not a PEAR package, so you have to take inspiration from
php-sabredav (I have not looked deeply).

> [...]
>
> thanks
> andrea
>
> --
> andrea rota
>
> Xelera - IT infrastructures
> http://xelera.eu/contact-us/



--
Mathieu


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to