commit: ac20b353269249a87bf670337042d7df88e4435b Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Apr 7 07:36:51 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Apr 7 07:37:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac20b353
Revert "dev-ruby/fakefs: drop 1.3.2" This reverts commit 6c814c317c786e58747b1ca52cf33b3fdc28780c. This is the last version that still supports ruby27. Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/fakefs/Manifest | 1 + dev-ruby/fakefs/fakefs-1.3.2.ebuild | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest index 350149353b20..4daf5e846487 100644 --- a/dev-ruby/fakefs/Manifest +++ b/dev-ruby/fakefs/Manifest @@ -1 +1,2 @@ +DIST fakefs-1.3.2.tar.gz 54762 BLAKE2B b5b8c00ffbd8974b2eb024deca4a2e48791fb542e2ad47d06d1c56ad1caab1433b240ea6af4a6836638c84bb79869dcd9d74194768d380173efe54f6765b7f7e SHA512 939dc7f28b266d8ef0cd5b4d33c6abc4a766143895d226b6a32af05f2f6e9eded63d86cf39d607094435a1b428297ad11366f645f4bf6789048b7e03357bacc6 DIST fakefs-1.9.0.tar.gz 56514 BLAKE2B 07e84f54413052b3bf37934b395c6115455ca241d42700dc054729be2ce82eb91944b83e01933fd001b46c9db593f2fd7a9b69f5f49529fde3e1ce967498db5b SHA512 e6be021fec79517127c6f514cc3379fa9c64d75c16d0ac80ed5b677f55625f1ee464eafa0768523a4b364323cfb1aae79814057ee9be3a0d947aac22d39a88f5 diff --git a/dev-ruby/fakefs/fakefs-1.3.2.ebuild b/dev-ruby/fakefs/fakefs-1.3.2.ebuild new file mode 100644 index 000000000000..298927b731fb --- /dev/null +++ b/dev-ruby/fakefs/fakefs-1.3.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" + +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/defunkt/fakefs" +SRC_URI="https://github.com/defunkt/fakefs/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm ~hppa ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="" + +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 "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 +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die +}