Further improvement to blacklist messages

This commit is contained in:
Andrew Dunning 2019-02-18 15:42:49 -05:00 committed by GitHub
parent 60b698ba28
commit 1efdd41887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,13 @@ module Homebrew
def blacklisted_reason(name) def blacklisted_reason(name)
case name.downcase case name.downcase
when "gem", /^rubygems?$/ then <<~EOS when "gem", /^rubygems?$/ then <<~EOS
gem is part of the ruby formula: macOS provides gem as part of Ruby. To install a newer version:
brew install ruby brew install ruby
EOS EOS
when "tex", "tex-live", "texlive", "latex" then <<~EOS when "tex", "tex-live", "texlive", "latex" then <<~EOS
There are three versions of MacTeX. Full installation: There are three versions of MacTeX.
Full installation:
brew cask install mactex brew cask install mactex
Full installation without bundled applications: Full installation without bundled applications:
@ -23,9 +25,6 @@ module Homebrew
Minimal installation: Minimal installation:
brew cask install basictex brew cask install basictex
You may also want the TeX Live Utility with the latter options:
brew cask install tex-live-utility
EOS EOS
when "pip" then <<~EOS when "pip" then <<~EOS
pip is part of the python formula: pip is part of the python formula:
@ -36,11 +35,7 @@ module Homebrew
pip2 install pillow pip2 install pillow
EOS EOS
when "macruby" then <<~EOS when "macruby" then <<~EOS
MacRuby is not packaged and is on an indefinite development hiatus. macOS provides Ruby. To install a newer version:
You can read more about it at:
#{Formatter.url("https://github.com/MacRuby/MacRuby")}
You can instead install the ruby formula:
brew install ruby brew install ruby
EOS EOS
when /(lib)?lzma/ then <<~EOS when /(lib)?lzma/ then <<~EOS
@ -76,9 +71,16 @@ module Homebrew
#{Formatter.url("https://www.playframework.com/documentation/2.3.x/Highlights23")} #{Formatter.url("https://www.playframework.com/documentation/2.3.x/Highlights23")}
EOS EOS
when "haskell-platform" then <<~EOS when "haskell-platform" then <<~EOS
We no longer package haskell-platform. Consider installing ghc, The components of the Haskell Platform are available separately.
cabal-install and stack instead:
brew install ghc cabal-install stack Glasgow Haskell Compiler:
brew install ghc
Cabal build system:
brew install cabal-install
Haskell Stack tool:
brew install haskell-stack
EOS EOS
when "mysqldump-secure" then <<~EOS when "mysqldump-secure" then <<~EOS
The creator of mysqldump-secure tried to game our popularity metrics. The creator of mysqldump-secure tried to game our popularity metrics.