commit: 05ddf0b03c06ad608af04b2006ceaacdacd188f6 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Feb 25 08:52:05 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Feb 25 08:52:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05ddf0b0
dev-ruby/async: add 2.8.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/async/Manifest | 1 + dev-ruby/async/async-2.8.2.ebuild | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/dev-ruby/async/Manifest b/dev-ruby/async/Manifest index 4a89b69afa64..75e603ab6d62 100644 --- a/dev-ruby/async/Manifest +++ b/dev-ruby/async/Manifest @@ -3,3 +3,4 @@ DIST async-2.6.2.tar.gz 86923 BLAKE2B ef1a840bd52c3713268582260a00855061fc3ee2d0 DIST async-2.6.5.tar.gz 93305 BLAKE2B fbceff6b20eaf10a922f9993c73157cd3790263e1540167715012e39a2223f2d5e8549e7f9949d3851fdf8120763b24b468b904e668aec2927c5c2028101c1d9 SHA512 839eea7d0113d879acd1d85da4d0119c0698b8bdfe36a24450a24c2fb2151cfa4cd8987aea663ba51ff52a078693cb1ee7e0f3ac805aebf91655f3e279842caf DIST async-2.8.0.tar.gz 92095 BLAKE2B e9d2356071ccdcf4f0025e4a449c78bf6ae31bf0841c286a48c18f94f3c09147ba6c4da6f737fe011b3066730180f2aff3ab03efe8b61b33d05ea1d28ae6c276 SHA512 80d31531e1b830b499a4c9cac41867a8836b3a339154336363ef397dd67c41c27d0b667e2754efba65fa88e03b81d48ce9ac5c17ce1e0bd8080af1ffc9873fa2 DIST async-2.8.1.tar.gz 92272 BLAKE2B c1f30f99c6f1ce22f6181663eae1e1ebdc9a949d059dad3ef89227bc2788b48d403be7a4986f38e177a2cb85b0a4861ba965e3b0754582fcd4436b8dc97eef4c SHA512 dee8e2116efcfbf7f174228ef7f535b5a1218a10fd646bb7877ea8f1f9caff77dbe286ce0ff4a195e5f96cd72e61baa25e2655e5f0fcba4fadca5fcabcbf386c +DIST async-2.8.2.tar.gz 92610 BLAKE2B d120a0b136d6ce2855840576543ec7d50a88da5a78789aa8954faedf3a980a94fecd78bcec79a8abd88767ba336215977d8c2d2439a05840698b6dd989ecc4df SHA512 d43ee9f69eb3ca6ef9af118d45de1410c60d125cb1bd7d8e2c39fd51061d00dad34bcbd1afeb816b9d241a2b793ddc41677ea8e3ee004affcbf12480f89a9c2c diff --git a/dev-ruby/async/async-2.8.2.ebuild b/dev-ruby/async/async-2.8.2.ebuild new file mode 100644 index 000000000000..6a5daa5e4abb --- /dev/null +++ b/dev-ruby/async/async-2.8.2.ebuild @@ -0,0 +1,43 @@ +# 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 concurrency framework for Ruby" +HOMEPAGE="https://github.com/socketry/async" +SRC_URI="https://github.com/socketry/async/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +ruby_add_rdepend " + >=dev-ruby/console-1.10:1 + dev-ruby/fiber-annotation + dev-ruby/io-event:1 + >=dev-ruby/timers-4.1:4 +" + +ruby_add_bdepend "test? ( + dev-ruby/benchmark-ips + dev-ruby/sus-fixtures-async +)" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # network tests + rm test/net/http.rb \ + test/async/scheduler/address.rb \ + test/async/scheduler/io.rb || die + + sed -i -e '/covered/Id' config/sus.rb || die +}