Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hitimes/
Date: Fri, 06 May 2022 06:54:17
Message-Id: 1651820036.472543f3e0609eb4e0f151677d0af3187d1f683c.graaff@gentoo
1 commit: 472543f3e0609eb4e0f151677d0af3187d1f683c
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 6 06:31:49 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 06:53:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=472543f3
7
8 dev-ruby/hitimes: update EAPI 7 -> 8, add ruby30, ruby31
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/hitimes/hitimes-2.0.0-r1.ebuild | 27 +++++++++++++++++++++++++++
13 1 file changed, 27 insertions(+)
14
15 diff --git a/dev-ruby/hitimes/hitimes-2.0.0-r1.ebuild b/dev-ruby/hitimes/hitimes-2.0.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..2012f619a1b4
18 --- /dev/null
19 +++ b/dev-ruby/hitimes/hitimes-2.0.0-r1.ebuild
20 @@ -0,0 +1,27 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +USE_RUBY="ruby26 ruby27 ruby30 ruby31"
26 +
27 +RUBY_FAKEGEM_EXTRADOC="README.md HISTORY.md"
28 +
29 +inherit ruby-fakegem
30 +
31 +DESCRIPTION="A fast, high resolution timer library"
32 +HOMEPAGE="https://github.com/copiousfreetime/hitimes"
33 +
34 +LICENSE="ISC"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
37 +IUSE="test"
38 +
39 +ruby_add_bdepend "test? ( dev-ruby/minitest )"
40 +
41 +all_ruby_prepare() {
42 + sed -i -e "/RUBY_VERSION >= '1.9.2'/,+4d" spec/spec_helper.rb || die
43 +}
44 +
45 +each_ruby_test() {
46 + ${RUBY} -Ilib:spec:. -e 'Dir["spec/*_spec.rb"].each{|f| require f}' || die
47 +}