diff options
-rw-r--r-- | dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild b/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild index 0fea846c2c4a..06d83b14fd7f 100644 --- a/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild +++ b/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 -USE_RUBY="ruby20 ruby21 ruby22 ruby23" +USE_RUBY="ruby22 ruby23" RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc" @@ -16,9 +16,13 @@ SLOT="2" KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" IUSE="" -ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5" +ruby_add_rdepend "|| ( dev-ruby/net-ssh:3 dev-ruby/net-ssh:2.6 )" ruby_add_bdepend " test? ( >=dev-ruby/mocha-0.13 )" + +all_ruby_prepare() { + sed -i -e '1i gem "net-ssh", "< 4"' test/common.rb || die +} |