summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-05-06 07:07:24 +0200
committerHans de Graaff <graaff@gentoo.org>2017-05-06 07:09:55 +0200
commite9fd1d85510b31a3af56ab4e7eeecd178fdb8558 (patch)
treef1181c9a15ab45128a309ddd415744ee66e519a9 /dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild
parentdev-ruby/rspec-expectations: add 3.6.0 (diff)
downloadgentoo-e9fd1d85510b31a3af56ab4e7eeecd178fdb8558.tar.gz
gentoo-e9fd1d85510b31a3af56ab4e7eeecd178fdb8558.tar.bz2
gentoo-e9fd1d85510b31a3af56ab4e7eeecd178fdb8558.zip
dev-ruby/rspec-mocks: add 3.6.0
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild')
-rw-r--r--dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild
new file mode 100644
index 000000000000..dbd15d4582b8
--- /dev/null
+++ b/dev-ruby/rspec-mocks/rspec-mocks-3.6.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
+HOMEPAGE="https://github.com/rspec/rspec-mocks"
+SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+LICENSE="MIT"
+SLOT="3"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+SUBVERSION="$(get_version_component_range 1-2)"
+
+ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}*
+ >=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/rspec-core-3.3.0:3
+ >=dev-ruby/rspec-expectations-2.99.0:3
+ )"
+
+all_ruby_prepare() {
+ # Don't set up bundler: it doesn't understand our setup.
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+
+ # Remove the Gemfile to avoid running through 'bundle exec'
+ rm Gemfile || die
+
+ # Remove .rspec options to avoid dependency on newer rspec when
+ # bootstrapping.
+ rm .rspec || die
+
+ sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die
+}