eclass: php-ext-sources-r3 - Apply user patches to all targets
authorBrian Evans <grknight@gentoo.org>
Tue, 13 Mar 2018 00:19:36 +0000 (20:19 -0400)
committerBrian Evans <grknight@gentoo.org>
Thu, 22 Mar 2018 01:28:09 +0000 (21:28 -0400)
commit2c8e98a82221e9ef9f6661949e986218176bdc02
tree27d7a680a05b6c3046d52d88817cb68de8cf02c3
parente69e61a9d982b7bc621365e5aca2db767023c05b
eclass: php-ext-sources-r3 - Apply user patches to all targets

The original eclass copied sources as part of the exported src_unpack
and then attempted to apply default_src_prepare to every PHP_TARGET.

As the bug shows, this fails on eapply_user because that function will
only ever apply once.

Instead, eliminate the php-ext-sources-r3_src_unpack. Move the copy
function to src_prepare phase after patches were applied,
optionally disabled by PHP_EXT_SKIP_PATCHES=yes.

This eclass will only apply patches to PHP_EXT_S.

Fixes: https://bugs.gentoo.org/650324
eclass/php-ext-source-r3.eclass