Diff io-event-1.1.7 with a io-event-1.2.2
/usr/portage/dev-ruby/io-event/io-event-1.2.2.ebuild 2023-10-09 14:52:30.440368374 +0300 | ||
---|---|---|
8 | 8 |
RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) |
9 | 9 |
RUBY_FAKEGEM_EXTRADOC="readme.md" |
10 | 10 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
11 |
RUBY_FAKEGEM_RECIPE_TEST="sus" |
|
11 | 12 | |
12 | 13 |
inherit ruby-fakegem |
13 | 14 | |
... | ... | |
17 | 18 | |
18 | 19 |
LICENSE="MIT" |
19 | 20 |
SLOT="$(ver_cut 1-2)" |
20 |
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
21 |
IUSE="" |
|
21 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
|
22 |
IUSE="+io-uring" |
|
22 | 23 | |
23 |
ruby_add_bdepend "test? ( >=dev-ruby/sus-0.6:0 )" |
|
24 |
RDEPEND="io-uring? ( sys-libs/liburing:= )" |
|
25 |
DEPEND="${RDEPEND}" |
|
24 | 26 | |
25 | 27 |
all_ruby_prepare() { |
26 | 28 |
sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die |
27 | 29 | |
28 | 30 |
# Avoid dependency on unpackaged covered package |
29 | 31 |
rm -f config/sus.rb || die |
30 |
} |
|
31 | 32 | |
32 |
each_ruby_test() { |
|
33 |
${RUBY} -S sus-parallel || die |
|
33 |
if ! use io-uring ; then |
|
34 |
sed -i -e "s:have_library('uring'):have_library('idonotexist_uring'):" ext/extconf.rb || die |
|
35 |
fi |
|
34 | 36 |
} |