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/prime/
Date: Thu, 26 May 2022 10:36:06
Message-Id: 1653561356.fc351eea1bd7a9ec01dd953f01b8507bbe8ab3c6.graaff@gentoo
1 commit: fc351eea1bd7a9ec01dd953f01b8507bbe8ab3c6
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 26 10:33:18 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 10:35:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc351eea
7
8 dev-ruby/prime: add missing deps
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/prime/prime-0.1.2-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-ruby/prime/prime-0.1.2-r1.ebuild b/dev-ruby/prime/prime-0.1.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..c3ae370514da
18 --- /dev/null
19 +++ b/dev-ruby/prime/prime-0.1.2-r1.ebuild
20 @@ -0,0 +1,34 @@
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_BINWRAP=""
28 +RUBY_FAKEGEM_EXTRADOC="README.md"
29 +RUBY_FAKEGEM_GEMSPEC="prime.gemspec"
30 +
31 +inherit ruby-fakegem
32 +
33 +DESCRIPTION="Prime numbers and factorization library"
34 +HOMEPAGE="https://github.com/ruby/prime"
35 +SRC_URI="https://github.com/ruby/prime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="BSD-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 +IUSE=""
41 +
42 +ruby_add_rdepend "
43 + dev-ruby/forwardable
44 + dev-ruby/singleton
45 +"
46 +
47 +all_ruby_prepare() {
48 + sed -e 's:_relative ": "./:' \
49 + -i ${RUBY_FAKEGEM_GEMSPEC} || die
50 +}
51 +
52 +each_ruby_test() {
53 + ${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
54 +}