Merge pull request #19173 from BingoKingo/formula_creator-patch-1

Update formula_creator.rb
This commit is contained in:
Mike McQuaid 2025-02-01 12:24:53 +00:00 committed by GitHub
commit b162acc9d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ module Homebrew
<% elsif @mode == :perl %> <% elsif @mode == :perl %>
uses_from_macos "perl" uses_from_macos "perl"
<% elsif @mode == :python %> <% elsif @mode == :python %>
depends_on "python" depends_on "python@x.y"
<% elsif @mode == :ruby %> <% elsif @mode == :ruby %>
uses_from_macos "ruby" uses_from_macos "ruby"
<% elsif @mode == :rust %> <% elsif @mode == :rust %>
@ -147,7 +147,7 @@ module Homebrew
# depends_on "cmake" => :build # depends_on "cmake" => :build
<% end %> <% end %>
<% if @mode == :perl %> <% if @mode == :perl || :python || :ruby %>
# Additional dependency # Additional dependency
# resource "" do # resource "" do
# url "" # url ""
@ -201,8 +201,10 @@ module Homebrew
virtualenv_install_with_resources virtualenv_install_with_resources
<% elsif @mode == :ruby %> <% elsif @mode == :ruby %>
ENV["GEM_HOME"] = libexec ENV["GEM_HOME"] = libexec
system "bundle", "install", "-without", "development", "test"
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 %>