summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-12-09 08:06:29 +0100
committerHans de Graaff <graaff@gentoo.org>2024-12-09 08:07:02 +0100
commit20b8ec14da4dae5f975a7381d30fde867db3d718 (patch)
tree3c6d577208cc0eceecf38ba3d8c13de7a97f170d /dev-ruby/fakefs
parentapp-i18n/opencc: Stabilize 1.1.7 sparc, #936989 (diff)
downloadgentoo-20b8ec14da4dae5f975a7381d30fde867db3d718.tar.gz
gentoo-20b8ec14da4dae5f975a7381d30fde867db3d718.tar.bz2
gentoo-20b8ec14da4dae5f975a7381d30fde867db3d718.zip
dev-ruby/fakefs: add 2.7.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/fakefs')
-rw-r--r--dev-ruby/fakefs/Manifest1
-rw-r--r--dev-ruby/fakefs/fakefs-2.7.1.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest
index 14fb22933864..330f9684712f 100644
--- a/dev-ruby/fakefs/Manifest
+++ b/dev-ruby/fakefs/Manifest
@@ -1,2 +1,3 @@
DIST fakefs-1.9.0.tar.gz 56514 BLAKE2B 07e84f54413052b3bf37934b395c6115455ca241d42700dc054729be2ce82eb91944b83e01933fd001b46c9db593f2fd7a9b69f5f49529fde3e1ce967498db5b SHA512 e6be021fec79517127c6f514cc3379fa9c64d75c16d0ac80ed5b677f55625f1ee464eafa0768523a4b364323cfb1aae79814057ee9be3a0d947aac22d39a88f5
DIST fakefs-2.5.0.tar.gz 57850 BLAKE2B fc53d8f3dd40bfbbef81e9c092439a099a9964b4eff8e5fa6d59c2215aca735d02ab24f2a44c2f51fe874c2a3b088190455cff17a3bf9099e9f56effbceed61c SHA512 acc2fd6891964ce6ab3dd307d8bc90dcaa92c9c01328865bfcee5de5959089e7d7dcbb4d52576b5fb81321ad12719c7d3999d6b0102e5e2d9ef88522ca032bdc
+DIST fakefs-2.7.1.tar.gz 62080 BLAKE2B dcfdc4f7d3e6602e2b0661deac991824ad687cf1270a68fc84a037cd67bfbf6938717e8bf11541362cdae6cd355bf990a0edea0c2756df4ab6d898fd70a2177d SHA512 dfba10131f4d0e26ea1b5f492c869015948367155b00e472f3559507445eb60f388d4abad5fbac1bc495bcc8ddeed8389f2841781bdcbdbb8a07db44aa9632b1
diff --git a/dev-ruby/fakefs/fakefs-2.7.1.ebuild b/dev-ruby/fakefs/fakefs-2.7.1.ebuild
new file mode 100644
index 000000000000..4c9a57d024d9
--- /dev/null
+++ b/dev-ruby/fakefs/fakefs-2.7.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+
+RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.md"
+
+RUBY_FAKEGEM_GEMSPEC="fakefs.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A fake filesystem. Use it in your tests"
+HOMEPAGE="https://github.com/fakefs/fakefs"
+SRC_URI="https://github.com/fakefs/fakefs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/rspec-3.1:3
+ >=dev-ruby/maxitest-3.6:1
+ )"
+
+all_ruby_prepare() {
+ # Remove bundler
+ rm Gemfile || die
+
+ # Avoid unneeded minitest-rg dependency.
+ sed -i -e '1igem "maxitest"; gem "minitest", "~>5.5"' \
+ -e '/bundler/ s:^:#:' \
+ -e '/minitest\/rg/ s:^:#:' test/test_helper.rb || die
+
+ sed -i -e 's/git ls-files/find */' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid test that uses the console and hangs on user input
+ rm -f test/pry_test.rb || die
+
+ # Avoid a test broken by newer irb versions.
+ rm -f test/irb_test.rb || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
+}