aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDJManas2012-07-26 22:45:29 +0300
committerAdam Vandenberg2012-08-28 08:17:17 -0700
commitb60010ce9ae10107807675bdbc4d9599918151c4 (patch)
tree8cc16554f5adb72ddfddc9cdbffcdda0505e9d94 /Library/Formula
parent50425afec47d61ccb84fed658a2518f8658b8036 (diff)
downloadhomebrew-b60010ce9ae10107807675bdbc4d9599918151c4.tar.bz2
epubcheck --devel 3.0 beta 5
Closes #13631. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/epubcheck.rb27
1 files changed, 20 insertions, 7 deletions
diff --git a/Library/Formula/epubcheck.rb b/Library/Formula/epubcheck.rb
index dbf025f67..649d75ddb 100644
--- a/Library/Formula/epubcheck.rb
+++ b/Library/Formula/epubcheck.rb
@@ -5,12 +5,25 @@ class Epubcheck < Formula
url 'http://epubcheck.googlecode.com/files/epubcheck-1.2.zip'
sha1 '86036eadad8408070791b3da368958239ed8a410'
+ devel do
+ url 'http://epubcheck.googlecode.com/files/epubcheck-3.0b5.zip'
+ sha1 'd5f9d60733f587946fc853f561ca2f13e3b8f83d'
+ end
+
def install
- libexec.install "epubcheck-1.2.jar", "lib"
- (bin/'epubcheck').write <<-EOS.undent
- #!/bin/sh
- java -jar "#{libexec}/epubcheck-1.2.jar" "$@"
- EOS
+ if ARGV.build_devel?
+ libexec.install "epubcheck-3.0b5.jar", "lib"
+ (bin/'epubcheck').write <<-EOS.undent
+ #!/bin/sh
+ java -jar "#{libexec}/epubcheck-3.0b5.jar" "$@"
+ EOS
+ else
+ libexec.install "epubcheck-1.2.jar", "lib"
+ (bin/'epubcheck').write <<-EOS.undent
+ #!/bin/sh
+ java -jar "#{libexec}/epubcheck-1.2.jar" "$@"
+ EOS
+ end
end
def test
@@ -19,9 +32,9 @@ class Epubcheck < Formula
epubcheck file.epub
The reply should look like:
- Epubcheck Version 1.2
+ Epubcheck Version 1.2 or 3.0b5
No errors or warnings detected
EOS
end
-end
+end \ No newline at end of file