diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-12-31 07:47:48 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-12-31 10:05:09 +0100 |
commit | 3f80e4352393b99e3ba0abc1ea5780e008e30539 (patch) | |
tree | b26ca07eb3b0154bc6b561ea2ef8716e9dfe9215 /dev-ruby/racc | |
parent | dev-ruby/rake-remote_task: add 2.4.4 (diff) | |
download | gentoo-3f80e4352393b99e3ba0abc1ea5780e008e30539.tar.gz gentoo-3f80e4352393b99e3ba0abc1ea5780e008e30539.tar.bz2 gentoo-3f80e4352393b99e3ba0abc1ea5780e008e30539.zip |
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@gentoo.org>
Diffstat (limited to 'dev-ruby/racc')
-rw-r--r-- | dev-ruby/racc/racc-1.5.2.ebuild | 9 |
1 files 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 94f9ee27a7ed..f4a4b873b916 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 } |