mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20004 from Homebrew/formula-creator-ruby-rework
formula_creator: Update Ruby template
This commit is contained in:
commit
a2894caceb
@ -216,11 +216,14 @@ module Homebrew
|
|||||||
<% elsif @mode == :python %>
|
<% elsif @mode == :python %>
|
||||||
virtualenv_install_with_resources
|
virtualenv_install_with_resources
|
||||||
<% elsif @mode == :ruby %>
|
<% elsif @mode == :ruby %>
|
||||||
|
ENV["BUNDLE_VERSION"] = "system" # Avoid installing Bundler into the keg
|
||||||
ENV["GEM_HOME"] = libexec
|
ENV["GEM_HOME"] = libexec
|
||||||
|
|
||||||
system "bundle", "install", "-without", "development", "test"
|
system "bundle", "config", "set", "without", "development", "test"
|
||||||
|
system "bundle", "install"
|
||||||
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 %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user