summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-07 17:50:58 +0100
committerSam James <sam@gentoo.org>2023-04-07 19:09:36 +0100
commitb7130d7e1c8aa81f27203238fe2ee3d4e1e53d47 (patch)
tree1cb364ab0bf024aa69c65a126f3638fd7a187c47 /dev-ruby/ruby-gio2
parentdev-ruby/ruby-gobject-introspection: enable ruby32 for 4.1.x (diff)
downloadgentoo-b7130d7e1c8aa81f27203238fe2ee3d4e1e53d47.tar.gz
gentoo-b7130d7e1c8aa81f27203238fe2ee3d4e1e53d47.tar.bz2
gentoo-b7130d7e1c8aa81f27203238fe2ee3d4e1e53d47.zip
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>
Diffstat (limited to 'dev-ruby/ruby-gio2')
-rw-r--r--dev-ruby/ruby-gio2/ruby-gio2-4.1.2.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-ruby/ruby-gio2/ruby-gio2-4.1.2.ebuild b/dev-ruby/ruby-gio2/ruby-gio2-4.1.2.ebuild
index e1bf4e07c34e..7d7f5758fca8 100644
--- a/dev-ruby/ruby-gio2/ruby-gio2-4.1.2.ebuild
+++ b/dev-ruby/ruby-gio2/ruby-gio2-4.1.2.ebuild
@@ -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
}