htmlcompressor: remove options
This commit is contained in:
parent
d772f3092e
commit
0680b22dfc
1 changed files with 0 additions and 18 deletions
|
@ -6,27 +6,9 @@ class Htmlcompressor < Formula
|
|||
|
||||
bottle :unneeded
|
||||
|
||||
option "with-yuicompressor", "Use YUICompressor for JS/CSS compression"
|
||||
option "with-closure-compiler", "Use Closure Compiler for JS optimization"
|
||||
|
||||
deprecated_option "yuicompressor" => "with-yuicompressor"
|
||||
deprecated_option "closure-compiler" => "with-closure-compiler"
|
||||
|
||||
depends_on "closure-compiler" => :optional
|
||||
depends_on "yuicompressor" => :optional
|
||||
|
||||
def install
|
||||
libexec.install "htmlcompressor-#{version}.jar"
|
||||
bin.write_jar_script libexec/"htmlcompressor-#{version}.jar", "htmlcompressor"
|
||||
|
||||
if build.with? "yuicompressor"
|
||||
yui = Formula["yuicompressor"]
|
||||
libexec.install_symlink yui.opt_libexec/"yuicompressor-#{yui.version}.jar"
|
||||
end
|
||||
|
||||
if build.with? "closure-compiler"
|
||||
libexec.install_symlink Formula["closure-compiler"].opt_libexec/"build/compiler.jar"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue