diff options
| author | Mike McQuaid | 2014-12-25 19:35:44 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-25 20:45:57 +0000 |
| commit | abd120032380cc14e7345cc417ad24de4aa2b74f (patch) | |
| tree | d0681bcd719e38a4f18d4a355096f9a1a6aa93ae /Library | |
| parent | 2f9587af665893569d860ff944ec5991f3d9baa3 (diff) | |
| download | homebrew-abd120032380cc14e7345cc417ad24de4aa2b74f.tar.bz2 | |
requirements: recommend casks where available.
Also, tweak the XQuartz requirement to not show 0.0.0 versions being required.
Closes #35254.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 12 | ||||
| -rw-r--r-- | Library/Homebrew/requirements/x11_dependency.rb | 8 |
2 files changed, 14 insertions, 6 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index b2206fd7e..9a893516e 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -73,7 +73,10 @@ class TeXDependency < Requirement <<-EOS.undent A LaTeX distribution is required for Homebrew to install this formula. - You can install MacTeX distribution from: + You can install MacTeX distribution with: + brew cask install mactex + + Or from: http://www.tug.org/mactex/ Make sure that "/usr/texbin", or the location you installed it to, is in @@ -136,10 +139,11 @@ class JavaDependency < Requirement <<-EOS.undent Java#{version_string} is required to install this formula. - You can install Java from: - http://www.oracle.com/technetwork/java/javase/downloads/index.html + You can install the Java Development Kit (JDK) with: + brew cask install java - Make sure you install both the JRE and JDK. + Or from: + http://www.oracle.com/technetwork/java/javase/downloads/index.html EOS end end diff --git a/Library/Homebrew/requirements/x11_dependency.rb b/Library/Homebrew/requirements/x11_dependency.rb index 514f61f8b..95d939f93 100644 --- a/Library/Homebrew/requirements/x11_dependency.rb +++ b/Library/Homebrew/requirements/x11_dependency.rb @@ -12,8 +12,10 @@ class X11Dependency < Requirement @name = name if /(\d\.)+\d/ === tags.first @min_version = Version.new(tags.shift) + @min_version_string = " #{@min_version}" else @min_version = Version.new("0.0.0") + @min_version_string = "" end super(tags) end @@ -23,8 +25,10 @@ class X11Dependency < Requirement end def message; <<-EOS.undent - Unsatisfied dependency: XQuartz #{@min_version} - Homebrew does not package XQuartz. Installers may be found at: + You can install XQuartz#{@min_version_string} with: + brew cask install xquartz + + Or from: https://xquartz.macosforge.org EOS end |
