racket: fix Ruby 1.8 syntax.

Closes Homebrew/homebrew#46761.
This commit is contained in:
Mike McQuaid 2015-12-07 12:58:22 +00:00
parent b0c4fada5d
commit 14d8f63461

View file

@ -38,11 +38,11 @@ class Racket < Formula
inreplace etc/"racket/config.rktd" do |s|
s.gsub!(
/\(bin-dir\s+\.\s+"#{Regexp.quote(bin)}"\)/,
"(bin-dir . \"#{HOMEBREW_PREFIX}/bin\")",
"(bin-dir . \"#{HOMEBREW_PREFIX}/bin\")"
)
s.gsub!(
/\n\)$/,
"\n (default-scope . \"installation\")\n)",
"\n (default-scope . \"installation\")\n)"
)
end
end