aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pdfjam.rb18
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'