blob: 783f8c2efe0151d196385b567030cdaefbad2bf4 (
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
|
require 'formula'
class Pdf2htmlex < Formula
homepage 'http://coolwanglu.github.com/pdf2htmlEX/'
url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.6.tar.gz'
sha1 '3b824e007e48130ccacb7372fb98658990e402fd'
head 'https://github.com/coolwanglu/pdf2htmlEX.git'
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'fontforge'
depends_on 'poppler'
depends_on 'ttfautohint' => :recommended
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make install"
end
test do
curl "-O", "http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf"
system "#{bin}/pdf2htmlEX", "AdobeXMLFormsSamples.pdf"
end
end
|