commit:     a3cd1c2763c1afd4663043dd8f3d890bfce18ca6
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 23 20:48:13 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 20:58:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3cd1c27

dev-php/pecl-ssh2: Fix EAPI6 build error when php7-0 is off

Package-Manager: portage-2.3.0

 dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild 
b/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild
index cbf9cea..b03c64c 100644
--- a/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild
+++ b/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild
@@ -22,3 +22,11 @@ KEYWORDS="~amd64 ~x86"
 DEPEND=">=net-libs/libssh2-1.2"
 RDEPEND="${DEPEND} php_targets_php5-6? ( 
dev-php/pecl-ssh2: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
+}

Reply via email to