pkg-php-tools1
Debhelper tool suite for php pear packages and channels
Usage
dh $@
--buildsystem=phppear
--with
phppear
Overview
For a quick start, read /usr/share/doc/pkg-php-tools/README.PEAR.
dh_phppear(1) is a debhelper program that is responsible for generating the ${phppear:*} substitutions and adding them to substvars files. See the corresponding manpage.
dh_phpcomposer is a debhelper program that is responsible for generating the ${phpcomposer:*} substitutions and adding them to substvars files. See the corresponding manpage.
Debian::Debhelper::Buildsystem::phppear is an additionnal build system targeted at PHP PEAR packages (with a package.xml or package2.xml file) and PHP PEAR channels (with a channel.xml file). See below.
Advanced usage
Building a PECL package
A PECL package is a PEAR package which is compiled. Extra steps are needed:
•
|
Adding |
|---|---|
•
|
Adding |
•
|
Adding "--with |
Building a channel package
Simply put the channel.xml file downloaded from the PEAR channel in the root of the package source and use a debian/rules similar to a PEAR package.
This feature requires pkg-php-tools (>= 1.3~)
Overriding a PEAR Debian package name
See "FILES" in dh_phppear(1).
Patching
pkg-php-tools will remove md5sums and sha1sums to ease patching. You can patch as usual.
Removing some files from the upstream tarball
If you have removed some files from the upstream tarball, you will end with an incomplete package unless you strip them from the package.xml file in the PEAR package subdir. You can do this after the dh_auto_configure step. Example:
override_dh_auto_configure:dh_auto_configure -O--buildsystem=phppear# Remove references of JsMinsed -i '/JsMin\.php/d' */package.xml
This feature requires pkg-php-tools (>= 1.1~)
Conforms to
Debian policy, version 3.9.4
PHP PEAR policy, version yet-to-be-written