From 9c8d3b74eacae1306fdd26a558f77d5d8cabb583 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 11 Mar 2012 11:44:26 -0500 Subject: scala: style nits Signed-off-by: Jack Nagel --- Library/Formula/scala.rb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/scala.rb b/Library/Formula/scala.rb index ba01bc673..deb73f0e5 100644 --- a/Library/Formula/scala.rb +++ b/Library/Formula/scala.rb @@ -24,12 +24,6 @@ class Scala < Formula [['--with-docs', 'Also install library documentation']] end - def caveats; <<-EOS.undent - Bash completion has been installed to: - #{etc}/bash_completion.d - EOS - end - def install rm_f Dir["bin/*.bat"] doc.install Dir['doc/*'] @@ -37,9 +31,12 @@ class Scala < Formula libexec.install Dir['*'] bin.install_symlink Dir["#{libexec}/bin/*"] ScalaCompletion.new.brew { (prefix+'etc/bash_completion.d').install 'scala' } + ScalaDocs.new.brew { doc.install Dir['*'] } if ARGV.include? '--with-docs' + end - if ARGV.include? '--with-docs' - ScalaDocs.new.brew { doc.install Dir['*'] } - end + def caveats; <<-EOS.undent + Bash completion has been installed to: + #{etc}/bash_completion.d + EOS end end -- cgit v1.2.3