diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-07-25 06:32:43 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-07-25 06:38:09 +0200 |
commit | c27c44eb261d5a5ba08489930451ac3f67f1e2e2 (patch) | |
tree | 5bc9aad52d6f56d277f32f41ea39e35f559f1549 | |
parent | dev-ruby/selenium-webdriver: add 4.23.0 (diff) | |
download | gentoo-c27c44eb261d5a5ba08489930451ac3f67f1e2e2.tar.gz gentoo-c27c44eb261d5a5ba08489930451ac3f67f1e2e2.tar.bz2 gentoo-c27c44eb261d5a5ba08489930451ac3f67f1e2e2.zip |
dev-ruby/mocha: add 2.4.5
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/mocha/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/mocha/mocha-2.4.5.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest index 9761d577fe01..dc1a513eb838 100644 --- a/dev-ruby/mocha/Manifest +++ b/dev-ruby/mocha/Manifest @@ -9,3 +9,4 @@ DIST mocha-2.4.1.tar.gz 247677 BLAKE2B 171b5b266c8b690a630f9367cfe77006de4f597d4 DIST mocha-2.4.2.tar.gz 247840 BLAKE2B a1ce04b304bde7c2d4698f76149d98f9140a57b04f8b55fdd80af42eff5d207c08b0b9b755440d0243c291a34dfc3bcfdaa24e98b7f01d0aa6b859d85b56c93f SHA512 7ce00c2f6e8fdc0d477fb64e12b475a6c4b929906cdadf6a207ff77c763e7109742b520879d8bf72c0075df863d8e937fdf76df724088279ebdcf599ee161b0a DIST mocha-2.4.3.tar.gz 248219 BLAKE2B 07c5d5c805f36fe5572f0590b7175a6f638a9c49ba330bf5280e61a2a0e0ea26e23ead6499b7819aae8787d071d201321cb13f5a6129ea710ef78aac8f79b14f SHA512 e0314d4b8752f8575e8c784fab702514036fe1ae93d893ea710827abba49939afe37c2dbb6d1e920b47168b4246a84ad5fb702b618bb516f1fc166203656327c DIST mocha-2.4.4.tar.gz 248425 BLAKE2B 44a4c91002c56487319e63c6d2967a9aafebbb97e0ef5c25ffa4ee9aac1d2d16677ef813dc589e0c5f8beeb0864714dce6b414525e2386589f014c779fba35a5 SHA512 ea545b376ac601b602904b7a83ba1d7882764b94da31507db1744f94204fb43ce26e974f1de063bca7acf077c5cc88612c24e7caddfd0dfdc7afc6d9e947c1df +DIST mocha-2.4.5.tar.gz 248872 BLAKE2B 739dfe4945d153117e5c644b6f0ed568c08e88e27807d37455a8c86d0ec3e5246203b8561097752ddf974883bb6f4b6fb959fac5ccf3f950b2387f87de117f66 SHA512 25f7873071b8ad531ffc3a8c680115810654b9478a8f7f4f999df8c38e9a60a262fcf5719ff620c649134d7df39663e00b2f5fae5635ad02b4aa6b6a92cf0869 diff --git a/dev-ruby/mocha/mocha-2.4.5.ebuild b/dev-ruby/mocha/mocha-2.4.5.ebuild new file mode 100644 index 000000000000..06d86dc2ac9b --- /dev/null +++ b/dev-ruby/mocha/mocha-2.4.5.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 +} |