aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLuke Gallagher2011-11-24 18:44:32 +1100
committerAdam Vandenberg2011-11-25 22:47:37 -0800
commita44d5d5572cb2d3d834db647a7aea1fd240f54d7 (patch)
treeab0752f2d061745488e84541b74a8e9535517bfc /Library/Formula
parent516537a36937cc3baedb5d222eaca2d4f22ef614 (diff)
downloadhomebrew-a44d5d5572cb2d3d834db647a7aea1fd240f54d7.tar.bz2
epubcheck 1.2
EpubCheck is a tool to validate IDPF EPUB files, version 2.0 and later. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/epubcheck.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/epubcheck.rb b/Library/Formula/epubcheck.rb
new file mode 100644
index 000000000..04eeb190a
--- /dev/null
+++ b/Library/Formula/epubcheck.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Epubcheck < Formula
+ url 'http://epubcheck.googlecode.com/files/epubcheck-1.2.zip'
+ homepage 'http://code.google.com/p/epubcheck/'
+ sha1 '86036eadad8408070791b3da368958239ed8a410'
+
+ def install
+ libexec.install Dir["epubcheck-1.2.jar", "lib"]
+ (bin+'epubcheck').write <<-EOS.undent
+ #!/bin/sh
+ java -jar "#{libexec}/epubcheck-1.2.jar" "$1"
+ EOS
+ end
+
+ def test
+ puts <<-EOS.undent
+ To test epubcheck, find a epub file that doesn't have any errors and then:
+ epubcheck file.epub
+
+ The reply should look like:
+ Epubcheck Version 1.2
+
+ No errors or warnings detected
+ EOS
+ end
+end