homebrew-core/Formula/pdf2htmlex.rb
Sean Leather 26be789663 pdf2htmlEX v0.11
Closes Homebrew/homebrew#26718.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-02-14 08:14:28 -06: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.11.tar.gz'
sha256 'eca83144daf298b25c5b9bedb59d8e21ba65eb5e246d61f897447bc917ec0cba'
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