summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-12-08 08:52:26 +0100
committerHans de Graaff <graaff@gentoo.org>2024-12-08 08:52:26 +0100
commit6a7da546a9956058b138d255bd0b22dd59243693 (patch)
tree5ce43fd6339a1be11b98e536117e6554a58a5f6c /dev-ruby
parentdev-java/javassist: add 3.30.2 #916492 (diff)
downloadgentoo-6a7da546a9956058b138d255bd0b22dd59243693.tar.gz
gentoo-6a7da546a9956058b138d255bd0b22dd59243693.tar.bz2
gentoo-6a7da546a9956058b138d255bd0b22dd59243693.zip
dev-ruby/mocha: add 2.7.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mocha/Manifest1
-rw-r--r--dev-ruby/mocha/mocha-2.7.0.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest
index 4202f6f99c8e..3aea672cb157 100644
--- a/dev-ruby/mocha/Manifest
+++ b/dev-ruby/mocha/Manifest
@@ -5,3 +5,4 @@ DIST mocha-2.2.0.tar.gz 247014 BLAKE2B 7be3453e30be305a27a3a9c9cde8cfc196ebbf073
DIST mocha-2.4.5.tar.gz 248872 BLAKE2B 739dfe4945d153117e5c644b6f0ed568c08e88e27807d37455a8c86d0ec3e5246203b8561097752ddf974883bb6f4b6fb959fac5ccf3f950b2387f87de117f66 SHA512 25f7873071b8ad531ffc3a8c680115810654b9478a8f7f4f999df8c38e9a60a262fcf5719ff620c649134d7df39663e00b2f5fae5635ad02b4aa6b6a92cf0869
DIST mocha-2.5.0.tar.gz 250685 BLAKE2B 4ad2b4b0ba7c1d77b6d15de456e4998fe0c02b9004a02a070c1b7e852f25b028ca1837bba59c086d259aeb0c687ef45dbf435133e47fea612778ab4317b60ab6 SHA512 4ca3be919cf143f661e135f9b477d305688a69f3ea8587028eff20ab93a05b8259632edcc7704773aff88e85237ae95c42f08d48700bcd102696a28ceb11973a
DIST mocha-2.6.1.tar.gz 251543 BLAKE2B db9ed8d31b72c229dd56c0417fa32312fb9142b443743be896a7f02e38b46e1f7a36a5be377122c007cc9eb0c735d019fefa1958aa46c22c5d11af61a70cfc00 SHA512 25fb178d6f63b1357017b7b007c35e0cb94fd854ceaeaf74686e5a104006aa9033fc554d69e3b59e0a03cecde8d6aa06b24ac2055e2cd4467ea340ec1710c955
+DIST mocha-2.7.0.tar.gz 252168 BLAKE2B 355f8998815eb2c9206f25e5201c577e725a57f58fb3627292517b2cc579806f2865da8c05647a57f522dbb475e330cbdf7fc94b2850122ff2232ddbda0654bb SHA512 9ba9d7f4f14f17435b32527233a3664d07e505827c1a8f932314232e807992364f5f74fc1b5e8a14dd1b06daac962c147cb801d52a333e4f8ca51dff9267b144
diff --git a/dev-ruby/mocha/mocha-2.7.0.ebuild b/dev-ruby/mocha/mocha-2.7.0.ebuild
new file mode 100644
index 000000000000..06d86dc2ac9b
--- /dev/null
+++ b/dev-ruby/mocha/mocha-2.7.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+RUBY_FAKEGEM_TASK_TEST="test:units test:acceptance"
+RUBY_FAKEGEM_EXTRADOC="README.md RELEASE.md"
+RUBY_FAKEGEM_GEMSPEC="mocha.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Mocking and stubbing using a syntax like that of JMock and SchMock"
+HOMEPAGE="https://mocha.jamesmead.org/"
+SRC_URI="https://github.com/freerange/mocha/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+ruby_add_rdepend ">=dev-ruby/ruby2_keywords-0.0.5"
+
+ruby_add_bdepend "
+ test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
+
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ export MOCHA_NO_DOCS=true
+ each_fakegem_test
+}