summaryrefslogtreecommitdiff
path: root/dev-ruby/sshkit/sshkit-1.22.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-01-10 18:28:02 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-01-10 18:28:02 +0000
commitd84acec526f1d609ed05b667b8801378dba2cf3e (patch)
treea4b088bba9bb0f412c14648c3a01c52e0d3c1703 /dev-ruby/sshkit/sshkit-1.22.0.ebuild
parente3b3b0f2705994a75108644ae4dee161790369d1 (diff)
downloadsrcux-d84acec526f1d609ed05b667b8801378dba2cf3e.tar.gz
srcux-d84acec526f1d609ed05b667b8801378dba2cf3e.tar.xz
srcux-d84acec526f1d609ed05b667b8801378dba2cf3e.zip
Adding metadata
Diffstat (limited to 'dev-ruby/sshkit/sshkit-1.22.0.ebuild')
-rw-r--r--dev-ruby/sshkit/sshkit-1.22.0.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/sshkit/sshkit-1.22.0.ebuild b/dev-ruby/sshkit/sshkit-1.22.0.ebuild
new file mode 100644
index 000000000000..e5a34a057ff2
--- /dev/null
+++ b/dev-ruby/sshkit/sshkit-1.22.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+# 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 ~ppc ~ppc64 ~x86"
+
+ruby_add_rdepend "
+ dev-ruby/mutex_m
+ >=dev-ruby/net-ssh-2.8.0:*
+ >=dev-ruby/net-scp-1.1.2
+ >=dev-ruby/net-sftp-2.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
+}