.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" ======================================================================== .\" .IX Title "PKG-PHP-TOOLS 1" .TH PKG-PHP-TOOLS 1 "2014-06-28" "1.12~bpo70+1" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" pkg\-php\-tools \- debhelper tool suite for PHP PEAR packages and channels .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdh\fR $@ \-\-buildsystem=\fBphppear\fR \-\-with \fBphppear\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" For a quick start, read \fI/usr/share/doc/pkg\-php\-tools/README.PEAR\fR. .PP \&\fIdh_phppear\fR\|(1) is a debhelper program that is responsible for generating the \&\fB${phppear:*}\fR substitutions and adding them to substvars files. See the corresponding manpage. .PP \&\fBdh_phpcomposer\fR is a debhelper program that is responsible for generating the \fB${phpcomposer:*}\fR substitutions and adding them to substvars files. See the corresponding manpage. .PP \&\fIDebian::Debhelper::Buildsystem::phppear\fR is an additionnal build system targeted at \s-1PHP\s0 \s-1PEAR\s0 packages (with a package.xml or package2.xml file) and \s-1PHP\s0 \&\s-1PEAR\s0 channels (with a channel.xml file). See below. .SH "ADVANCED USAGE" .IX Header "ADVANCED USAGE" .SS "Building a \s-1PECL\s0 package" .IX Subsection "Building a PECL package" A \s-1PECL\s0 package is a \s-1PEAR\s0 package which is compiled. Extra steps are needed: .IP "\(bu" 2 Adding \fBphp5\-dev\fR, \fBpkg-php-tools\fR (>= 1.6~) and \fBdh\-php5\fR to Build-Depends. .IP "\(bu" 2 Adding \fB${shlibs:Depends}\fR and \fB${php:Depends}\fR to Depends. .IP "\(bu" 2 Adding "\-\-with \fBphp5\fR" to \fBdh\fR line in \fIdebian/rules\fR. .SS "Building a channel package" .IX Subsection "Building a channel package" Simply put the channel.xml file downloaded from the \s-1PEAR\s0 channel in the root of the package source and use a \fIdebian/rules\fR similar to a \s-1PEAR\s0 package. .PP This feature requires pkg-php-tools (>= 1.3~) .SS "Overriding a \s-1PEAR\s0 Debian package name" .IX Subsection "Overriding a PEAR Debian package name" See \*(L"\s-1FILES\s0\*(R" in \fIdh_phppear\fR\|(1). .SS "Patching" .IX Subsection "Patching" pkg-php-tools will remove md5sums and sha1sums to ease patching. You can patch as usual. .SS "Removing some files from the upstream tarball" .IX Subsection "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 \fIpackage.xml\fR file in the \s-1PEAR\s0 package subdir. You can do this after the \fIdh_auto_configure\fR step. Example: .PP .Vb 4 \& override_dh_auto_configure: \& dh_auto_configure \-O\-\-buildsystem=phppear \& # Remove references of JsMin \& sed \-i \*(Aq/JsMin\e.php/d\*(Aq */package.xml .Ve .PP This feature requires pkg-php-tools (>= 1.1~) .SH "CONFORMS TO" .IX Header "CONFORMS TO" Debian policy, version 3.9.4 .PP \&\s-1PHP\s0 \s-1PEAR\s0 policy, version yet-to-be-written .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fI/usr/share/doc/pkg\-php\-tools/README.PEAR\fR, \fIdh_phppear\fR\|(1), \fIdh_phpcomposer\fR\|(1) .PP \&\fIdebhelper\fR\|(7) (Note: This program is not part of debhelper) .SH "AUTHOR" .IX Header "AUTHOR" Mathieu Parent