commit: 3f80e4352393b99e3ba0abc1ea5780e008e30539 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Thu Dec 31 06:47:48 2020 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Thu Dec 31 09:05:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f80e435
dev-ruby/racc: properly fix avoiding bundler dependency We need to patch the Rakefile before using it. Closes: https://bugs.gentoo.org/762190 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/racc/racc-1.5.2.ebuild | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dev-ruby/racc/racc-1.5.2.ebuild b/dev-ruby/racc/racc-1.5.2.ebuild index 94f9ee27a7e..f4a4b873b91 100644 --- a/dev-ruby/racc/racc-1.5.2.ebuild +++ b/dev-ruby/racc/racc-1.5.2.ebuild @@ -30,6 +30,9 @@ ruby_add_bdepend "dev-ruby/rake all_ruby_prepare() { sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed" + sed -i -e 's/, :isolate//' Rakefile || die + sed -i -e '/bundler/ s:^:#:' -e '/rdoc/,/^end/ s:^:#:' Rakefile || die + # Avoid depending on rake-compiler since we don't use it to compile # the extension. sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile @@ -37,12 +40,6 @@ all_ruby_prepare() { # Which means we need to generate the parser file here rake lib/racc/parser-text.rb || die - # Avoid isolation since dependencies are not properly declared. - sed -i -e 's/, :isolate//' Rakefile || die - - # Avoid bundler and rdoc dependency to make bootstrapping easier - sed -i -e '/bundler/ s:^:#:' -e '/rdoc/,/^end/ s:^:#:' Rakefile || die - sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die }
