[Pkg-php-pear] [php-maint] On PEAR packaging

Mathieu Parent math.parent at gmail.com
Wed May 25 19:47:06 UTC 2011


2011/5/25 Ondřej Surý <ondrej at debian.org>:
> Hi,
>
> could you please move to pkg-php-pear?

Yes, sorry, this is where the discussion should be. Posting the
original message below:


Hello,

Context:
- Horde 4 has been released and the recommended way to install it now
is via PEAR packages.
- There are currently 92 PEAR packages on pear.horde.org and 568 on
pear.php.net.
- I am lazy (you too?)
- I am busy (you too?)

Proposal:
- Adding debhelper substitution variables, and
- Adding dh7 auto buildsystem for PEAR packages

Those helpers will be in a new package named pkg-php-tools.

I have done a prototype in a git repo, currently on
<http://anonscm.debian.org/gitweb/?p=pkg-horde/pkg-php-tools.git>.
Waiting for approval in the pkg-php team to move it there.


A package using pkg-php-tools is initialized using dh_make (with dh7
rule format, now default). Usual cleaning is done (replacing all
boilerplate). Then debian/control and debian/rules are edited as
below. That's it.

Remaining issues/questions:
- How to handle patches? : this is a problem with PEAR packages whose
subdir varies across versions
- what pear config file should be used (currently debian/pearrc which
can be missing)?

Comments, suggestions, feedback ... ?

--
Mathieu

====================
debian/rules:
<<<---
#!/usr/bin/make -f
%:
       dh --buildsystem=phppear --with phppear $@
--->>>

====================
debian/control:
<<<---
Source: php-horde-kolab-format
Section: php
Priority: extra
Maintainer: Horde Maintainers <pkg-horde-hackers at lists.alioth.debian.org>
Uploaders: Mathieu Parent <sathieu at debian.org>
Build-Depends: debhelper (>= 7.0.50~), pkg-php-tools
Standards-Version: 3.9.2
Homepage: http://${phppear:channel}/
Vcs-Git: git://git.debian.org/pkg-horde/php-horde-kolab-format.git
Vcs-Browser: http://git.debian.org/?p=pkg-horde/php-horde-kolab-format.git

Package: php-horde-kolab-format
Architecture: all
Depends: ${misc:Depends}, ${phppear:Debian-Depends}
Recommends: ${phppear:Debian-Recommends}
Breaks: ${phppear:Debian-Breaks}
Description: ${phppear:summary}
 ${phppear:description}
--->>>



More information about the Pkg-php-pear mailing list