aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMario Mueller2014-04-21 08:30:40 +0200
committerAdam Vandenberg2014-04-21 19:39:37 -0700
commit0f8c664ed37990f9336c7cd3d486f84b53ff3f0c (patch)
treec7209ea017815a0ba9a9e0cd56e7485a497e11e0 /Library
parentd0db386fff786c3f9466cabdaeea456d1beb8582 (diff)
downloadhomebrew-0f8c664ed37990f9336c7cd3d486f84b53ff3f0c.tar.bz2
rewrite TeX requirement message
Closes #28588. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb15
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