summaryrefslogtreecommitdiff
path: root/dev-ruby/rinda
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-30 06:30:40 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-30 06:30:40 +0000
commit7d7cc3f0fa58454952dec67b110b41d503bca422 (patch)
tree1a8f98c27530104edbec5993a3ae262b82a25823 /dev-ruby/rinda
parent0e12f8e53cdddba84b0eb27dca59153e2cf52309 (diff)
gentoo auto-resync : 30:12:2024 - 06:30:40
Diffstat (limited to 'dev-ruby/rinda')
-rw-r--r--dev-ruby/rinda/Manifest3
-rw-r--r--dev-ruby/rinda/metadata.xml12
-rw-r--r--dev-ruby/rinda/rinda-0.2.0.ebuild45
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/rinda/Manifest b/dev-ruby/rinda/Manifest
new file mode 100644
index 000000000000..61aef607cd4b
--- /dev/null
+++ b/dev-ruby/rinda/Manifest
@@ -0,0 +1,3 @@
+DIST rinda-0.2.0.tar.gz 20286 BLAKE2B df95f9edebad3bbc52331f2ef5fac0791c7f8f857329d9f9d016c4a3fc2a49c0557c53c4f8e9e07de2ee272e3920e4c2d9b71d0be21e6d8126325f57a59e887a SHA512 f1fe85c3a0aa147be335ffd414f0c3e9b6ec33b789e789f0a5e33977c06752a117f4bf92236124775062fd7f7cf6465c5e696e423ef9886733b6c318914d1f49
+EBUILD rinda-0.2.0.ebuild 1277 BLAKE2B d57f91e4344749de14c1cca32b916db3c28cd594e7dba0af78aa213db3cb3d58bbcea6a0c69b9987eacb5f61a9c6dfeef46adfc53181926e9c239608a08ffb14 SHA512 1a4478e12bb1673a1a05abac6cfc0d563020d5c2fcfb64aa8278c01f7ca66ee2e6ca87b4b9aab81be43774b54fe2837226d5b2ca44fa9a7cf5436208e388f512
+MISC metadata.xml 386 BLAKE2B 4f85e8e23fa81e57878193611e10f130c88086d5c217c132c66e7d885447518a0fffb96270e9ef35a1366f46dae05346c9d0a6276c100cea93cab7e4a859f9d4 SHA512 38208bdb8429148c0f547812969e8ed639e6a5897c3d0d4ec295f8a7b8c9326f53b1687909da3593e8ee334a8f71376490bb5ab7c1ff423c19437f4f9adf0993
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>ruby@gentoo.org</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..dcbebd6d6ddd
--- /dev/null
+++ b/dev-ruby/rinda/rinda-0.2.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+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
+
+ # Ensure the new code in lib is tested also when calling out to
+ # another ruby instance.
+ sed -e '/rubybin/ s:-rdrb/drb:-Ilib -rdrb/drb:' \
+ -i test/rinda/test_rinda.rb || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}