Diff async-1.31.0 with a async-2.5.1
/usr/portage/dev-ruby/async/async-2.5.1.ebuild 2023-10-09 14:52:30.420368374 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
USE_RUBY="ruby27 ruby30 ruby31" |
|
6 |
# It really is >=ruby31 only, see: |
|
7 |
# https://github.com/socketry/async/issues/141 |
|
8 |
# https://github.com/socketry/async/issues/136 |
|
9 |
USE_RUBY="ruby31 ruby32" |
|
7 | 10 | |
8 |
RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
|
9 |
RUBY_FAKEGEM_EXTRADOC="README.md" |
|
11 |
RUBY_FAKEGEM_RECIPE_TEST="sus" |
|
12 |
RUBY_FAKEGEM_EXTRADOC="readme.md" |
|
10 | 13 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
11 | 14 | |
12 | 15 |
inherit ruby-fakegem |
... | ... | |
18 | 21 |
LICENSE="MIT" |
19 | 22 |
SLOT="$(ver_cut 1)" |
20 | 23 |
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
21 |
IUSE="" |
|
22 | 24 | |
23 | 25 |
ruby_add_rdepend ">=dev-ruby/console-1.10:1 |
24 |
>=dev-ruby/nio4r-2.3:2 |
|
26 |
dev-ruby/io-event:1.1 |
|
25 | 27 |
>=dev-ruby/timers-4.1:4" |
26 | 28 | |
27 | 29 |
ruby_add_bdepend "test? ( |
28 |
>=dev-ruby/async-rspec-1.1:1 |
|
29 | 30 |
dev-ruby/benchmark-ips |
31 |
dev-ruby/sus-fixtures-async |
|
30 | 32 |
)" |
31 | 33 | |
32 |
PATCHES=( |
|
33 |
"${FILESDIR}"/${P}-improve-robustness-test.patch |
|
34 |
) |
|
35 | ||
36 | 34 |
all_ruby_prepare() { |
37 | 35 |
sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die |
38 | 36 | |
39 |
# Avoid network tests |
|
40 |
sed -i -e '/can fetch website using Net::HTTP/askip "requires network"' spec/async/scheduler_spec.rb || die |
|
37 |
# network tests |
|
38 |
rm test/net/http.rb \ |
|
39 |
test/async/scheduler/address.rb \ |
|
40 |
test/async/scheduler/io.rb || die |
|
41 | 41 | |
42 |
# Avoid test dependency on unpackaged covered |
|
43 |
sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die |
|
42 |
sed -i -e '/covered/Id' config/sus.rb || die |
|
44 | 43 |
} |