From 5ecc5ebf281f6f3c0a7d86d8a53726f01bc20f17 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Fri, 20 Jul 2012 11:30:46 -0500 Subject: pdfjam: add pdflatex Requirement Fixes #13508.--- Library/Formula/pdfjam.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Library/Formula') 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' -- cgit v1.2.3