diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-10-10 07:25:45 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-10-10 07:42:35 +0200 |
commit | c655773ff08c8fcb3f9c7df81f89848f53982ff4 (patch) | |
tree | 6e38d913f4231981cc2a7968f0c027eb34173d11 /dev-ruby/rspec-mocks | |
parent | dev-ruby/rspec-expectations: add 3.8.6 (diff) | |
download | gentoo-c655773ff08c8fcb3f9c7df81f89848f53982ff4.tar.gz gentoo-c655773ff08c8fcb3f9c7df81f89848f53982ff4.tar.bz2 gentoo-c655773ff08c8fcb3f9c7df81f89848f53982ff4.zip |
dev-ruby/rspec-mocks: add 3.8.2
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rspec-mocks')
-rw-r--r-- | dev-ruby/rspec-mocks/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-mocks/rspec-mocks-3.8.2.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest index 49e5bebd8254..06659058617c 100644 --- a/dev-ruby/rspec-mocks/Manifest +++ b/dev-ruby/rspec-mocks/Manifest @@ -1,3 +1,4 @@ DIST rspec-mocks-2.99.2-git.tgz 101731 BLAKE2B 27ae180381d427b642c53c351e7b53602caba4252ddf5393949d940be8474110eb0697901afaaa878cd8d368f081c6644c0fcbce86d9d14b9f93f48c027ae808 SHA512 dd3b9394d56de8d3089db7777cda1e1a5bbdc46486876a99a8a83b602b84ba0320913d8e8dabe5e0367645eb01b943607b93e67d87cc26e380c8db6e048e4e0d DIST rspec-mocks-3.7.0-git.tgz 189170 BLAKE2B a0a622ac593660c673cd80b3f3caddd2ac389000f42a7ed1745e1fcfd28d1986e61e83c265d736f3ad0649531973719bc9c5f6ab07e289cb2da89c4482e64184 SHA512 8673726571ccf8a901281e44faeb25ffcb59579dc380138f0557cd9310192cd340081e5e8ad65ae281777727b502cca2f6877134b0fb48f2e0ea40b133002aff DIST rspec-mocks-3.8.1-git.tgz 191543 BLAKE2B dae8b22a011a3563eb65d1709006169bf5dcf310749cb858f4ff20c7b82e7675a616fc427136fe5e0edeef1db0b42a1d0af1c5623eed35807e84dc355131c8cc SHA512 ec71c4b815beef315f8db329bd2b0e60cdbb1fa37939c624799c1589d94dd28f74b3d1a4c0b9025bc98a809f80d625315458351fe7dec8291bad20e79beecca8 +DIST rspec-mocks-3.8.2-git.tgz 191807 BLAKE2B 9ec44fcaad9fe1e9d75cfb84253e52411b7083070de5dbb19bcdf7c518eb2439e6493e979daf814df7b31bab8bbe72821d42eb797ab88d95e051a700b63d93b5 SHA512 42b9b952386ce862a1cc19116991ae6b4633d551db057babe2e4aa6553acb6eafbb05b98df8a5c6cb362a00025ac3ce0f43f3c4e4ea63343c8bf0dad769a3aed diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.8.2.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.8.2.ebuild new file mode 100644 index 000000000000..73ff3bfd25fa --- /dev/null +++ b/dev-ruby/rspec-mocks/rspec-mocks-3.8.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +#RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec" + +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 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +SUBVERSION="$(ver_cut 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 +} |