parent
1874cb2c8e
commit
3179e6d69e
1 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,17 @@
|
|||
require 'formula'
|
||||
|
||||
class Java7 < Requirement
|
||||
fatal true
|
||||
|
||||
def satisfied?
|
||||
`java -version`.split("\n")[0] =~ /"1\.7/
|
||||
end
|
||||
|
||||
def message
|
||||
"Java 7 is required."
|
||||
end
|
||||
end
|
||||
|
||||
class ClosureCompiler < Formula
|
||||
homepage 'http://code.google.com/p/closure-compiler/'
|
||||
url 'https://code.google.com/p/closure-compiler/', :using => :git, :tag => 'v20140303'
|
||||
|
@ -7,6 +19,7 @@ class ClosureCompiler < Formula
|
|||
head 'https://code.google.com/p/closure-compiler/', :using => :git
|
||||
|
||||
depends_on :ant
|
||||
depends_on Java7
|
||||
|
||||
def install
|
||||
system "ant", "clean"
|
||||
|
|
Loading…
Reference in a new issue