aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/htmlcompressor.rb
diff options
context:
space:
mode:
authorJack Nagel2014-11-14 14:35:08 -0600
committerJack Nagel2014-11-14 14:46:44 -0600
commit83ab724dd1f218d239aec5eb6edc0f6d217473f4 (patch)
tree0ecae41c094aa6f3b3c6588bda05218478319418 /Library/Formula/htmlcompressor.rb
parent392e27982f17732f20eec2a4a6d111685a1a7db7 (diff)
downloadhomebrew-83ab724dd1f218d239aec5eb6edc0f6d217473f4.tar.bz2
htmlcompressor: update options
Diffstat (limited to 'Library/Formula/htmlcompressor.rb')
-rw-r--r--Library/Formula/htmlcompressor.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Formula/htmlcompressor.rb b/Library/Formula/htmlcompressor.rb
index 6ffc21d87..28d110b16 100644
--- a/Library/Formula/htmlcompressor.rb
+++ b/Library/Formula/htmlcompressor.rb
@@ -5,22 +5,25 @@ class Htmlcompressor < Formula
url 'https://htmlcompressor.googlecode.com/files/htmlcompressor-1.5.3.jar'
sha1 '57db73b92499e018b2f2978f1c7aa7b1238c7a39'
- option 'yuicompressor', "Use YUICompressor for JS/CSS compression"
- option 'closure-compiler', "Use Closure Compiler for JS optimization"
+ option "with-yuicompressor", "Use YUICompressor for JS/CSS compression"
+ option "with-closure-compiler", "Use Closure Compiler for JS optimization"
- depends_on "yuicompressor" if build.include? 'yuicompressor'
- depends_on "closure-compiler" if build.include? 'closure-compiler'
+ deprecated_option "yuicompressor" => "with-yuicompressor"
+ deprecated_option "closure-compiler" => "with-closure-compiler"
+
+ depends_on "yuicompressor" => :optional
+ depends_on "closure-compiler" => :optional
def install
libexec.install "htmlcompressor-#{version}.jar"
bin.write_jar_script libexec/"htmlcompressor-#{version}.jar", "htmlcompressor"
- if build.include? 'yuicompressor'
+ if build.with? "yuicompressor"
yui = Formula["yuicompressor"]
libexec.install_symlink yui.opt_libexec/"yuicompressor-#{yui.version}.jar"
end
- if build.include? 'closure-compiler'
+ if build.with? "closure-compiler"
libexec.install_symlink Formula["closure-compiler"].opt_libexec/"build/compiler.jar"
end
end