diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-12 08:58:55 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-12 09:21:26 +0200 |
commit | 59bbe1337b657e235763208b459c48255319de6c (patch) | |
tree | 592a93779b4fbe2fb87a1b9016fbf657b1831eb6 /dev-ruby/airbrussh | |
parent | dev-ruby/sinatra: add 3.1.0 (diff) | |
download | gentoo-59bbe1337b657e235763208b459c48255319de6c.tar.gz gentoo-59bbe1337b657e235763208b459c48255319de6c.tar.bz2 gentoo-59bbe1337b657e235763208b459c48255319de6c.zip |
dev-ruby/airbrussh: add 1.4.2
Closes: https://bugs.gentoo.org/911854
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/airbrussh')
-rw-r--r-- | dev-ruby/airbrussh/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/airbrussh/airbrussh-1.4.2.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/airbrussh/Manifest b/dev-ruby/airbrussh/Manifest index 117bfa8330f1..7a79b9ad8261 100644 --- a/dev-ruby/airbrussh/Manifest +++ b/dev-ruby/airbrussh/Manifest @@ -1 +1,2 @@ DIST airbrussh-1.4.1.tar.gz 1450155 BLAKE2B cecdc1b278a23c76b169febf5aa704d024a1ef41344a81a24d28f2a0f53830804f494d1bf967d8a54bfa73a92df333095fcc4591970c1d3e2ed1c23095258d11 SHA512 33bc484a3ac42a2a4a3795068649e93472bded1f887d9cdab52f4268090889b1d6ddc1c8743574b07e174eb606b24311ee13952d8b61517841693b44bf92450e +DIST airbrussh-1.4.2.tar.gz 1450323 BLAKE2B 34f14409c5c892c85db28da63c3dd6d13e7086d6338844416508abdcf67f7593ff05a1b755a5b8c171d7f87dafe6476198d4fe2361993af492553c996ec88708 SHA512 739cdadee7ec7f03fef3497528dbc2fc552a862f6fea7502aef843edf137523601b9dc6037737c7ba219142dbf749238f80eba6ff86055fe39769f5d80d19c16 diff --git a/dev-ruby/airbrussh/airbrussh-1.4.2.ebuild b/dev-ruby/airbrussh/airbrussh-1.4.2.ebuild new file mode 100644 index 000000000000..4e6a946c2ee6 --- /dev/null +++ b/dev-ruby/airbrussh/airbrussh-1.4.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_GEMSPEC="airbrussh.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A replacement log formatter for SSHKit" +HOMEPAGE="https://github.com/mattbrictson/airbrussh" +SRC_URI="https://github.com/mattbrictson/airbrussh/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +ruby_add_rdepend ">dev-ruby/sshkit-1.7.0" + +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/mocha:2 )" + +all_ruby_prepare() { + sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die + + rm -f test/support/minitest_reporters.rb || die + + # Add missing require + sed -i -e '1irequire "rake" ; require "rake/task"' test/support/rake_task_definition.rb || die + + # Avoid a test poluting the environment + sed -i -e '/test_color_is_can_be_forced_via_env/,/^ end/ s:^:#:' test/airbrussh/console_test.rb || die +} + +each_ruby_test() { + MT_NO_PLUGINS=1 ${RUBY} -Ilib:test:. -e 'Dir["test/**/*_test.rb"].each {|f| require f}' || die +} |