commit: 083c9b7fefedfa14e1fbde7d13b8a79aea3516e9
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 20:14:14 2016 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 20:57:51 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=083c9b7f
dev-php/pecl-http: Fix EAPI6 build error when php7-0 is off
Package-Manager: portage-2.3.0
dev-php/pecl-http/pecl-http-3.0.1.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dev-php/pecl-http/pecl-http-3.0.1.ebuild
b/dev-php/pecl-http/pecl-http-3.0.1.ebuild
index 309a14e..1cb5bfc 100644
--- a/dev-php/pecl-http/pecl-http-3.0.1.ebuild
+++ b/dev-php/pecl-http/pecl-http-3.0.1.ebuild
@@ -35,6 +35,14 @@ RDEPEND="${DEPEND}
PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps )
+src_prepare() {
+ if use php_targets_php7-0 ; then
+ php-ext-source-r3_src_prepare
+ else
+ default_src_prepare
+ fi
+}
+
pkg_postinst() {
ewarn "This API has drastically changed and is not compatible with the
1.x syntax."
ewarn "Please review the documentation and update your code."