diff options
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/net-ssh/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/net-ssh/net-ssh-7.2.3.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/net-ssh/Manifest b/dev-ruby/net-ssh/Manifest index 1087c37e8fb1..f04f65733dc6 100644 --- a/dev-ruby/net-ssh/Manifest +++ b/dev-ruby/net-ssh/Manifest @@ -1,3 +1,4 @@ DIST net-ssh-git-7.1.0.tgz 229217 BLAKE2B ab3c46d3d8831335495ae72dc60f2659109b66566f04117a16e4fd41085203b6a2d333e65ffcda4e390c96a2b808c68baeb168be1a2e23d4c797ad63b5af93f9 SHA512 723f487e77526a7acba8a9c8f09dd85c8c0bb21577d148f6c4280c79d603d3d364e29fb55b2b282064b5c108465efb2b1da061a2ba5872d575b0be264f493745 DIST net-ssh-git-7.2.0.tgz 232852 BLAKE2B e1f9910911cc143c1a621d23f272b123509c4f3ede6498197715260e8d89297a8fed9905a0e73436f7ba37159a7b698ba7fd806d44b8b9ea52271f21b7735785 SHA512 b7dd7dc2543d650ba95627c16cac02294f25cc637fcd607f5cc495d51998df958f42cda021708946c9935e1b0da41af359010906340bf96981ff839f6e3278cb DIST net-ssh-git-7.2.1.tgz 233338 BLAKE2B 14696b3c5de24219b0e5d5ad345aa46a1576183f4836ccdaf1d5feb78cb932232da1890c55d8c39dbf1d47b1fc0c19acf53eedd1f87bf8acb0d62ae10045e828 SHA512 9b13c33ed76a9ac346c610e8eb04fba5b327c9f79d2a28ca7d2c9b6fa94d3979f68b43f3fd2b83eb2ea0e3ada5e200373848b5f7abdee7922d77aa30d148b88b +DIST net-ssh-git-7.2.3.tgz 233375 BLAKE2B d8eda3964b66e7a7c55f70a1ba763bacf192edcb6f32f679d36b4c589c6184af9911db6db4cb28e273a27ac4bd68afc4b0a0767d98955b2e37bcd65444c77d8a SHA512 621eb0c8080347614e924c236646cadaaceefb0894a818dc60cebc7c09c87d6ae6117f33628ed48fa8598fdb74146c9d2f114b178bd119908df8396103ceb4d9 diff --git a/dev-ruby/net-ssh/net-ssh-7.2.3.ebuild b/dev-ruby/net-ssh/net-ssh-7.2.3.ebuild new file mode 100644 index 000000000000..3d9b5e520a7c --- /dev/null +++ b/dev-ruby/net-ssh/net-ssh-7.2.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.md THANKS.txt" +RUBY_FAKEGEM_EXTRAINSTALL="support" + +RUBY_FAKEGEM_GEMSPEC="net-ssh.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Non-interactive SSH processing in pure Ruby" +HOMEPAGE="https://github.com/net-ssh/net-ssh" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> net-ssh-git-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="chacha20 ed25519 test" +RESTRICT="!test? ( test )" + +ruby_add_rdepend " + virtual/ruby-ssl + chacha20? ( dev-ruby/rbnacl ) + ed25519? ( >=dev-ruby/ed25519-1.2:1 dev-ruby/x25519 dev-ruby/bcrypt_pbkdf:1 ) +" + +ruby_add_bdepend "test? ( dev-ruby/base64 dev-ruby/test-unit:2 >=dev-ruby/mocha-0.13 )" + +all_ruby_prepare() { + # Avoid bundler dependency + sed -i -e '/\(bundler\|:release\)/ s:^:#:' Rakefile || die + + sed -e "s:require_relative ':require './:" \ + -e 's/git ls-files -z/find -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +src_test() { + # prevent tests from trying to connect to ssh-agent socket and failing + unset SSH_AUTH_SOCK + if ! use ed25519; then + export NET_SSH_NO_ED25519=true + fi + ruby-ng_src_test +} |