diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-06-26 07:49:59 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-06-26 07:49:59 +0200 |
commit | be7560960f41403e1b35d72d9244935836e56315 (patch) | |
tree | 18df9b66b4c15a4829697f4fe50c40411fa332a6 /dev-ruby | |
parent | dev-ruby/sprockets-rails: drop 3.3.0, 3.4.2 (diff) | |
download | gentoo-be7560960f41403e1b35d72d9244935836e56315.tar.gz gentoo-be7560960f41403e1b35d72d9244935836e56315.tar.bz2 gentoo-be7560960f41403e1b35d72d9244935836e56315.zip |
dev-ruby/net-ssh: add 7.0.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/net-ssh/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/net-ssh/net-ssh-7.0.1.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/net-ssh/Manifest b/dev-ruby/net-ssh/Manifest index 175a80bdfa36..634a50c837f6 100644 --- a/dev-ruby/net-ssh/Manifest +++ b/dev-ruby/net-ssh/Manifest @@ -1,2 +1,3 @@ DIST net-ssh-git-5.2.0.tgz 209986 BLAKE2B 6a1bc97da733420607c6ebe69a01f42d58998297a12394a29c9b4f5af425781d6b1b3535cecef21a0918eefc2e032f519fce9c5691c0a735c7810452f468d780 SHA512 cf2fa9817b124f0f35115abef51a4865073b3126b94d66cd307994bba06745513aaab1c1bcf64907a7b3bbce793b272b3f521cfa93f9339ca78ec8cef09cbeeb DIST net-ssh-git-6.1.0.tgz 220190 BLAKE2B a5ae0f15cf3dac8934de0b3216541415cc947214ea33d57770b5f2bf2594fa5b29b8dd9a417233de0ed243a12cdc547e5e87861767c5bbc65adb90cdbe58a484 SHA512 1d92ad19cb8bf80aec4ada23c49b91588c722551695cb0dd7b2954001fd71b4b4c030f8317b86766451847273c6116baa041c03e2415df2b0f81b20551dd8566 +DIST net-ssh-git-7.0.1.tgz 227016 BLAKE2B 98cdbad0c8c52d44f3d4e288de7de0389680c3f77d5cbd33e4a142d1f09881910f2dc74df01ecfed755e2e0ab37440ee19cf436b8aa7c49a3859bf07b3844b15 SHA512 3e41537b3b7e34f043c768959c382f72a630bf3ac430bbbd743323d9b0eade6c7b94f8948418b7f3e1aa2422fcb87829387aaa01e1e384ed297e2397cee33feb diff --git a/dev-ruby/net-ssh/net-ssh-7.0.1.ebuild b/dev-ruby/net-ssh/net-ssh-7.0.1.ebuild new file mode 100644 index 000000000000..047bf211bc05 --- /dev/null +++ b/dev-ruby/net-ssh/net-ssh-7.0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +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 ~ppc ~ppc64 ~x86" +IUSE="ed25519 test" +RESTRICT="!test? ( test )" + +ruby_add_rdepend "virtual/ruby-ssl ed25519? ( >=dev-ruby/ed25519-1.2:1 dev-ruby/x25519 dev-ruby/bcrypt_pbkdf:1 )" +ruby_add_bdepend "test? ( 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 +} |