2013-01-30 02:15:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pdf2htmlex < Formula
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://coolwanglu.github.io/pdf2htmlEX/'
|
2013-05-06 06:04:39 +00:00
|
|
|
url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.8.1.tar.gz'
|
|
|
|
sha256 'b9911e0ddd75cdc6717d13d493a8e7b88eab98d7c080382acf34c38f30cda79c'
|
2013-01-30 02:15:12 +00:00
|
|
|
|
|
|
|
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
|