From ebce8994fe3cc4ca9fbc96ca837cb4c4e98adcbd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 6 May 2018 11:18:16 +0100 Subject: gentoo resync : 06.05.2018 --- dev-ruby/sshkit/sshkit-1.16.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-ruby/sshkit/sshkit-1.16.0.ebuild (limited to 'dev-ruby/sshkit/sshkit-1.16.0.ebuild') diff --git a/dev-ruby/sshkit/sshkit-1.16.0.ebuild b/dev-ruby/sshkit/sshkit-1.16.0.ebuild new file mode 100644 index 000000000000..e10e7a0497b3 --- /dev/null +++ b/dev-ruby/sshkit/sshkit-1.16.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24" + +# There are functional tests that require vagrant boxes to be set up. +RUBY_FAKEGEM_TASK_TEST="test:units" + +RUBY_FAKEGEM_TASK_DOC="" +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 -i -e '/\(turn\|unindent\|reporters\)/I s:^:#:' \ + -e '1irequire "set"; require "pathname"' 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 +} -- cgit v1.2.3