Created
September 20, 2012 20:27
-
-
Save jamiely/3758157 to your computer and use it in GitHub Desktop.
Pdf2htmlex.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Pdf2htmlex < Formula | |
homepage 'http://coolwanglu.github.com/pdf2htmlEX/' | |
url 'https://github.com/coolwanglu/pdf2htmlEX.git', :tag => 'v0.3.1' | |
head 'https://github.com/coolwanglu/pdf2htmlEX.git' | |
version 'v0.3.1' | |
sha1 '325901f101b66e8b4959e3619dfe42a0068c0b09' | |
depends_on 'cmake' => :build | |
depends_on 'fontforge' | |
depends_on 'png' | |
depends_on 'poppler' | |
def install | |
system "cmake", ".", *std_cmake_args | |
system "make" | |
system "make install" | |
end | |
def test | |
system "curl http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf -o /tmp/tmp.pdf && pdf2htmlEX /tmp/tmp.pdf" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment