commit:     e18183ce5ff55df1b19017446f32dcf32d7ccab1
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  1 12:51:43 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jul  1 12:57:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e18183ce

dev-ruby/bogus: update EAPI 6 -> 8, add ruby30, ruby31

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/bogus/bogus-0.1.6-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/dev-ruby/bogus/bogus-0.1.6-r1.ebuild 
b/dev-ruby/bogus/bogus-0.1.6-r1.ebuild
new file mode 100644
index 000000000000..8b9cc6da1531
--- /dev/null
+++ b/dev-ruby/bogus/bogus-0.1.6-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ensuring that the things you stub or mock actually exist"
+HOMEPAGE="https://github.com/psyho/bogus";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/dependor-0.0.4"
+
+all_ruby_prepare() {
+       sed -i -e '/simplecov/,/^end/ s:^:#:' \
+               -e '/SimpleCov/,/^end/ s:^:#:' spec/spec_helper.rb || die
+
+       # Avoid dependency on unpackaged nulldb
+       rm -f spec/bogus/fakes/fake_ar_attributes_spec.rb || die
+
+       # Avoid keyword specs failing on ruby30
+       rm -r spec/bogus/ruby_2* || die
+}

Reply via email to