diff options
| author | Mario Mueller | 2014-04-21 08:30:40 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-21 19:39:37 -0700 |
| commit | be66d746add559161b609106d06317fd25522b58 (patch) | |
| tree | 0b3bd639024ffd4d5ba7b21db6b320da6f18d369 /Library | |
| parent | 75738557561ac5168bb2d07e8406f3bb9cced7bb (diff) | |
| download | brew-be66d746add559161b609106d06317fd25522b58.tar.bz2 | |
rewrite TeX requirement message
Closes Homebrew/homebrew#28588.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 80a74ab83..e83a46749 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -48,16 +48,21 @@ class TeXDependency < Requirement satisfy { which('tex') || which('latex') } - def message; <<-EOS.undent + def message; + if File.exist?("/usr/texbin") + texbin_path = "/usr/texbin" + else + texbin_path = "its bin directory" + end + + <<-EOS.undent A LaTeX distribution is required to install. You can install MacTeX distribution from: http://www.tug.org/mactex/ - Make sure that its bin directory is in your PATH before proceeding. - - You may also need to restore the ownership of Homebrew install: - sudo chown -R $USER `brew --prefix` + Make sure that "/usr/texbin", or the location you installed it to, is in + your PATH before proceeding. EOS end end |
