1 |
commit: 95508cea4713043423adea612e5e5f100a7e8a4a |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 05:07:05 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 05:07:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95508cea |
7 |
|
8 |
dev-ruby/sshkit: add 1.21.3 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/sshkit/Manifest | 1 + |
13 |
dev-ruby/sshkit/sshkit-1.21.3.ebuild | 43 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/sshkit/Manifest b/dev-ruby/sshkit/Manifest |
17 |
index 2e409842216f..937812815a32 100644 |
18 |
--- a/dev-ruby/sshkit/Manifest |
19 |
+++ b/dev-ruby/sshkit/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST sshkit-1.21.2.gem 144896 BLAKE2B ea72b1d0df7252f9c4ffe010721a957b5a86cc43697acf4dfd065a74cca5317deeb15692449d573a2e5590ef3a23ee666196b7b661d6986a2f270d16e2dc8d89 SHA512 37515726b67ae0e2ac9dff42cf7b71a32832ebe144aa192332780e4d9aead1a9e4c3cf7f6f0b994804175a5befd896b32908a82ba2e4f4a1d4e4b0f5bf01c3b3 |
22 |
+DIST sshkit-1.21.3.gem 144896 BLAKE2B 14cf7338187238f720cf8bf39664ba827700c1c47469cbd9e2f154a2b7bc91b4d8d14ec15d76db88fba1d23a936b112f0f2a33f2e15978a85816cd04274aea89 SHA512 ede63fd798db6e49fb2a1e9379699bd3e5de27f6b83640506a848f179fd83efed410357c899e97a41b1ab7e3baf47d88f87dcecf2bbcdf7475bea0d35817a9cc |
23 |
|
24 |
diff --git a/dev-ruby/sshkit/sshkit-1.21.3.ebuild b/dev-ruby/sshkit/sshkit-1.21.3.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..0c59a5fd2f75 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/sshkit/sshkit-1.21.3.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+USE_RUBY="ruby27 ruby30" |
35 |
+ |
36 |
+# There are functional tests that require vagrant boxes to be set up. |
37 |
+RUBY_FAKEGEM_TASK_TEST="test:units" |
38 |
+ |
39 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md FAQ.md README.md" |
40 |
+ |
41 |
+inherit ruby-fakegem |
42 |
+ |
43 |
+DESCRIPTION="SSHKit makes it easy to write structured, testable SSH commands in Ruby" |
44 |
+HOMEPAGE="https://github.com/capistrano/sshkit" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="" |
50 |
+ |
51 |
+ruby_add_rdepend " |
52 |
+ >=dev-ruby/net-ssh-2.8.0:* |
53 |
+ >=dev-ruby/net-scp-1.1.2 |
54 |
+" |
55 |
+ |
56 |
+ruby_add_bdepend "test? ( dev-ruby/minitest dev-ruby/mocha <dev-ruby/net-ssh-7 )" |
57 |
+ |
58 |
+all_ruby_prepare() { |
59 |
+ sed -i -e '/bundler/I s:^:#:' Rakefile test/helper.rb || die |
60 |
+ sed -e '/\(turn\|unindent\|reporters\)/I s:^:#:' \ |
61 |
+ -e '1irequire "set"; require "pathname"' \ |
62 |
+ -e '1igem "net-ssh", "<7"' \ |
63 |
+ -i test/helper.rb || die |
64 |
+ |
65 |
+ # Fix assumption about parent directory name |
66 |
+ sed -i -e '/assert_match/ s/sshkit/sshkit.*/' test/unit/test_deprecation_logger.rb || die |
67 |
+} |
68 |
+ |
69 |
+each_ruby_test() { |
70 |
+ # Run tests directly to avoid dependencies in the Rakefile |
71 |
+ ${RUBY} -Ilib:test:. -e "Dir['test/unit/**/test*.rb'].each{|f| require f}" || die |
72 |
+} |