diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-01-03 08:13:25 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-01-03 08:13:25 +0100 |
commit | 1ecbb5906bde92abc5ce5e0fad03db3da0287076 (patch) | |
tree | daacbdf68544a372e50eeca5f709d80826b42e8d /dev-ruby | |
parent | dev-ruby/hiera: enable ruby33 (diff) | |
download | gentoo-1ecbb5906bde92abc5ce5e0fad03db3da0287076.tar.gz gentoo-1ecbb5906bde92abc5ce5e0fad03db3da0287076.tar.bz2 gentoo-1ecbb5906bde92abc5ce5e0fad03db3da0287076.zip |
dev-ruby/async: add 2.8.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/async/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/async/async-2.8.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/async/Manifest b/dev-ruby/async/Manifest index 5945b2e209fb..5ce21d0e048a 100644 --- a/dev-ruby/async/Manifest +++ b/dev-ruby/async/Manifest @@ -4,3 +4,4 @@ DIST async-2.6.2.tar.gz 86923 BLAKE2B ef1a840bd52c3713268582260a00855061fc3ee2d0 DIST async-2.6.3.tar.gz 93083 BLAKE2B a82885a001e58f7f638348890aeeff8271cec05237a528a5c3d4ed7d8280245b408944fcd082dec2186f3b7ca423395634b99bfb587e58b3672f1b1d0cd1a760 SHA512 e29a6bf234d9780bc452f8e14523608c0a06eef54c03051ef80e6e5cd54b1fa43fb81dde7653e1203faea548db27602191072f834cf024c5be737e43f48e5365 DIST async-2.6.4.tar.gz 93274 BLAKE2B 0e014dcb7814a711ffede259d61f3a077e01e80aa02472e7242c1ee31ef381d2c7b18f9343b3042c874c71bc36e6647741ddb6466805dc9eea427ee499f96f14 SHA512 53d6cc24f84604f9d0488f54909534e0ec51d1075dd1f93cade370e4d4cf4cfb433c47a887660b1f1c375803689dc7423994e3b1c92b42c932ead98a6e31fc75 DIST async-2.6.5.tar.gz 93305 BLAKE2B fbceff6b20eaf10a922f9993c73157cd3790263e1540167715012e39a2223f2d5e8549e7f9949d3851fdf8120763b24b468b904e668aec2927c5c2028101c1d9 SHA512 839eea7d0113d879acd1d85da4d0119c0698b8bdfe36a24450a24c2fb2151cfa4cd8987aea663ba51ff52a078693cb1ee7e0f3ac805aebf91655f3e279842caf +DIST async-2.8.0.tar.gz 92095 BLAKE2B e9d2356071ccdcf4f0025e4a449c78bf6ae31bf0841c286a48c18f94f3c09147ba6c4da6f737fe011b3066730180f2aff3ab03efe8b61b33d05ea1d28ae6c276 SHA512 80d31531e1b830b499a4c9cac41867a8836b3a339154336363ef397dd67c41c27d0b667e2754efba65fa88e03b81d48ce9ac5c17ce1e0bd8080af1ffc9873fa2 diff --git a/dev-ruby/async/async-2.8.0.ebuild b/dev-ruby/async/async-2.8.0.ebuild new file mode 100644 index 000000000000..6a5daa5e4abb --- /dev/null +++ b/dev-ruby/async/async-2.8.0.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 +} |