php-ext-pecl-r3.eclass
Description
This eclass should be used by all dev-php/pecl-* ebuilds as a uniform way of installing PECL extensions. For more information about PECL, see https://pecl.php.net/
Functions
- php-ext-pecl-r3_src_install
-
Install a standard PECL package. First we delegate to php-ext-source-r3.eclass, and then we attempt to install examples found in a standard location.
- php-ext-pecl-r3_src_test
-
Run tests delivered with the PECL package. Phpize will have generated a run-tests.php file to be executed by make test. We only need to force the test suite to run in non-interactive mode.
Variables
- PHP_EXT_PECL_PKG = "${PN/pecl-/}" (SET BEFORE INHERIT)
-
Set in ebuild before inheriting this eclass if the tarball name differs from ${PN/pecl-/} so that SRC_URI and HOMEPAGE get set correctly by the eclass.
Setting this variable manually also affects PHP_EXT_NAME and ${S} unless you override those in ebuild. If that is not desired, please use PHP_EXT_PECL_FILENAME instead.
- PHP_EXT_PECL_FILENAME (SET BEFORE INHERIT)
-
Set in ebuild before inheriting this eclass if the tarball name differs from "${PN/pecl-/}-${PV}.tgz" so that SRC_URI gets set correctly by the eclass.
Unlike PHP_EXT_PECL_PKG, setting this variable does not affect HOMEPAGE, PHP_EXT_NAME or ${S}.
Maintainers
Gentoo PHP team <php-bugs@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/