blob: 6c9a1f79438902cdcae9ed5a8955da3f4b1e6b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
def install
bin.install Dir['bin/*']
man.install 'man1'
end
end
|