htmlcompressor: use install_symlink

This commit is contained in:
Jack Nagel 2014-03-25 22:43:35 -05:00
parent 7c595866b8
commit 773bd60183

View file

@ -17,13 +17,11 @@ class Htmlcompressor < Formula
if build.include? 'yuicompressor'
yui = Formula["yuicompressor"]
yui_jar = "yuicompressor-#{yui.version}.jar"
ln_s "#{yui.opt_libexec}/#{yui_jar}", "#{libexec}/#{yui_jar}"
libexec.install_symlink yui.opt_libexec/"yuicompressor-#{yui.version}.jar"
end
if build.include? 'closure-compiler'
closure = Formula["closure-compiler"]
ln_s "#{closure.opt_libexec}/build/compiler.jar", "#{libexec}/compiler.jar"
libexec.install_symlink Formula["closure-compiler"].opt_libexec/"build/compiler.jar"
end
end