homebrew-core/Formula/pdf2htmlex.rb

28 lines
798 B
Ruby
Raw Normal View History

require 'formula'
class Pdf2htmlex < Formula
2013-04-07 02:34:41 +00:00
homepage 'http://coolwanglu.github.io/pdf2htmlEX/'
url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.9.tar.gz'
sha256 'eb511c54d3776af24cf8b8966fa88358fdef4cd48556d603f88ce5bff6df681d'
head 'https://github.com/coolwanglu/pdf2htmlEX.git'
2013-09-20 14:44:20 +00:00
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