summaryrefslogtreecommitdiff
path: root/dev-ruby/async-pool/async-pool-0.10.3.ebuild
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2025-03-18 13:00:04 +0100
committerHans de Graaff <graaff@gentoo.org>2025-03-18 13:11:51 +0100
commite6326749a27246737ec5890afba5d8ee6ae15e52 (patch)
tree49936ac04b0ca3d0bb019b8f09bf3ea5829a14ea /dev-ruby/async-pool/async-pool-0.10.3.ebuild
parente1219a4bb1c2af1b841629b6af54f8380999dec0 (diff)
downloadgentoo-e6326749a27246737ec5890afba5d8ee6ae15e52.tar.gz
gentoo-e6326749a27246737ec5890afba5d8ee6ae15e52.tar.bz2
gentoo-e6326749a27246737ec5890afba5d8ee6ae15e52.zip
dev-ruby/async-pool: add 0.10.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/async-pool/async-pool-0.10.3.ebuild')
-rw-r--r--dev-ruby/async-pool/async-pool-0.10.3.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/async-pool/async-pool-0.10.3.ebuild b/dev-ruby/async-pool/async-pool-0.10.3.ebuild
new file mode 100644
index 000000000000..70ca5cfcf2d0
--- /dev/null
+++ b/dev-ruby/async-pool/async-pool-0.10.3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2022-2025 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
+}