summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-03-15 07:25:54 +0100
committerHans de Graaff <graaff@gentoo.org>2019-03-15 07:39:29 +0100
commit83f4fccb95c352632c08778d60f5c7f48ad3aef7 (patch)
tree7199067211b0d0be8a9b7108fb485497c458c812
parentdev-ruby/fakefs: cleanup (diff)
downloadgentoo-83f4fccb95c352632c08778d60f5c7f48ad3aef7.tar.gz
gentoo-83f4fccb95c352632c08778d60f5c7f48ad3aef7.tar.bz2
gentoo-83f4fccb95c352632c08778d60f5c7f48ad3aef7.zip
dev-ruby/fakefs: add 0.20.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
-rw-r--r--dev-ruby/fakefs/Manifest1
-rw-r--r--dev-ruby/fakefs/fakefs-0.20.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest
index 08d2dd677cfa..cde1b27b94b7 100644
--- a/dev-ruby/fakefs/Manifest
+++ b/dev-ruby/fakefs/Manifest
@@ -2,3 +2,4 @@ DIST fakefs-0.11.3.tar.gz 44888 BLAKE2B 498dbcbe12389f27b6c6776425910f91ccc45ff8
DIST fakefs-0.18.1.tar.gz 50861 BLAKE2B 71d2a8d34874e42f5fe827d0377ef9996f67f96b6c2b0a194f71c8597b9f145b4b762424fea4727e21a7261387ca43f783a67ed3250fa41cfb395ecc9b51cb6a SHA512 1cb11fc384615b9fde03c318463220abd76ca4043038cdb1a74f7cd94ed5c23cb6cb8ce47b40fe145cf8db7707fb10df1357d6f09b4e918b05948ed5b807ed27
DIST fakefs-0.19.0.tar.gz 52718 BLAKE2B aba7cedf9dd2f365365b5785ac390b82e1d743eab0ecb13aa4a661ebda099b01a1db3e59003a52b6d5ed404927024d13fd767f3f4c00eb1f3094b84d74614860 SHA512 ba3a24854e1751ed454bc0b5243fd4618092cc7e3606371f48f96ba81571de3e5cb33f95360b0eb549b2efc6fd21fe7ad272082dc0b7559e375551a8922ea2cb
DIST fakefs-0.19.2.tar.gz 53405 BLAKE2B c9841f7f2aee5135d149187d03f7f3034d3c6cbce6d33d3710fcdbd936b4599561c857dfac81f13262da6f067a843d0c3159abca0e8be7f77c95ff20e8bd123a SHA512 e27eedff44c3ff556b0e7a22e434205e54847a6f6b03a8ab7604c2f2e9abf8be7d5b8d29bd51e24cc032dfb3aaf7940060c3dae5532b0921e363d2213b12ed90
+DIST fakefs-0.20.0.tar.gz 53591 BLAKE2B 067fef803bb0efb50f63f0c0fb645bb4d0d1c00d198cdf367e99871c6cb9e28cc1d4f0a52318a61c446577aa58170143c2aea4b0b826136610430abf996d03aa SHA512 9f9b2cef58709f7ab1147602b2f47d6a0302b217cc7210537605491f9db6477183e5fa447974c0572f1a1fbecce1029e451241d44b5f96eec97a7521275c165c
diff --git a/dev-ruby/fakefs/fakefs-0.20.0.ebuild b/dev-ruby/fakefs/fakefs-0.20.0.ebuild
new file mode 100644
index 000000000000..e529ce1f1e18
--- /dev/null
+++ b/dev-ruby/fakefs/fakefs-0.20.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.md"
+
+inherit ruby-fakegem eutils
+
+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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/rspec-3.1:3
+ >=dev-ruby/minitest-5.5
+ )"
+
+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
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
+}