Permalink
Browse files

Merge pull request #3386 from MikeMcQuaid/config-homebrew-path

system_config: get perl/ruby from HOMEBREW_PATH.
  • Loading branch information...
MikeMcQuaid committed Oct 29, 2017
2 parents 7caca57 + 3448335 commit e94810950d7fe1f212f6c11ffcdefb6eaaaf7c01
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/Homebrew/system_config.rb
@@ -73,7 +73,7 @@ def describe_path(path)
end
def describe_perl
describe_path(which("perl"))
describe_path(which("perl", ENV["HOMEBREW_PATH"]))
end
def describe_python
@@ -96,7 +96,7 @@ def describe_python
end
def describe_ruby
ruby = which "ruby"
ruby = which "ruby", ENV["HOMEBREW_PATH"]
return "N/A" if ruby.nil?
ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
'include RbConfig;print"#{CONFIG["bindir"]}/#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]}"'

0 comments on commit e948109

Please sign in to comment.