summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2016-08-23 16:57:05 -0400
committerBrian Evans <grknight@gentoo.org>2016-08-23 16:58:21 -0400
commit50b835c037e4fc54e77e67bd51266af33b19e0b8 (patch)
treed83027aff89be10cff1cfadb6b9de4092996904e /dev-php/pecl-raphf
parentdev-php/pecl-propro: Fix EAPI6 build error when php7-0 is off (diff)
downloadgentoo-50b835c037e4fc54e77e67bd51266af33b19e0b8.tar.gz
gentoo-50b835c037e4fc54e77e67bd51266af33b19e0b8.tar.bz2
gentoo-50b835c037e4fc54e77e67bd51266af33b19e0b8.zip
dev-php/pecl-raphf: Fix EAPI6 build error when php7-0 is off
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/pecl-raphf')
-rw-r--r--dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
index ac020389586..0789ef16460 100644
--- a/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
+++ b/dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild
@@ -23,3 +23,11 @@ SLOT="7"
IUSE=""
RDEPEND="php_targets_php5-6? ( ${CATEGORY}/${PN}:0[php_targets_php5-6] )"
+
+src_prepare() {
+ if use php_targets_php7-0 ; then
+ php-ext-source-r3_src_prepare
+ else
+ default_src_prepare
+ fi
+}