commit:     a60f734c66687fe97bba2c7d063f706fd7af712c
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 20:18:09 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 20:57:56 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a60f734c

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

Package-Manager: portage-2.3.0

 dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild 
b/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild
index 751adbe..4a34595 100644
--- a/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild
+++ b/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild
@@ -29,3 +29,12 @@ IUSE=""
 DEPEND=">=dev-libs/libyaml-0.1.0"
 RDEPEND="${DEPEND} php_targets_php5-6? ( 
dev-php/pecl-yaml:0[php_targets_php5-6] )"
 PHP_EXT_ECONF_ARGS=""
+
+src_prepare() {
+        if use php_targets_php7-0 ; then
+                php-ext-source-r3_src_prepare
+        else
+                default_src_prepare
+        fi
+}
+

Reply via email to