summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-12 15:46:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-12 15:46:29 +0000
commitb8b7b2522a954767ef7ab8cade6715434a65594b (patch)
treee4fb4c439fa43bbacbf6c5320375c60c7efa0726 /dev-ruby/fakefs
parentstable x86, bug 300267 (diff)
downloadgentoo-2-b8b7b2522a954767ef7ab8cade6715434a65594b.tar.gz
gentoo-2-b8b7b2522a954767ef7ab8cade6715434a65594b.tar.bz2
gentoo-2-b8b7b2522a954767ef7ab8cade6715434a65594b.zip
Initial import of fakefs as needed by rspec testsuite.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/fakefs')
-rw-r--r--dev-ruby/fakefs/ChangeLog10
-rw-r--r--dev-ruby/fakefs/fakefs-0.2.1.ebuild27
-rw-r--r--dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch10
-rw-r--r--dev-ruby/fakefs/metadata.xml5
4 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/ChangeLog b/dev-ruby/fakefs/ChangeLog
new file mode 100644
index 000000000000..3c4baaa64023
--- /dev/null
+++ b/dev-ruby/fakefs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/fakefs
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fakefs/ChangeLog,v 1.1 2010/01/12 15:46:28 flameeyes Exp $
+
+*fakefs-0.2.1 (12 Jan 2010)
+
+ 12 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +fakefs-0.2.1.ebuild, +files/fakefs-0.2.1-ruby19.patch, +metadata.xml:
+ Initial import of fakefs as needed by rspec testsuite.
+
diff --git a/dev-ruby/fakefs/fakefs-0.2.1.ebuild b/dev-ruby/fakefs/fakefs-0.2.1.ebuild
new file mode 100644
index 000000000000..61a65b3ffc54
--- /dev/null
+++ b/dev-ruby/fakefs/fakefs-0.2.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fakefs/fakefs-0.2.1.ebuild,v 1.1 2010/01/12 15:46:28 flameeyes Exp $
+
+EAPI=2
+
+# jruby → Marshal/DeMarshal to clone directories fail
+USE_RUBY="ruby18 ruby19"
+
+# requires sdoc
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.markdown"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="A fake filesystem. Use it in your tests."
+HOMEPAGE="http://github.com/defunkt/fakefs"
+
+LICENSE="as-is" # truly
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}"/${P}-ruby19.patch
+}
diff --git a/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch b/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch
new file mode 100644
index 000000000000..a4c742d3cc20
--- /dev/null
+++ b/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch
@@ -0,0 +1,10 @@
+Index: fakefs-0.2.1/lib/fakefs/file.rb
+===================================================================
+--- fakefs-0.2.1.orig/lib/fakefs/file.rb
++++ fakefs-0.2.1/lib/fakefs/file.rb
+@@ -1,3 +1,5 @@
++require 'stringio' unless defined? StringIO
++
+ module FakeFS
+ class File
+ PATH_SEPARATOR = '/'
diff --git a/dev-ruby/fakefs/metadata.xml b/dev-ruby/fakefs/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/fakefs/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>