commit: 57ae7f7ae0f083fdf83cb70ea5fa329945f08914
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 8 21:19:00 2026 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Jan 8 21:19:17 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ae7f7a
dev-ruby/rubyzip: enable ruby40
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/rubyzip/rubyzip-3.2.2.ebuild | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/dev-ruby/rubyzip/rubyzip-3.2.2.ebuild
b/dev-ruby/rubyzip/rubyzip-3.2.2.ebuild
index 1fa7e1fc8f28..5257298a310a 100644
--- a/dev-ruby/rubyzip/rubyzip-3.2.2.ebuild
+++ b/dev-ruby/rubyzip/rubyzip-3.2.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby32 ruby33 ruby34"
+USE_RUBY="ruby32 ruby33 ruby34 ruby40"
RUBY_FAKEGEM_RECIPE_DOC="none"
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
@@ -37,11 +37,14 @@ all_ruby_install() {
all_ruby_prepare() {
# Avoid dependencies on simplecov and coveralls
- sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die
+ sed -e '/simplecov/ s:^:#:' \
+ -e '1igem "minitest", "~> 5.0"' \
+ -i test/test_helper.rb || die
# Avoid dependency on bundler
- sed -e '/bundler/ s:^:#: ; /rubocop/I s:^:#:' \
- -e '2irequire "zip/version"' \
+ sed -e '/\bundler/ s:^:#: ; /rubocop/I s:^:#:' \
+ -e '2irequire_relative "lib/zip/version"' \
+ -e "s:framework = .*:framework = 'gem \"minitest\", \"~> 5.0\";
require \"minitest/autorun\"':" \
-i Rakefile || die
# Fix hardcoded path to /tmp