2012-07-20 16:30:46 +00:00
|
|
|
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
|
|
|
|
|
2010-09-09 17:57:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pdfjam < Formula
|
2011-09-24 04:12:54 +00:00
|
|
|
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'
|
|
|
|
md5 '7df075df7f129091f826275ce8c1f374'
|
|
|
|
version '2.08'
|
2010-09-09 17:57:49 +00:00
|
|
|
|
2012-07-20 16:30:46 +00:00
|
|
|
depends_on PdfLatexRequirement.new
|
|
|
|
|
2010-09-09 17:57:49 +00:00
|
|
|
def install
|
|
|
|
bin.install Dir['bin/*']
|
|
|
|
man.install 'man1'
|
|
|
|
end
|
|
|
|
end
|