dev-php/pecl-raphf: Fix EAPI6 build error when php7-0 is off
authorBrian Evans <grknight@gentoo.org>
Tue, 23 Aug 2016 20:57:05 +0000 (16:57 -0400)
committerBrian Evans <grknight@gentoo.org>
Tue, 23 Aug 2016 20:58:21 +0000 (16:58 -0400)
Package-Manager: portage-2.3.0

dev-php/pecl-raphf/pecl-raphf-2.0.0.ebuild

index ac020389586984f5b1b1139a24d4705f82db8881..0789ef16460a59d2a5163b8ff101a7efec3d4ccf 100644 (file)
@@ -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
+}