htmlcompressor: remove options

This commit is contained in:
FX Coudert 2018-09-18 22:16:45 +02:00
parent d772f3092e
commit 0680b22dfc

View file

@ -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