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-raphf/
Date: Tue, 23 Aug 2016 20:58:38
Message-Id: 1471985901.50b835c037e4fc54e77e67bd51266af33b19e0b8.grknight@gentoo
1 commit: 50b835c037e4fc54e77e67bd51266af33b19e0b8
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 20:57:05 2016 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 20:58:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b835c0
7
8 dev-php/pecl-raphf: Fix EAPI6 build error when php7-0 is off
9
10 Package-Manager: portage-2.3.0
11
12 dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild | 8 ++++++++
13 1 file changed, 8 insertions(+)
14
15 diff --git a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
16 index ac02038..0789ef1 100644
17 --- a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
18 +++ b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
19 @@ -23,3 +23,11 @@ SLOT="7"
20 IUSE=""
21
22 RDEPEND="php_targets_php5-6? ( ${CATEGORY}/${PN}:0[php_targets_php5-6] )"
23 +
24 +src_prepare() {
25 + if use php_targets_php7-0 ; then
26 + php-ext-source-r3_src_prepare
27 + else
28 + default_src_prepare
29 + fi
30 +}