Make pdfjam use TeX requirement.
Closes Homebrew/homebrew#16568. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
6ea46510b9
commit
97a6e57577
1 changed files with 1 additions and 17 deletions
|
@ -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/*']
|
||||
|
|
Loading…
Reference in a new issue