aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-03-11 11:44:26 -0500
committerJack Nagel2012-03-11 11:44:26 -0500
commit9c8d3b74eacae1306fdd26a558f77d5d8cabb583 (patch)
treec262f02888746ea4e0a2d5159080264fd35fd7be /Library
parent3f777ee0721ccb0674d851617c56037a33a119d8 (diff)
downloadhomebrew-9c8d3b74eacae1306fdd26a558f77d5d8cabb583.tar.bz2
scala: style nits
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/scala.rb15
1 files changed, 6 insertions, 9 deletions
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