Created
October 9, 2012 17:37
-
-
Save yocontra/3860241 to your computer and use it in GitHub Desktop.
homebrew install for master
This file contains hidden or 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/tarball/master' | |
version '0.3.2' | |
head 'https://github.com/coolwanglu/pdf2htmlEX.git' | |
depends_on 'cmake' => :build | |
depends_on 'fontforge' | |
depends_on 'libpng' | |
depends_on 'poppler' | |
def install | |
system "cmake", ".", *std_cmake_args | |
system "make" | |
system "make install" | |
end | |
def test | |
mktemp do | |
curl "-O", "http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf" | |
system "#{bin}/pdf2htmlEX", "AdobeXMLFormsSamples.pdf" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment