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-yaml/
Date: Tue, 23 Aug 2016 20:58:37
Message-Id: 1471985876.a60f734c66687fe97bba2c7d063f706fd7af712c.grknight@gentoo
1 commit: a60f734c66687fe97bba2c7d063f706fd7af712c
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 20:18:09 2016 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 20:57:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a60f734c
7
8 dev-php/pecl-yaml: Fix EAPI6 build error when php7-0 is off
9
10 Package-Manager: portage-2.3.0
11
12 dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild | 9 +++++++++
13 1 file changed, 9 insertions(+)
14
15 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
16 index 751adbe..4a34595 100644
17 --- a/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild
18 +++ b/dev-php/pecl-yaml/pecl-yaml-2.0.0_rc8.ebuild
19 @@ -29,3 +29,12 @@ IUSE=""
20 DEPEND=">=dev-libs/libyaml-0.1.0"
21 RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-yaml:0[php_targets_php5-6] )"
22 PHP_EXT_ECONF_ARGS=""
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 +}
31 +