1 |
commit: d5bee9f4588bef4cb674c966cf2393d697d0c689 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 23 20:39:02 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 23 20:58:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5bee9f4 |
7 |
|
8 |
dev-php/pecl-ps: Fix EAPI6 build error when php7-0 is off |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-php/pecl-ps/pecl-ps-1.4.0.ebuild | 8 ++++++++ |
13 |
1 file changed, 8 insertions(+) |
14 |
|
15 |
diff --git a/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild b/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild |
16 |
index 94123bb..053a317 100644 |
17 |
--- a/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild |
18 |
+++ b/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild |
19 |
@@ -25,3 +25,11 @@ IUSE="examples" |
20 |
DEPEND="dev-libs/pslib" |
21 |
RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-ps: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 |
+} |