Merge pull request #10169 from SeekingMeaning/formula-create-update

formula_creator: update hash syntax
This commit is contained in:
Dawid Dziurla 2020-12-30 01:40:17 +01:00 committed by GitHub
commit ff931c2f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ module Homebrew
# end # end
bin.install name bin.install name
bin.env_script_all_files(libexec/"bin", :PERL5LIB => ENV["PERL5LIB"]) bin.env_script_all_files(libexec/"bin", PERL5LIB: ENV["PERL5LIB"])
<% elsif mode == :python %> <% elsif mode == :python %>
virtualenv_install_with_resources virtualenv_install_with_resources
<% elsif mode == :ruby %> <% elsif mode == :ruby %>
@ -201,7 +201,7 @@ module Homebrew
system "gem", "build", "\#{name}.gemspec" system "gem", "build", "\#{name}.gemspec"
system "gem", "install", "\#{name}-\#{version}.gem" system "gem", "install", "\#{name}-\#{version}.gem"
bin.install libexec/"bin/\#{name}" bin.install libexec/"bin/\#{name}"
bin.env_script_all_files(libexec/"bin", :GEM_HOME => ENV["GEM_HOME"]) bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
<% elsif mode == :rust %> <% elsif mode == :rust %>
system "cargo", "install", *std_cargo_args system "cargo", "install", *std_cargo_args
<% else %> <% else %>