commit:     50b835c037e4fc54e77e67bd51266af33b19e0b8
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 20:57:05 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 20:58:21 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b835c0

dev-php/pecl-raphf: Fix EAPI6 build error when php7-0 is off

Package-Manager: portage-2.3.0

 dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild 
b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
index ac02038..0789ef1 100644
--- a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
+++ b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
@@ -23,3 +23,11 @@ SLOT="7"
 IUSE=""
 
 RDEPEND="php_targets_php5-6? ( ${CATEGORY}/${PN}:0[php_targets_php5-6] )"
+
+src_prepare() {
+       if use php_targets_php7-0 ; then
+               php-ext-source-r3_src_prepare
+       else
+               default_src_prepare
+       fi
+}

Reply via email to