summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2016-08-23 16:39:02 -0400
committerBrian Evans <grknight@gentoo.org>2016-08-23 16:58:06 -0400
commitd5bee9f4588bef4cb674c966cf2393d697d0c689 (patch)
treed95c2764591dcc00984e649c65b5e442e77212fc /dev-php/pecl-ps
parentdev-php/pecl-mailparse: Fix EAPI6 build error when php7-0 is off (diff)
downloadgentoo-d5bee9f4588bef4cb674c966cf2393d697d0c689.tar.gz
gentoo-d5bee9f4588bef4cb674c966cf2393d697d0c689.tar.bz2
gentoo-d5bee9f4588bef4cb674c966cf2393d697d0c689.zip
dev-php/pecl-ps: Fix EAPI6 build error when php7-0 is off
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/pecl-ps')
-rw-r--r--dev-php/pecl-ps/pecl-ps-1.4.0.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild b/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild
index 94123bb65a33..053a317af66c 100644
--- a/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild
+++ b/dev-php/pecl-ps/pecl-ps-1.4.0.ebuild
@@ -25,3 +25,11 @@ IUSE="examples"
DEPEND="dev-libs/pslib"
RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-ps:0[php_targets_php5-6] )"
PHP_EXT_ECONF_ARGS=""
+
+src_prepare() {
+ if use php_targets_php7-0 ; then
+ php-ext-source-r3_src_prepare
+ else
+ default_src_prepare
+ fi
+}