dev-ruby/rubyzip: enable ruby40

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2026-01-08 22:19:00 +01:00
parent 8f8b6f2bf7
commit 57ae7f7ae0

View File

@@ -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