commit:     152d6ec81dc8cd78e6c7d2565562202484bb9c15
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 29 05:32:35 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Dec 29 05:32:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152d6ec8

dev-ruby/rinda: new package, add 0.2.0

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

 dev-ruby/rinda/Manifest           |  1 +
 dev-ruby/rinda/metadata.xml       | 12 ++++++++++++
 dev-ruby/rinda/rinda-0.2.0.ebuild | 40 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/dev-ruby/rinda/Manifest b/dev-ruby/rinda/Manifest
new file mode 100644
index 000000000000..d96bbe23d835
--- /dev/null
+++ b/dev-ruby/rinda/Manifest
@@ -0,0 +1 @@
+DIST rinda-0.2.0.tar.gz 20286 BLAKE2B 
df95f9edebad3bbc52331f2ef5fac0791c7f8f857329d9f9d016c4a3fc2a49c0557c53c4f8e9e07de2ee272e3920e4c2d9b71d0be21e6d8126325f57a59e887a
 SHA512 
f1fe85c3a0aa147be335ffd414f0c3e9b6ec33b789e789f0a5e33977c06752a117f4bf92236124775062fd7f7cf6465c5e696e423ef9886733b6c318914d1f49

diff --git a/dev-ruby/rinda/metadata.xml b/dev-ruby/rinda/metadata.xml
new file mode 100644
index 000000000000..a86e70f55988
--- /dev/null
+++ b/dev-ruby/rinda/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">ruby/rinda</remote-id>
+    <remote-id type="rubygems">rinda</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/dev-ruby/rinda/rinda-0.2.0.ebuild 
b/dev-ruby/rinda/rinda-0.2.0.ebuild
new file mode 100644
index 000000000000..fdbea15e752b
--- /dev/null
+++ b/dev-ruby/rinda/rinda-0.2.0.ebuild
@@ -0,0 +1,40 @@
+# 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="rinda.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="The Linda distributed computing paradigm in Ruby"
+HOMEPAGE="https://github.com/ruby/rinda";
+SRC_URI="https://github.com/ruby/rinda/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/drb
+       dev-ruby/forwardable
+       dev-ruby/ipaddr
+"
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+all_ruby_prepare() {
+       sed -e 's/__dir__/"."/' \
+               -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
+               -e 's/git ls-files -z/find * -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+       ${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| 
require f}' || die
+}

Reply via email to