Gentoo Development Guide
PHP-EXT-BASE-R1.ECLASS
Section: portage (5)Updated: May 2013
Index Return to Main Contents
NAME
php-ext-base-r1.eclass - A unified interface for adding standalone PHP extensions.DESCRIPTION
This eclass provides a unified interface for adding standalone PHP extensions (modules) to the php.ini files on your system.Combined with php-ext-source-r1, we have a standardised solution for supporting PHP extensions.
FUNCTIONS
- php-ext-base-r1_src_install
- Takes care of standard install for PHP extensions (modules).
- php-ext-base-r1_addtoinifiles <setting name> <setting value> [message to output]; or just [section name]
-
Add value settings to php.ini file installed by the extension (module).
You can also add a [section], see examples below.
Add some settings for the extension: php-ext-base-r1_addtoinifiles "zend_optimizer.optimization_level" "15" php-ext-base-r1_addtoinifiles "zend_optimizer.enable_loader" "0" php-ext-base-r1_addtoinifiles "zend_optimizer.disable_licensing" "0" Adding values to a section in php.ini file installed by the extension: php-ext-base-r1_addtoinifiles "[Debugger]" php-ext-base-r1_addtoinifiles "debugger.enabled" "on" php-ext-base-r1_addtoinifiles "debugger.profiler_enabled" "on"
ECLASS VARIABLES
- PHP_EXT_NAME
- The extension name. This must be set, otherwise the eclass dies. Only automagically set by php-ext-pecl-r1.eclass, so unless your ebuild inherits that eclass, you must set this manually before inherit.
- PHP_EXT_INI = "yes"
- Controls whether or not to add a line to php.ini for the extension. Defaults to "yes" and should not be changed in most cases.
- PHP_EXT_ZENDEXT = "no"
- Controls whether the extension is a ZendEngine extension or not. Defaults to "no" and if you don't know what is it, you don't need it.
AUTHORS
Author: Tal Peer <coredumb@gentoo.org> Author: Stuart Herbert <stuart@gentoo.org> Author: Luca Longinotti <chtekk@gentoo.org> Author: Jakub Moc <jakub@gentoo.org> (documentation)
MAINTAINERS
Gentoo PHP team <php-bugs@gentoo.org>
REPORTING BUGS
Please report bugs via http://bugs.gentoo.org/FILES
/usr/portage/eclass/php-ext-base-r1.eclassSEE ALSO
ebuild(5)http://sources.gentoo.org/eclass/php-ext-base-r1.eclass?view=log
Index
This document was created by man2html, using the manual pages.
Time: 03:25:02 GMT, May 23, 2013