commit:     dd507c2c6f5bdf8664ed17105f51e3ee52e7b692
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 13 07:06:40 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 07:07:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd507c2c

dev-ruby/benchmark-ips: add 2.13.0

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

 dev-ruby/benchmark-ips/Manifest                    |  1 +
 dev-ruby/benchmark-ips/benchmark-ips-2.13.0.ebuild | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/dev-ruby/benchmark-ips/Manifest b/dev-ruby/benchmark-ips/Manifest
index 82cd0b51b686..180ffe448ddf 100644
--- a/dev-ruby/benchmark-ips/Manifest
+++ b/dev-ruby/benchmark-ips/Manifest
@@ -1 +1,2 @@
 DIST benchmark-ips-2.12.0.tar.gz 20676 BLAKE2B 
1473fb8cc42d62cf6b7206d91c9d959707109e3ade9d712d82ab5ccfdcc48bb4874bae4c37370561aa60fe8c99078564a22a5a216daa6b870015329db1094af1
 SHA512 
ad4a7133b73d3ead583513704cbf00ef858b7fc5477686d3841614f05a83f3b4551b1fcab78e9a8affe7c8487112d9fde5012bf8a8e13621d289d792ff27c061
+DIST benchmark-ips-2.13.0.tar.gz 20781 BLAKE2B 
61a04395559a75b012c168345926f0f92954453081da4a0280b99f95f91c66633b04f99caf485a2b35036428719149154792e463cf7b4f6ab57c176506456235
 SHA512 
a167dbd4ecaf233c36da7cbfb2283447124ef190b174dc4f9f3281bf4de01b86044e55972fd25560b2612b1eed329e6f2d737f16d2e0961e04fce861b64a747f

diff --git a/dev-ruby/benchmark-ips/benchmark-ips-2.13.0.ebuild 
b/dev-ruby/benchmark-ips/benchmark-ips-2.13.0.ebuild
new file mode 100644
index 000000000000..0dbd0377103b
--- /dev/null
+++ b/dev-ruby/benchmark-ips/benchmark-ips-2.13.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+RUBY_FAKEGEM_GEMSPEC="benchmark-ips.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A iterations per second enhancement to Benchmark"
+HOMEPAGE="https://github.com/evanphx/benchmark-ips";
+SRC_URI="https://github.com/evanphx/benchmark-ips/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+SLOT="0"
+IUSE=""
+
+ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.6:5 )"
+
+all_ruby_prepare() {
+       sed -i -e '1i require "tempfile"' test/test_benchmark_ips.rb || die
+       sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+       ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}

Reply via email to