From 0c7c45a131251aaef24dfe5e6b803d136d51fbde Mon Sep 17 00:00:00 2001 From: John Marshall Date: Tue, 26 Feb 2019 16:29:29 +0000 Subject: [PATCH 1/5] missing_formula: add message for Asymptote Per Homebrew/legacy-homebrew#23029, there is no formula for Asymptote because you may well already have it installed via MacTeX anyway. --- Library/Homebrew/missing_formula.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index ec3ddb4ce1..efb0784f02 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -26,6 +26,10 @@ module Homebrew Minimal installation: brew cask install basictex EOS + when "asymptote" then <<~EOS + Asymptote is bundled with MacTeX. Install it via TeX Live Utility or: + tlmgr install asymptote + EOS when "pip" then <<~EOS pip is part of the python formula: brew install python From a7022736ad993d29ff39d045f95e28de13e07bfe Mon Sep 17 00:00:00 2001 From: John Marshall Date: Thu, 28 Feb 2019 10:33:45 +0000 Subject: [PATCH 2/5] Clarify that TeX Live Utility (tlmgr) comes with the TeX installation MacTeX is the macOS package of TeX Live; also mention the latter for the sake of non-Mac Brew. --- Library/Homebrew/missing_formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index efb0784f02..8c3a85ac73 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -27,7 +27,9 @@ module Homebrew brew cask install basictex EOS when "asymptote" then <<~EOS - Asymptote is bundled with MacTeX. Install it via TeX Live Utility or: + Asymptote is bundled with MacTeX / TeX Live. When that is installed, Asymptote + may have been installed with it or can be added using the TeX Live Utility via + either its GUI or command line: tlmgr install asymptote EOS when "pip" then <<~EOS From 0c6164a1c1829e2ee2416625a1e309c4a3ae6e01 Mon Sep 17 00:00:00 2001 From: John Marshall Date: Thu, 28 Feb 2019 12:39:32 +0000 Subject: [PATCH 3/5] Ensure "brew install mactex" also brings up this help text --- Library/Homebrew/missing_formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 8c3a85ac73..8e998e24e8 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -14,7 +14,7 @@ module Homebrew macOS provides gem as part of Ruby. To install a newer version: brew install ruby EOS - when "tex", "tex-live", "texlive", "latex" then <<~EOS + when "tex", "tex-live", "texlive", "mactex", "latex" then <<~EOS There are three versions of MacTeX. Full installation: From c508bda668655153691393279bde511e00c03140 Mon Sep 17 00:00:00 2001 From: John Marshall Date: Mon, 11 Mar 2019 07:43:12 +0000 Subject: [PATCH 4/5] Further clarify that it is recommended to just install MacTeX Less wordy. --- Library/Homebrew/missing_formula.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 8e998e24e8..1627c8a404 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -27,10 +27,9 @@ module Homebrew brew cask install basictex EOS when "asymptote" then <<~EOS - Asymptote is bundled with MacTeX / TeX Live. When that is installed, Asymptote - may have been installed with it or can be added using the TeX Live Utility via - either its GUI or command line: - tlmgr install asymptote + The recommended way to install Asymptote is as part of the MacTeX collection. + With that installed, try `which asy` to confirm Asymptote has been installed + as part of the collection, or use MacTeX's TeX Live Utility to add it. EOS when "pip" then <<~EOS pip is part of the python formula: From e1e69da6b394cc0a843787b809c550344a7347f1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 11 Mar 2019 12:33:51 +0000 Subject: [PATCH 5/5] missing_formula: add `brew cask` command. --- Library/Homebrew/missing_formula.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 1627c8a404..2aabc656b4 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -27,9 +27,8 @@ module Homebrew brew cask install basictex EOS when "asymptote" then <<~EOS - The recommended way to install Asymptote is as part of the MacTeX collection. - With that installed, try `which asy` to confirm Asymptote has been installed - as part of the collection, or use MacTeX's TeX Live Utility to add it. + Asymptote is part of MacTeX: + brew cask install mactex EOS when "pip" then <<~EOS pip is part of the python formula: