summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-07-01 14:51:43 +0200
committerHans de Graaff <graaff@gentoo.org>2022-07-01 14:57:44 +0200
commite18183ce5ff55df1b19017446f32dcf32d7ccab1 (patch)
tree1d1a0887feebb4e2c2a6809ddf4d3535241ea470 /dev-ruby/bogus
parentdev-ruby/coercible: add 1.0.1, drop 1.0.0_p20200116 (diff)
downloadgentoo-e18183ce5ff55df1b19017446f32dcf32d7ccab1.tar.gz
gentoo-e18183ce5ff55df1b19017446f32dcf32d7ccab1.tar.bz2
gentoo-e18183ce5ff55df1b19017446f32dcf32d7ccab1.zip
dev-ruby/bogus: update EAPI 6 -> 8, add ruby30, ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/bogus')
-rw-r--r--dev-ruby/bogus/bogus-0.1.6-r1.ebuild34
1 files changed, 34 insertions, 0 deletions
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
+}