Make pdfjam use TeX requirement.

Closes Homebrew/homebrew#16568.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Xiyue Deng 2012-12-28 19:02:20 -08:00 committed by Adam Vandenberg
parent 6ea46510b9
commit 97a6e57577

View file

@ -1,28 +1,12 @@
require 'formula'
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
class Pdfjam < Formula
url 'http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/pdfjam_208.tgz'
homepage 'http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam'
sha1 '981b504ef96369a203f85fefb42d4ea0d1194493'
version '2.08'
depends_on PdfLatexRequirement.new
depends_on :tex
def install
bin.install Dir['bin/*']