1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby23 ruby24 ruby25 ruby26"
8 RUBY_FAKEGEM_DOCDIR="doc"
9 RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc THANKS.txt"
10 RUBY_FAKEGEM_EXTRAINSTALL="support"
14 DESCRIPTION="Non-interactive SSH processing in pure Ruby"
15 HOMEPAGE="https://github.com/net-ssh/net-ssh"
16 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> net-ssh-git-${PV}.tgz"
20 KEYWORDS="amd64 ~arm ppc ppc64 x86"
23 ruby_add_rdepend "virtual/ruby-ssl sodium? ( dev-ruby/rbnacl:4 dev-ruby/bcrypt_pbkdf )"
24 ruby_add_bdepend "test? ( dev-ruby/test-unit:2 >=dev-ruby/mocha-0.13 )"
27 # Don't use a ruby-bundled version of libsodium
28 sed -i -e '/rbnacl\/libsodium/ s:^:#:' lib/net/ssh/authentication/ed25519.rb || die
30 # Don' try to use libsodium-related tests with USE=-sodium
31 if ! use sodium ; then
32 rm -f test/authentication/test_ed25519.rb
35 # Avoid bundler dependency
36 sed -i -e '/\(bundler\|:release\)/ s:^:#:' Rakefile || die