summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-03-09 06:56:09 +0100
committerHans de Graaff <graaff@gentoo.org>2016-03-10 06:48:17 +0100
commit82fd1cad31ddd44d43f78a896dac47f43f5ed7b9 (patch)
tree22a6158cc72ca724dbd84f05092e56b5f73736a1
parentdev-ruby/fakefs: cleanup (diff)
downloadgentoo-82fd1cad31ddd44d43f78a896dac47f43f5ed7b9.tar.gz
gentoo-82fd1cad31ddd44d43f78a896dac47f43f5ed7b9.tar.bz2
gentoo-82fd1cad31ddd44d43f78a896dac47f43f5ed7b9.zip
dev-ruby/fakefs: add 0.8.1
Package-Manager: portage-2.2.26
-rw-r--r--dev-ruby/fakefs/Manifest1
-rw-r--r--dev-ruby/fakefs/fakefs-0.8.1.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest
index c661e844b529..bebcd3e31d94 100644
--- a/dev-ruby/fakefs/Manifest
+++ b/dev-ruby/fakefs/Manifest
@@ -1,3 +1,4 @@
DIST fakefs-0.6.0.gem 41984 SHA256 43a668e9a436654d66eff7e896793800b4b8d87c3ecd5a6a84e23fb52580150e SHA512 8c0eac75103e1917551e2f5e74a5324d5a606e7692a8e4c49c9b97e2b5005bd381073a5780a8e6d1fb661a1bb4a67e56c29ce98cd2e2e62cce22602c30e4225f WHIRLPOOL c1a520c9cf3913e727ef570367d238e2ec88eb8d41789d1d33e9227a5a5dd9c62f4a462374066e1e5b5c5ac8bb0f738e6513b4d4182c20969178a82f90aa2739
DIST fakefs-0.7.0.gem 45568 SHA256 26f222a646ca113c5cb0a7c0adb90a521e5c791a809801270f55c1462769bced SHA512 881342155a153211a0f76b37722e60de08be953a3345fffab9f57f141d3e5443636e5d82a97620487319fb61b9932051ff73e9fc8aa9f12fb7acaf02ea31e4e4 WHIRLPOOL 8ed1060a9ac3fbe8b334f5dc7ab23371d156faa0afcae76eb069b365df7a3e2e8b723931358ab065cd1e5bd9fae384abadc77b385c239847f2a09c9ca00b4440
DIST fakefs-0.8.0.tar.gz 42199 SHA256 fa0fd9e0c7abdada30c590983d37d6748b3abd9b54a8717d19ff933cec64b5c9 SHA512 f20165375bf28eff8328ed15883591abc5148ad302b42fc36154d807b004ea863ae7fdf95938d7468fe3506bb2dee9c020e1dfef30d70deaa2a4983e3c52ec0f WHIRLPOOL 520e2d74bc4db63e36e46b0edbb75d34c37eb46d42327a7500e3b87d648432f34381b69ba9be4ea14ea791f50556501c700a002066883313358ad6b2063d45aa
+DIST fakefs-0.8.1.tar.gz 42214 SHA256 b0b997e740045c47aece10fc24fdf5549886e8167acac19e65b65496bfa58d5e SHA512 1b729ece33b56eb8ae5e9cd2632f9e75adc318fbd34c9180bbe71853b96303563fd0cf8cc420ef8a8a5dd591bad4350be1efcb9847d9449531b4a4b3776017c5 WHIRLPOOL 279e6fc2a83d2214fe5710e289e75a772549f3d3e28a6405b22734430e1218e0117104acbce74699646a834300dd1685b2a5395626ff66dae96db010faee798e
diff --git a/dev-ruby/fakefs/fakefs-0.8.1.ebuild b/dev-ruby/fakefs/fakefs-0.8.1.ebuild
new file mode 100644
index 000000000000..8421e36a40c7
--- /dev/null
+++ b/dev-ruby/fakefs/fakefs-0.8.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.markdown"
+
+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="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~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 '/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
+}