commit:     6a21fdb0ef9eb92cbbaf893efb99d0ed98d77e80
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  1 07:58:03 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Jun  1 07:58:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a21fdb0

dev-ruby/async-pool: new package, add 0.6.1

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

 dev-ruby/async-pool/Manifest                |  1 +
 dev-ruby/async-pool/async-pool-0.6.1.ebuild | 34 +++++++++++++++++++++++++++++
 dev-ruby/async-pool/metadata.xml            | 11 ++++++++++
 3 files changed, 46 insertions(+)

diff --git a/dev-ruby/async-pool/Manifest b/dev-ruby/async-pool/Manifest
new file mode 100644
index 000000000000..7b2c89e10b5d
--- /dev/null
+++ b/dev-ruby/async-pool/Manifest
@@ -0,0 +1 @@
+DIST async-pool-0.6.1.tar.gz 10671 BLAKE2B 
f9dd19d15a2c1076b8c899d76c5e8ec6d5f98da82c2c574e701d098286027579c6e1728510801c9b471a864ea0533a4df68f13fcc57d75e4d92b464186e37740
 SHA512 
8221ccfdfe5a21b80f963da360efab682627346b7384870edbd8b53d71906dd6a471cf7b0e5d0bd995263089ce7d1a05278bf84cf7feec52a7360e106eba6016

diff --git a/dev-ruby/async-pool/async-pool-0.6.1.ebuild 
b/dev-ruby/async-pool/async-pool-0.6.1.ebuild
new file mode 100644
index 000000000000..4a6044261d69
--- /dev/null
+++ b/dev-ruby/async-pool/async-pool-0.6.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A singleplex and multiplex resource pool for implementing robust 
clients"
+HOMEPAGE="https://github.com/socketry/async-pool";
+SRC_URI="https://github.com/socketry/async-pool/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/async-1.25:*"
+
+ruby_add_bdepend "test? (
+       dev-ruby/sus-fixtures-async
+)"
+
+all_ruby_prepare() {
+       sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' 
"${RUBY_FAKEGEM_GEMSPEC}" || die
+
+       # Avoid test dependency on unpackaged covered
+       rm -f config/sus.rb || die
+}

diff --git a/dev-ruby/async-pool/metadata.xml b/dev-ruby/async-pool/metadata.xml
new file mode 100644
index 000000000000..f5ce2126bc42
--- /dev/null
+++ b/dev-ruby/async-pool/metadata.xml
@@ -0,0 +1,11 @@
+<?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">socketry/async-pool</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to