Revert "closure-compiler: requires Java 7"
This reverts commit 8bca3b24ea4256444fadc78f67d3a7eb9ad3b63d.master
parent
680eded822
commit
4efc051ab1
|
@ -1,17 +1,5 @@
|
||||||
require 'formula'
|
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
|
class ClosureCompiler < Formula
|
||||||
homepage 'http://code.google.com/p/closure-compiler/'
|
homepage 'http://code.google.com/p/closure-compiler/'
|
||||||
url 'https://code.google.com/p/closure-compiler/', :using => :git, :tag => 'v20140303'
|
url 'https://code.google.com/p/closure-compiler/', :using => :git, :tag => 'v20140303'
|
||||||
|
@ -19,7 +7,6 @@ class ClosureCompiler < Formula
|
||||||
head 'https://code.google.com/p/closure-compiler/', :using => :git
|
head 'https://code.google.com/p/closure-compiler/', :using => :git
|
||||||
|
|
||||||
depends_on :ant
|
depends_on :ant
|
||||||
depends_on Java7
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "ant", "clean"
|
system "ant", "clean"
|
||||||
|
|
Loading…
Reference in New Issue