summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-07-03 07:46:50 +0200
committerHans de Graaff <graaff@gentoo.org>2016-07-03 07:46:50 +0200
commitf2f2aaf19f722b0562226c27b4ec310b7e80ebdf (patch)
treeb218ddb708d78512bbacf79d2587f9a3be84741f
parentdev-ruby/rspec-support: add rspec 3.5 (diff)
downloadgentoo-f2f2aaf19f722b0562226c27b4ec310b7e80ebdf.tar.gz
gentoo-f2f2aaf19f722b0562226c27b4ec310b7e80ebdf.tar.bz2
gentoo-f2f2aaf19f722b0562226c27b4ec310b7e80ebdf.zip
dev-ruby/rspec-mocks: add rspec 3.5
Package-Manager: portage-2.2.28
-rw-r--r--dev-ruby/rspec-mocks/Manifest1
-rw-r--r--dev-ruby/rspec-mocks/rspec-mocks-3.5.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest
index 92ad0e98ab4..ecd4372a6d0 100644
--- a/dev-ruby/rspec-mocks/Manifest
+++ b/dev-ruby/rspec-mocks/Manifest
@@ -3,3 +3,4 @@ DIST rspec-mocks-2.99.2-git.tgz 101731 SHA256 fad961e30ef67e014625fb6b4bb62db0f6
DIST rspec-mocks-3.3.2-git.tgz 174849 SHA256 faec1a03eecdda1217238df7989c80f4201cf7613580af3824b2fa3af2c45ec0 SHA512 b03dd81232650d851db51dd62a11c6f34df7e3d47db9ec96168259f7d4045d2497098de903b5ef6865c29a5f4835ee1865ff64a8177f9212e8f699175ec7fe90 WHIRLPOOL 33936705596662c74c31b74b1bc5ac57bb76290b4fda1375edb18b9491c7b1ced0dd545c21ae6b67174275235ff767ddc322b73da97685a0dc6eeff13b9c9b61
DIST rspec-mocks-3.4.0-git.tgz 182517 SHA256 87673a6c2a2c4c4054dcf2694c6deecc304fc8a1cb8684e3b55b21536ee1e593 SHA512 1d697c501a256031c1070706082d4dcd86c7441935f9427a9479a79da91fa432414ffdce0cf0b32178e2c2731f8947446780b1bd9f325bff61878425d5f86328 WHIRLPOOL 15dec1303e4d58d471e6833317d282ba1cf3e6a370b4f32297e8b6a97755402cf83517fb4ca36766934946fe70baf6a41cdc74d8999581d1c6a7fa5ab99ed5e9
DIST rspec-mocks-3.4.1-git.tgz 182922 SHA256 0d749c3c9a229b2c9811986ae9676b6fd644b950eebac73155e7202bb275c72d SHA512 1e5b0bad9ef95f2479cf5fe5488076fd42c3fbcd2d35278b9da6d45106819e0bde29564a3962f8214565c944cb2b44475660d3f53fd64b11916aa85f7af94fdd WHIRLPOOL 0cbfffc2c79056da2134fa1217d535c8ba52362181f7bcd638ff876c64b1c70a32e049e81714a260daca21481c6c30dbaf024620eacdc660a1930974869c1f93
+DIST rspec-mocks-3.5.0-git.tgz 186806 SHA256 19340072723eb9b632fdc3e2636540d617d585d5ae1a0b67c7c07e93cc5a84e2 SHA512 b7dcb4ce0eac894d6652be45fea981cb7ade47a739ad926a87aa41d8a34fa9deffc45f5718d1634f03fbedaba82a77005466fa83155dc433fed6a19f8a897c4d WHIRLPOOL 6dd479a9efcfa149a4342f36f28a6350d16a222b78f1141996c3a38f77f7c7995bacd1cd67b4ebd97c46bf57a8a6eb684fba92ca2a12df4d9c14ea9eb99af2f2
diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.5.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.5.0.ebuild
new file mode 100644
index 00000000000..354afdb8384
--- /dev/null
+++ b/dev-ruby/rspec-mocks/rspec-mocks-3.5.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+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 ~ppc64 ~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
+}