diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-10-29 08:25:25 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-10-29 08:26:43 +0200 |
commit | 50cec27b7f5723d9aec1e8ecd803e56ac58894ed (patch) | |
tree | 87f8a0ae0d1527bfdbe110638da1e33175fec102 /dev-ruby | |
parent | dev-ruby/rspec-support: add 3.12.0 (diff) | |
download | gentoo-50cec27b7f5723d9aec1e8ecd803e56ac58894ed.tar.gz gentoo-50cec27b7f5723d9aec1e8ecd803e56ac58894ed.tar.bz2 gentoo-50cec27b7f5723d9aec1e8ecd803e56ac58894ed.zip |
dev-ruby/rspec-mocks: add 3.12.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rspec-mocks/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-mocks/rspec-mocks-3.12.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest index 43b79b987796..e09c7f0717f1 100644 --- a/dev-ruby/rspec-mocks/Manifest +++ b/dev-ruby/rspec-mocks/Manifest @@ -4,3 +4,4 @@ DIST rspec-mocks-3.10.3-git.tgz 196996 BLAKE2B 22759a11cefbaccfef52b2a1a37131d3d DIST rspec-mocks-3.11.0-git.tgz 198287 BLAKE2B 74b4abec79dc601fe734e0f657b239c2435b679d5624fad1fa9318eb4822be6d3899778af656913d3a89fd51a8334019aae51e45f10ab01b57655299187fb088 SHA512 7edf3a948a56b4f2c17f34ec2a00bf7289310f40a1561fd12dacdc27f0769dfb1f42632dd07c82831e27d21208499a2feac22ce92fdf6e450acbce38543a3b71 DIST rspec-mocks-3.11.1-git.tgz 198650 BLAKE2B bdf06f0614bb7b6c4eb6a0ff0af84d4f6ce8f456aad7c1b4324544d9750ee2e8c8a156d2181915f49afb62ba2be946c349cbd7ecc29caecb1c688ba6e47dc241 SHA512 c0095c615ba9e64f4dc9f2d5cb2a495f4e0b094b25eaf49c0d6a78bd4ab201f534a061243fbe63e86b64548c6c942d405dc36627057742135ce3e22e7561b4e9 DIST rspec-mocks-3.11.2-git.tgz 202347 BLAKE2B 7db89badf2cd3a9bdb590260dfced05cc72ccb7b2a8f600969f17c2df0523ee602f728aef257e88876f5c3b283645cf7f3243bd6de67c5bd26d3d74d0349593a SHA512 a1053cb9604b01de99f79b18fea2c4b3818d950e83da642a8b3aa9dbdb397429f51d95efa84a603770d4db94a25758c1cef15ce1ba77a4c952e9ef5f43a21e4d +DIST rspec-mocks-3.12.0-git.tgz 202794 BLAKE2B 053c4b1504a369376cfef8411fd97304e56cd83be1b89296e4bf5b260af8ef89f8aff85a095bac5b8244b38020725ddd087d93774b49b422d37344b142a4badc SHA512 f292d4ab82e7da2badff596fba91a26499821565b13b4004571efdcd8b559cc4996c3d6e092c429b8ee2962d0898c79b54eec7fd6c7835d414e1ff0258bdd3f8 diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.12.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.12.0.ebuild new file mode 100644 index 000000000000..1c4d8324b4db --- /dev/null +++ b/dev-ruby/rspec-mocks/rspec-mocks-3.12.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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.12.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 + + sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die +} |