homebrew-core/Formula/pdf2htmlex.rb
Brett Koonce 8d8b1377a8 pdf2htmlEX v0.10
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-18 18:04:46 -07:00

27 lines
799 B
Ruby

require 'formula'
class Pdf2htmlex < Formula
homepage 'http://coolwanglu.github.io/pdf2htmlEX/'
url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.10.tar.gz'
sha256 '154de15aa84b4f543b130a48bb229477b80168ac9ba8747981f544d645ec3f26'
head 'https://github.com/coolwanglu/pdf2htmlEX.git'
depends_on :macos => :lion
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'fontforge'
depends_on 'poppler'
depends_on 'ttfautohint' => :recommended if MacOS.version > :snow_leopard
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