dev-ruby/coffee-rails: enable ruby33

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-03-28 20:56:37 +01:00
parent 984ce89176
commit 6230dfb4b3

View File

@@ -1,8 +1,8 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32"
USE_RUBY="ruby31 ruby32 ruby33"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
@@ -21,11 +21,11 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux"
ruby_add_rdepend "
>=dev-ruby/coffee-script-2.2.0
<dev-ruby/railties-7.1:*
<dev-ruby/railties-7.2:*
"
# sprockets:3 for https://github.com/rails/coffee-rails/issues/122
ruby_add_bdepend "test? ( dev-ruby/sprockets-rails dev-ruby/sprockets:3 )"
ruby_add_bdepend "test? ( dev-ruby/rack-session:1 dev-ruby/sprockets-rails dev-ruby/sprockets:3 )"
all_ruby_prepare() {
# Avoid dependency on git and bundler.
@@ -33,7 +33,9 @@ all_ruby_prepare() {
-e '/bundler/I s:^:#:' Rakefile || die
# Make sure a consistent rails version is loaded.
sed -i -e '4igem "railties", "<7.1" ; gem "sprockets", "<4"' -e '/bundler/ s:^:#:' test/test_helper.rb || die
sed -e '4igem "railties", "<7.2" ; gem "sprockets", "<4"; gem "rack-session", "<2"' \
-e '/bundler/ s:^:#:' \
-i test/test_helper.rb || die
# Avoid generator tests which appear to be broken.
rm -f test/{controller,scaffold}_generator_test.rb || die