aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJamie Ly2013-01-29 21:15:12 -0500
committerAdam Vandenberg2013-02-01 09:46:39 -0800
commit311409789ea00e83ac4ca4f105e3e71c63f63d45 (patch)
treed0c3cf65b5f95a1437f7e5873f0b76d8a9aa5d30 /Library/Formula
parentea9dd8222aacd518c367fa9de9664b25ad1be77c (diff)
downloadhomebrew-311409789ea00e83ac4ca4f105e3e71c63f63d45.tar.bz2
pdf2htmlex 0.6
Closes #17427. Closes #15030. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pdf2htmlex.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/pdf2htmlex.rb b/Library/Formula/pdf2htmlex.rb
new file mode 100644
index 000000000..783f8c2ef
--- /dev/null
+++ b/Library/Formula/pdf2htmlex.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class Pdf2htmlex < Formula
+ homepage 'http://coolwanglu.github.com/pdf2htmlEX/'
+ url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.6.tar.gz'
+ sha1 '3b824e007e48130ccacb7372fb98658990e402fd'
+
+ 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