Jim, you might be interested in https://wiki.debian.org/ReleaseGoals/pkg-php-tools pkg-php-tools was introduced in Debian wheezy. It considerably eases the building of PEAR packages.