summaryrefslogtreecommitdiff
path: root/dev-ruby/async-io/async-io-1.43.2.ebuild
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2025-06-17 21:42:03 +0200
committerHans de Graaff <graaff@gentoo.org>2025-06-17 21:42:20 +0200
commit5f52aa9c8539ae5d1b1de73d3ff5148af39fe33e (patch)
tree61b5e86ec8353a0dc48c4b6d4b86a2586481c381 /dev-ruby/async-io/async-io-1.43.2.ebuild
parent9f1b868c8d181e40de7f65cd81dd9f5ed95798fe (diff)
downloadgentoo-5f52aa9c8539ae5d1b1de73d3ff5148af39fe33e.tar.gz
gentoo-5f52aa9c8539ae5d1b1de73d3ff5148af39fe33e.tar.bz2
gentoo-5f52aa9c8539ae5d1b1de73d3ff5148af39fe33e.zip
dev-ruby/async-io: add 1.43.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/async-io/async-io-1.43.2.ebuild')
-rw-r--r--dev-ruby/async-io/async-io-1.43.2.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/async-io/async-io-1.43.2.ebuild b/dev-ruby/async-io/async-io-1.43.2.ebuild
new file mode 100644
index 000000000000..dbe41c83d38a
--- /dev/null
+++ b/dev-ruby/async-io/async-io-1.43.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRA_DOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides support for asynchronous TCP, UDP, UNIX and SSL sockets"
+HOMEPAGE="https://github.com/socketry/async-io"
+SRC_URI="https://github.com/socketry/async-io/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+
+ruby_add_rdepend "<dev-ruby/async-2.24"
+
+ruby_add_bdepend "test? (
+ >=dev-ruby/async-2.8.1:2
+ >=dev-ruby/async-container-0.15:0
+ >=dev-ruby/async-rspec-1.10:1
+ dev-ruby/rack-test
+)"
+
+all_ruby_prepare() {
+ sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # Avoid test dependency on covered
+ sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die
+
+ # Avoid tests for TCPSocket which does not have public methods to test.
+ sed -e '13 s:^:#:' \
+ -i spec/async/io/tcp_socket_spec.rb || die
+ # and for Generic which has mismatching methods.
+ sed -e '/it_should_behave_like/,/ignore/ s:^:#:'\
+ -i spec/async/io/generic_spec.rb || die
+}