commit:     e7cb4da8986a908a74e9251273b5c54a34ec628b
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 25 07:30:52 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Dec 25 09:00:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7cb4da8

dev-ruby/prime: add 0.1.3

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

 dev-ruby/prime/Manifest           |  1 +
 dev-ruby/prime/prime-0.1.3.ebuild | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-ruby/prime/Manifest b/dev-ruby/prime/Manifest
index 6c571fc28d5f..268c093c03f7 100644
--- a/dev-ruby/prime/Manifest
+++ b/dev-ruby/prime/Manifest
@@ -1 +1,2 @@
 DIST prime-0.1.2.tar.gz 9485 BLAKE2B 
88db1d22a33405de0bd216baa0a8fa28abc61fe031ae6042a19f0a5c66cf7733b946a52f94165112b45b23331dc68e3168541ec89329ad8d2c016bbf1e33f425
 SHA512 
a766426884d6b3cd7a586676799db146974ec9a4a7c30ca53b5f279ad55ee9960c9b5bb26988cb66253b4fe974f9b5087f48ef5b216772464d03b8ed78a817d6
+DIST prime-0.1.3.tar.gz 12970 BLAKE2B 
6b493f524b70290b454a72180f7219b367758dd59484187c090f0a053b12b8fe3aaf72d9676dafae4b5cfb9ca367a8cbb185c70416e9359104bd9530ec125874
 SHA512 
55216c5f691e7d3778fb062dc3b7ff12a2e69bb415711b40c4de444b8fbcb8b8573e8179d339fb2193ee955335d79349f00f4c9e85c2d95e506539afead45c8a

diff --git a/dev-ruby/prime/prime-0.1.3.ebuild 
b/dev-ruby/prime/prime-0.1.3.ebuild
new file mode 100644
index 000000000000..8362d3b24c04
--- /dev/null
+++ b/dev-ruby/prime/prime-0.1.3.ebuild
@@ -0,0 +1,37 @@
+# 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_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="prime.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Prime numbers and factorization library"
+HOMEPAGE="https://github.com/ruby/prime";
+SRC_URI="https://github.com/ruby/prime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos 
~x64-solaris"
+IUSE="test"
+
+ruby_add_rdepend "
+       dev-ruby/forwardable
+       dev-ruby/singleton
+"
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+all_ruby_prepare() {
+       sed -e 's:_relative ": "./:' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       # Avoid RBS tests. It is not clear how these can work because RBS
+       # will only find the installed signatures (if any), not the ones in
+       # the local directory.
+       rm -f test/test_rbs.rb || die
+}

Reply via email to