diff options
| author | Misty De Meo | 2012-07-20 11:30:46 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-07-20 11:30:46 -0500 |
| commit | 5ecc5ebf281f6f3c0a7d86d8a53726f01bc20f17 (patch) | |
| tree | bfcf51d2ec2b830ae91b7fb9131bfa72957ac27b /Library/Formula | |
| parent | 365508f2218cce33ecb0c89144c43a0924c21c12 (diff) | |
| download | homebrew-5ecc5ebf281f6f3c0a7d86d8a53726f01bc20f17.tar.bz2 | |
pdfjam: add pdflatex Requirement
Fixes #13508.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pdfjam.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/pdfjam.rb b/Library/Formula/pdfjam.rb index ef5300bf6..6a48355ed 100644 --- a/Library/Formula/pdfjam.rb +++ b/Library/Formula/pdfjam.rb @@ -1,3 +1,19 @@ +class PdfLatexRequirement < Requirement + def message; <<-EOS.undent + pdfjam requires pdflatex to run. You can install this using MacTex: + http://tug.org/mactex/ + EOS + end + + def satisfied? + which 'pdflatex' + end + + def fatal? + true + end +end + require 'formula' class Pdfjam < Formula @@ -6,6 +22,8 @@ class Pdfjam < Formula md5 '7df075df7f129091f826275ce8c1f374' version '2.08' + depends_on PdfLatexRequirement.new + def install bin.install Dir['bin/*'] man.install 'man1' |
