summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-02-28 11:04:24 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-02-28 11:04:24 +0000
commit9212fbeb8ffbc27c2094bf4da70b79208a00f71f (patch)
tree5c6d10109fb525d58f9855cec06762491c4b2ce7
parentFixed another bad mabi. Issue 406107 (diff)
downloadgentoo-2-9212fbeb8ffbc27c2094bf4da70b79208a00f71f.tar.gz
gentoo-2-9212fbeb8ffbc27c2094bf4da70b79208a00f71f.tar.bz2
gentoo-2-9212fbeb8ffbc27c2094bf4da70b79208a00f71f.zip
Initial import of the bourne extension to mocha.
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
-rw-r--r--dev-ruby/bourne/ChangeLog10
-rw-r--r--dev-ruby/bourne/bourne-1.1.0.ebuild33
-rw-r--r--dev-ruby/bourne/metadata.xml5
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/bourne/ChangeLog b/dev-ruby/bourne/ChangeLog
new file mode 100644
index 000000000000..b0ba68c76a89
--- /dev/null
+++ b/dev-ruby/bourne/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/bourne
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bourne/ChangeLog,v 1.1 2012/02/28 11:04:24 flameeyes Exp $
+
+*bourne-1.1.0 (28 Feb 2012)
+
+ 28 Feb 2012; Diego E. Pettenò <flameeyes@gentoo.org> +bourne-1.1.0.ebuild,
+ +metadata.xml:
+ Initial import of the bourne extension to mocha.
+
diff --git a/dev-ruby/bourne/bourne-1.1.0.ebuild b/dev-ruby/bourne/bourne-1.1.0.ebuild
new file mode 100644
index 000000000000..1506390843fd
--- /dev/null
+++ b/dev-ruby/bourne/bourne-1.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bourne/bourne-1.1.0.ebuild,v 1.1 2012/02/28 11:04:24 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19 ree18 jruby"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_TASK_TEST="default"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Extends mocha to allow detailed tracking and querying of stub and mock invocations."
+HOMEPAGE="http://github.com/thoughtbot/bourne"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "=dev-ruby/mocha-0.10*"
+
+all_ruby_prepare() {
+ sed -i \
+ -e '/git ls-files/d' \
+ -e '/dependency.*mocha/s:= 0.10.4:~> 0.10.3:' \
+ "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ sed -i -e '/bundler/d' Rakefile || die
+}
diff --git a/dev-ruby/bourne/metadata.xml b/dev-ruby/bourne/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/bourne/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>