diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-02-20 07:32:44 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-02-20 07:32:44 +0000 |
| commit | c1ad49092bca68e2fd0a00e9cc5f00abef5d7633 (patch) | |
| tree | 98090227924554a2944fde8c47cb8904b9e5b75f /dev-ruby/sshkit/sshkit-1.21.4.ebuild | |
| parent | 1a59cd7101f9d5c244291b2b61ff2e3cf7d527d4 (diff) | |
| download | srcux-c1ad49092bca68e2fd0a00e9cc5f00abef5d7633.tar.gz srcux-c1ad49092bca68e2fd0a00e9cc5f00abef5d7633.tar.xz srcux-c1ad49092bca68e2fd0a00e9cc5f00abef5d7633.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/sshkit/sshkit-1.21.4.ebuild')
| -rw-r--r-- | dev-ruby/sshkit/sshkit-1.21.4.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/sshkit-1.21.4.ebuild b/dev-ruby/sshkit/sshkit-1.21.4.ebuild new file mode 100644 index 000000000000..02943e115a2b --- /dev/null +++ b/dev-ruby/sshkit/sshkit-1.21.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +# There are functional tests that require vagrant boxes to be set up. +RUBY_FAKEGEM_TASK_TEST="test:units" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md FAQ.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="SSHKit makes it easy to write structured, testable SSH commands in Ruby" +HOMEPAGE="https://github.com/capistrano/sshkit" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/net-ssh-2.8.0:* + >=dev-ruby/net-scp-1.1.2 +" + +ruby_add_bdepend "test? ( dev-ruby/minitest dev-ruby/mocha )" + +all_ruby_prepare() { + sed -i -e '/bundler/I s:^:#:' Rakefile test/helper.rb || die + sed -e '/\(turn\|unindent\|reporters\)/I s:^:#:' \ + -e '1irequire "pathname"' \ + -i test/helper.rb || die + + # Fix assumption about parent directory name + sed -i -e '/assert_match/ s/sshkit/sshkit.*/' test/unit/test_deprecation_logger.rb || die +} + +each_ruby_test() { + # Run tests directly to avoid dependencies in the Rakefile + ${RUBY} -Ilib:test:. -e "Dir['test/unit/**/test*.rb'].each{|f| require f}" || die +} |
