diff options
| author | Adam Vandenberg | 2012-08-26 22:05:48 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-26 22:05:48 -0700 |
| commit | 20ae8552f0bd5e52be9f3a054fb5c1b52fee39fe (patch) | |
| tree | b7024a0d482aeffa57cefacae68b6470a652c565 /Library/Formula | |
| parent | 05766902a808b8d8283751fdd58c19a29117b1c0 (diff) | |
| download | homebrew-20ae8552f0bd5e52be9f3a054fb5c1b52fee39fe.tar.bz2 | |
scala: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scala.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/scala.rb b/Library/Formula/scala.rb index 8bb7bfdf0..45e0fffac 100644 --- a/Library/Formula/scala.rb +++ b/Library/Formula/scala.rb @@ -18,9 +18,7 @@ class Scala < Formula url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz' md5 'bc1f68ce3f989347231f2e23784deee9' - def options - [['--with-docs', 'Also install library documentation']] - end + option 'with-docs', 'Also install library documentation' def install rm_f Dir["bin/*.bat"] @@ -28,7 +26,7 @@ class Scala < Formula man1.install Dir['man/man1/*'] 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' + ScalaCompletion.new.brew { (prefix/'etc/bash_completion.d').install 'scala' } + ScalaDocs.new.brew { doc.install Dir['*'] } if build.include? 'with-docs' end end |
