php-ext-source-r3.eclass: Introduce PHP_EXT_NEEDED_USE
authorBrian Evans <grknight@gentoo.org>
Fri, 26 Jan 2018 15:29:06 +0000 (10:29 -0500)
committerBrian Evans <grknight@gentoo.org>
Mon, 29 Jan 2018 13:47:45 +0000 (08:47 -0500)
commit24e8fadab71d00fffab4206a6aa08c663d919e2b
tree7be18f7da43ecc7c7130807addac0a2f697a12c3
parent2c3113fdedacb36b9b38482640ca6d14dd006438
php-ext-source-r3.eclass: Introduce PHP_EXT_NEEDED_USE

This simplifies the dependencies in an ebuild

@DESCRIPTION:
A list of USE flags to append to each PHP target selected
as a valid USE-dependency string.  The value should be valid
for all targets so USE defaults may be necessary.
Example:
PHP_EXT_NEEDED_USE="mysql?,pdo,pcre(+)"

The PHP dependencies will result in:
php_targets_php7-0? ( dev-lang/php:7.0[mysql?,pdo,pcre(+)] )

Bug: https://bugs.gentoo.org/586446
eclass/php-ext-source-r3.eclass