2011-11-24 07:44:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Epubcheck < Formula
|
|
|
|
homepage 'http://code.google.com/p/epubcheck/'
|
2012-06-27 15:37:14 +00:00
|
|
|
url 'http://epubcheck.googlecode.com/files/epubcheck-1.2.zip'
|
2011-11-24 07:44:32 +00:00
|
|
|
sha1 '86036eadad8408070791b3da368958239ed8a410'
|
|
|
|
|
2012-07-26 19:45:29 +00:00
|
|
|
devel do
|
2012-11-17 21:48:13 +00:00
|
|
|
url 'http://epubcheck.googlecode.com/files/epubcheck-3.0-RC-1.zip'
|
|
|
|
version '3.0-RC-1'
|
|
|
|
sha1 '055d8aaaaee70c581aced379097bb1eb1e7a8826'
|
2012-07-26 19:45:29 +00:00
|
|
|
end
|
|
|
|
|
2011-11-24 07:44:32 +00:00
|
|
|
def install
|
2012-11-17 21:48:13 +00:00
|
|
|
jarname = build.devel? ? "epubcheck-3.0-RC-1.jar" : "epubcheck-1.2.jar"
|
2012-08-07 18:20:52 +00:00
|
|
|
libexec.install jarname, "lib"
|
|
|
|
bin.write_jar_script libexec/jarname, 'epubcheck'
|
2011-11-24 07:44:32 +00:00
|
|
|
end
|
2012-08-29 16:08:53 +00:00
|
|
|
end
|