summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2016-08-23 16:34:05 -0400
committerBrian Evans <grknight@gentoo.org>2016-08-23 16:58:01 -0400
commit5c300dea7c56a76717ee8502863ca965a484a111 (patch)
treed593930d7547491eeea3dfbb9fe5880dfab5f283
parentdev-php/pecl-yaml: Fix EAPI6 build error when php7-0 is off (diff)
downloadgentoo-5c300dea7c56a76717ee8502863ca965a484a111.tar.gz
gentoo-5c300dea7c56a76717ee8502863ca965a484a111.tar.bz2
gentoo-5c300dea7c56a76717ee8502863ca965a484a111.zip
dev-php/pecl-mailparse: Fix EAPI6 build error when php7-0 is off
Package-Manager: portage-2.3.0
-rw-r--r--dev-php/pecl-mailparse/pecl-mailparse-3.0.1-r1.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-php/pecl-mailparse/pecl-mailparse-3.0.1-r1.ebuild b/dev-php/pecl-mailparse/pecl-mailparse-3.0.1-r1.ebuild
index 53d2680e301a..31be7b13a5f8 100644
--- a/dev-php/pecl-mailparse/pecl-mailparse-3.0.1-r1.ebuild
+++ b/dev-php/pecl-mailparse/pecl-mailparse-3.0.1-r1.ebuild
@@ -34,3 +34,11 @@ unset target phpslot
DEPEND="${PHPUSEDEPEND}
dev-util/re2c"
RDEPEND="${PHPUSEDEPEND} php_targets_php5-6? ( dev-php/pecl-mailparse: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
+}