diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-07-17 07:54:39 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-07-17 07:57:41 +0200 |
commit | 3638e6ef7e805ab46bb9b07b695a10b547fa4490 (patch) | |
tree | b9615f01fc107f2b9bf625bf15133314369e1632 /dev-ruby/mocha | |
parent | dev-ruby/time: add missing test dependencies (diff) | |
download | gentoo-3638e6ef7e805ab46bb9b07b695a10b547fa4490.tar.gz gentoo-3638e6ef7e805ab46bb9b07b695a10b547fa4490.tar.bz2 gentoo-3638e6ef7e805ab46bb9b07b695a10b547fa4490.zip |
dev-ruby/mocha: add 2.4.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mocha')
-rw-r--r-- | dev-ruby/mocha/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/mocha/mocha-2.4.1.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mocha/Manifest b/dev-ruby/mocha/Manifest index b694be3f0a8e..3206fa87fb39 100644 --- a/dev-ruby/mocha/Manifest +++ b/dev-ruby/mocha/Manifest @@ -5,3 +5,4 @@ DIST mocha-2.0.4.tar.gz 243542 BLAKE2B 4a9bb3f1493225f7eed7080661a168a90c56e4f73 DIST mocha-2.2.0.tar.gz 247014 BLAKE2B 7be3453e30be305a27a3a9c9cde8cfc196ebbf07329afe82fbbb79c320dfd08aaeca17242e1432d0e1b437f20260ee1557768851553d2a5d7f7697d07081468d SHA512 1e611c31c311f9ff5f341c46a374eea16835cffeb2ff454e09c656503f05c1a2b7d7ff6d1bf33f8ea33cd1e5e53aca108d1f73fc46ca79029d09f8bdeb9036c6 DIST mocha-2.3.0.tar.gz 247213 BLAKE2B faf2e9dc189b4db0e33f1ae7c780f998e9f2c4f1e29dc63e7e6c64bd679494e40bfab7e0227ee6e9e485e38fbe1dcd40d5fb2007ea7c7f3d42b4f6547b835257 SHA512 fc8d3922c593924d4e7ba138af06a90dbc00f2a466251f188de4d62ba3b3eb197252750561575383400aaeac65d59c436d3a14f5a288c2f1685d8d1bf5ae7202 DIST mocha-2.4.0.tar.gz 247401 BLAKE2B 978abe65a059c01f8e41a3d44238f615d68c88dc9b63812503708082803d46c5469b7177ce1f1e87f4071dc1ea93b95c8d965f4c3c359eb221e989c15ca31a49 SHA512 b48915db151bfb66107e855df4172ef63266c9cf08109e4800970df92259b454ce41f1e79eeeb088a4eedccc0d3c8ae9ec2761f6ded92aa04dd61736b85e69e0 +DIST mocha-2.4.1.tar.gz 247677 BLAKE2B 171b5b266c8b690a630f9367cfe77006de4f597d4b1e4aabc035090e9930659eec2dcce04742b42bf1dc00b5441bfe97041ad8b94aaa36ae1a6ba29ca32cd787 SHA512 1036cfc5ea4ce975cf59da1029fc1c3ef4c6fee8b2868ad19b354fc0fdbe058ab2782082ffd2fbe099cd177d654697dc919a361a446939eb9ef587c71fd17700 diff --git a/dev-ruby/mocha/mocha-2.4.1.ebuild b/dev-ruby/mocha/mocha-2.4.1.ebuild new file mode 100644 index 000000000000..06d86dc2ac9b --- /dev/null +++ b/dev-ruby/mocha/mocha-2.4.1.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 +} |