dev-ruby/net-ssh: add 6.0.0
authorHans de Graaff <graaff@gentoo.org>
Wed, 22 Apr 2020 05:40:55 +0000 (07:40 +0200)
committerHans de Graaff <graaff@gentoo.org>
Wed, 22 Apr 2020 05:40:55 +0000 (07:40 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/net-ssh/Manifest
dev-ruby/net-ssh/net-ssh-6.0.0.ebuild [new file with mode: 0644]

index dabb11af31f05a422ebc8a5e1c265dfc6d6ad4a3..f16cc16b24da7c147d53c66d3dc040cab250814e 100644 (file)
@@ -1,2 +1,3 @@
 DIST net-ssh-git-4.2.0.tgz 197417 BLAKE2B 5714185d9b83d3010e6b9baa07ac541e9227379cbfecc3a506d870d8d9fa528f59b605df4ff02ae6bfc16893bfb22734395096a77fcbe19fb939ecc1a343a9b5 SHA512 0a3609590d797a8cb4732e8cf743606a4919f57475b6eb2447a3db0c28f1bd405804fdc47a4062e503acdd4b785a1de9794a6db433cabb884105166eff6a8c5b
 DIST net-ssh-git-5.2.0.tgz 209986 BLAKE2B 6a1bc97da733420607c6ebe69a01f42d58998297a12394a29c9b4f5af425781d6b1b3535cecef21a0918eefc2e032f519fce9c5691c0a735c7810452f468d780 SHA512 cf2fa9817b124f0f35115abef51a4865073b3126b94d66cd307994bba06745513aaab1c1bcf64907a7b3bbce793b272b3f521cfa93f9339ca78ec8cef09cbeeb
+DIST net-ssh-git-6.0.0.tgz 218503 BLAKE2B 5cd2126513233eaf169fd0eab4876e7c0c4b61f7cb3df19d7e369403fbba39ee68f4ade61ec58ed9124c460af5d39bc93ccf32a320ea19d02fc3d34bb8413f37 SHA512 18dd1f694e6b57f6f22c356a0726f5eb8aff9921f097b50f072c2829c4bda8fa697c5e71a49da862beca59a703a3146b29b80f8b5dfed3a3b661e05bc68b3387
diff --git a/dev-ruby/net-ssh/net-ssh-6.0.0.ebuild b/dev-ruby/net-ssh/net-ssh-6.0.0.ebuild
new file mode 100644 (file)
index 0000000..124bde4
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+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"
+
+ruby_add_rdepend "virtual/ruby-ssl ed25519? ( >=dev-ruby/ed25519-1.2:1 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
+}