commit:     dee6514c42b9e553e61e7a0e5375b7011539f9a7
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 06:33:39 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 08:36:11 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee6514c

dev-ruby/rspec-mocks: add 3.12.3

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rspec-mocks/Manifest                  |  1 +
 dev-ruby/rspec-mocks/rspec-mocks-3.12.3.ebuild | 50 ++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest
index dafc94f0bb1f..e56d42fb2df1 100644
--- a/dev-ruby/rspec-mocks/Manifest
+++ b/dev-ruby/rspec-mocks/Manifest
@@ -3,3 +3,4 @@ DIST rspec-mocks-3.10.2-git.tgz 196040 BLAKE2B 
8e975dc8480d4709f650ff27c51710471
 DIST rspec-mocks-3.10.3-git.tgz 196996 BLAKE2B 
22759a11cefbaccfef52b2a1a37131d3d0b6eb5eb20d042172cf30e14816112bce729c2648c0b22a6506f9959fd336024710e18882bbe42f42144f0bd43e1281
 SHA512 
b116094873f682f14cb38a5dd7c0aa8fffac868ca28f7302bbc655bfb0c0ff64afe345b71b797d01028d9fbdad97df5ecf8398a82fc0a7252f2b47a963dbeac0
 DIST rspec-mocks-3.11.2-git.tgz 202347 BLAKE2B 
7db89badf2cd3a9bdb590260dfced05cc72ccb7b2a8f600969f17c2df0523ee602f728aef257e88876f5c3b283645cf7f3243bd6de67c5bd26d3d74d0349593a
 SHA512 
a1053cb9604b01de99f79b18fea2c4b3818d950e83da642a8b3aa9dbdb397429f51d95efa84a603770d4db94a25758c1cef15ce1ba77a4c952e9ef5f43a21e4d
 DIST rspec-mocks-3.12.2-git.tgz 204751 BLAKE2B 
bcbb8d6df6b1bf3b58e43e72c25b792f91f00467520cb1b366883e8ad54b7a380b287ae9e6f453de78603423f099ed0d4b3759338f5a4a91ea9c42c16439c4eb
 SHA512 
ae1cdafe53d7c3258bce4cd0bec10a9b91886f2b71736e028350ea212999b88b9fb2e3554f1db040bf8e66cfb2d0139c305aa219e01c8db998b75283da327d3a
+DIST rspec-mocks-3.12.3-git.tgz 204925 BLAKE2B 
b72faa1e560b179a0bb9f2a59d53b2dd01142bfaaa60f66056848eb3f3c7181877be3d921c3eff5e023834fb256f2a7f49f96cf448040713e52560c8d4525ef9
 SHA512 
0ed50f0e9a38a23805a56c1ae3ffa94f27428755f6613053df0771440d0b5b9f3d6d1bbc8a3e310e0f66b57540dd8bc3e409336c96a78d178506b3ac2e849b67

diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.12.3.ebuild 
b/dev-ruby/rspec-mocks/rspec-mocks-3.12.3.ebuild
new file mode 100644
index 000000000000..078bb0e70328
--- /dev/null
+++ b/dev-ruby/rspec-mocks/rspec-mocks-3.12.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 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
+}

Reply via email to