summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild')
-rw-r--r--dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild
index cbf9cea8ad3..b03c64c81be 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
+}