summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-02-22 07:13:34 +0100
committerHans de Graaff <graaff@gentoo.org>2019-02-22 07:13:34 +0100
commita5ba8c461fdc9a4f5500a826fadf16ec40fbdddb (patch)
tree679a39d3b1cf3d5a4ff94b3c102d6c2f68371f17 /dev-ruby/fakefs
parentnet-analyzer/netdata: 1.12.1 version bump (diff)
downloadgentoo-a5ba8c461fdc9a4f5500a826fadf16ec40fbdddb.tar.gz
gentoo-a5ba8c461fdc9a4f5500a826fadf16ec40fbdddb.tar.bz2
gentoo-a5ba8c461fdc9a4f5500a826fadf16ec40fbdddb.zip
dev-ruby/fakefs: add 0.19.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/fakefs')
-rw-r--r--dev-ruby/fakefs/Manifest1
-rw-r--r--dev-ruby/fakefs/fakefs-0.19.2.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest
index 33f430216933..150f3a1ef057 100644
--- a/dev-ruby/fakefs/Manifest
+++ b/dev-ruby/fakefs/Manifest
@@ -3,3 +3,4 @@ DIST fakefs-0.17.0.tar.gz 48156 BLAKE2B 0d05def00b527fb0d510ea73d6c39ac9025f5d2e
DIST fakefs-0.18.0.tar.gz 49625 BLAKE2B 2b6a93c307df8e8ca50b8f669daf6d662f5798f456ef69c3841249dd7874fb026b1b78ab47db2b3648396b93915e569c529c5339ed73bcacf7f563210a8c1458 SHA512 3a693a0e6338dad0e91fc5176c390d2f1153d093ead1750d084434392d79a8d9ca22c94ba90adadf5ab3931f5b760c32144668f7791f959d442452116165936f
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
diff --git a/dev-ruby/fakefs/fakefs-0.19.2.ebuild b/dev-ruby/fakefs/fakefs-0.19.2.ebuild
new file mode 100644
index 000000000000..e529ce1f1e18
--- /dev/null
+++ b/dev-ruby/fakefs/fakefs-0.19.2.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
+}