commit:     79b5f80bb72cb4976d96421d816d205e2838725b
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  2 10:39:38 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Nov  2 10:39:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79b5f80b

dev-ruby/rdoc: fix compilation

rubocop has been introduced and made optional, but not for the generate
task that we use to regenerate the files. Patch out the rubocop step
since rubocop is not packaged in ::gentoo and since we can't guarantee a
working version. This will mean that our generated files will not be
identical to the upstream gem, but the changes should be cosmetic only.

Closes: https://bugs.gentoo.org/965427
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rdoc/rdoc-6.15.1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-ruby/rdoc/rdoc-6.15.1.ebuild b/dev-ruby/rdoc/rdoc-6.15.1.ebuild
index 2e6de35c77de..f03b67a77962 100644
--- a/dev-ruby/rdoc/rdoc-6.15.1.ebuild
+++ b/dev-ruby/rdoc/rdoc-6.15.1.ebuild
@@ -51,6 +51,7 @@ all_ruby_prepare() {
        # Avoid unneeded dependency on bundler, bug 603696
        sed -e '/bundler/ s:^:#:' \
                -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+               -e "/require 'rubocop'/,/])/ s:^:#:" \
                -i Rakefile || die
 
        # Skip rubygems tests since the rubygems test case code is no longer 
installed by rubygems.

Reply via email to