From: Michael Orlitzky Date: Sat, 8 Apr 2017 19:15:21 +0000 (-0400) Subject: dev-php/pecl-ssh2: add php-7.1 support. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06902785bbdd836806ec9fa021fcb078996a5b76;p=gentoo.git dev-php/pecl-ssh2: add php-7.1 support. Gentoo-Bug: 603508 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- diff --git a/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-1.0-r1.ebuild similarity index 57% rename from dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild rename to dev-php/pecl-ssh2/pecl-ssh2-1.0-r1.ebuild index 43870a60730d..28dc40b3371e 100644 --- a/dev-php/pecl-ssh2/pecl-ssh2-1.0.ebuild +++ b/dev-php/pecl-ssh2/pecl-ssh2-1.0-r1.ebuild @@ -1,17 +1,15 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PHP_EXT_NAME="ssh2" -PHP_EXT_INI="yes" -PHP_EXT_ZENDEXT="no" -USE_PHP="php7-0 php5-6" +USE_PHP="php5-6 php7-0 php7-1" inherit php-ext-pecl-r3 -USE_PHP="php7-0" +USE_PHP="php7-0 php7-1" DESCRIPTION="PHP bindings for the libssh2 library" LICENSE="PHP-3.01" @@ -19,11 +17,11 @@ SLOT="7" IUSE="" 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="" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-ssh2:0[php_targets_php5-6] )" src_prepare() { - if use php_targets_php7-0 ; then + if use php_targets_php7-0 || use php_targets_php7-1; then php-ext-source-r3_src_prepare else default_src_prepare diff --git a/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild index 1e571c0de962..ee9effc3e76a 100644 --- a/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild +++ b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild @@ -1,18 +1,16 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PHP_EXT_NAME="ssh2" -PHP_EXT_INI="yes" -PHP_EXT_ZENDEXT="no" -USE_PHP="php7-0 php5-6" +USE_PHP="php5-6 php7-0 php7-1" EGIT_REPO_URI="https://git.php.net/repository/pecl/networking/ssh2.git" inherit php-ext-source-r3 git-r3 -USE_PHP="php7-0" +USE_PHP="php7-0 php7-1" DESCRIPTION="PHP bindings for the libssh2 library" LICENSE="PHP-3.01" @@ -20,9 +18,9 @@ SLOT="7" IUSE="" KEYWORDS="" DEPEND=">=net-libs/libssh2-1.2" -RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-ssh2:0[php_targets_php5-6] )" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-ssh2:0[php_targets_php5-6] )" HOMEPAGE="https://pecl.php.net/package/ssh2" -PHP_EXT_ECONF_ARGS="" src_unpack() { git-r3_src_unpack @@ -30,7 +28,7 @@ src_unpack() { } src_prepare() { - if use php_targets_php7-0 ; then + if use php_targets_php7-0 || use php_targets_php7-1 ; then php-ext-source-r3_src_prepare else default_src_prepare