dev-ruby/ruby-gio2: enable ruby32 for 4.1.x, fix tests

Fix tests by skipping network test, like we do for 3.x.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-04-07 17:50:58 +01:00
parent 515791a462
commit b7130d7e1c

View File

@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby27 ruby30 ruby31"
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
inherit ruby-ng-gnome2
@@ -16,6 +16,13 @@ RDEPEND+=" dev-libs/glib"
ruby_add_rdepend "~dev-ruby/ruby-glib2-${PV}
~dev-ruby/ruby-gobject-introspection-${PV}"
all_ruby_prepare() {
ruby-ng-gnome2_all_ruby_prepare
# Avoid test requiring network access
rm -f test/test-resolver.rb || die
}
each_ruby_test() {
XDG_RUNTIME_DIR=${T} dbus-launch ${RUBY} test/run-test.rb || die
}