Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-http/
Date: Tue, 23 Aug 2016 20:58:38
Message-Id: 1471985871.083c9b7fefedfa14e1fbde7d13b8a79aea3516e9.grknight@gentoo
1 commit: 083c9b7fefedfa14e1fbde7d13b8a79aea3516e9
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 20:14:14 2016 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 20:57:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=083c9b7f
7
8 dev-php/pecl-http: Fix EAPI6 build error when php7-0 is off
9
10 Package-Manager: portage-2.3.0
11
12 dev-php/pecl-http/pecl-http-3.0.1.ebuild | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15 diff --git a/dev-php/pecl-http/pecl-http-3.0.1.ebuild b/dev-php/pecl-http/pecl-http-3.0.1.ebuild
16 index 309a14e..1cb5bfc 100644
17 --- a/dev-php/pecl-http/pecl-http-3.0.1.ebuild
18 +++ b/dev-php/pecl-http/pecl-http-3.0.1.ebuild
19 @@ -35,6 +35,14 @@ RDEPEND="${DEPEND}
20
21 PHP_EXT_ECONF_ARGS=( --with-http --without-http-shared-deps )
22
23 +src_prepare() {
24 + if use php_targets_php7-0 ; then
25 + php-ext-source-r3_src_prepare
26 + else
27 + default_src_prepare
28 + fi
29 +}
30 +
31 pkg_postinst() {
32 ewarn "This API has drastically changed and is not compatible with the 1.x syntax."
33 ewarn "Please review the documentation and update your code."