
These are ones that were either already deprecated due to audit rules or are just a simple `which` with a `default_formula` so should just be a dependency.
21 lines
435 B
Ruby
21 lines
435 B
Ruby
require "requirement"
|
|
|
|
class TeXRequirement < Requirement
|
|
fatal true
|
|
cask "mactex"
|
|
download "https://www.tug.org/mactex/"
|
|
|
|
satisfy { which("tex") || which("latex") }
|
|
|
|
def message
|
|
s = <<~EOS
|
|
A LaTeX distribution is required for Homebrew to install this formula.
|
|
|
|
Make sure that "/usr/texbin", or the location you installed it to, is in
|
|
your PATH before proceeding.
|
|
EOS
|
|
s += super
|
|
s
|
|
end
|
|
end
|