-
-
Save canadaduane/6310067 to your computer and use it in GitHub Desktop.
Scala version 2.9.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class ScalaDocs < Formula | |
homepage 'http://www.scala-lang.org/' | |
url 'http://www.scala-lang.org/files/archive/scala-2.9.1.final-devel-docs.tgz' | |
version '2.9.1' | |
md5 '88668b400ec61c8b043e288ddc62b8b8' | |
end | |
class ScalaCompletion < Formula | |
homepage 'http://www.scala-lang.org/' | |
url 'https://raw.github.com/scala/scala-dist/27bc0c25145a8/completion.d/2.9.1/scala' | |
version '2.9.1' | |
sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997' | |
end | |
class Scala < Formula | |
homepage 'http://www.scala-lang.org/' | |
url 'http://www.scala-lang.org/files/archive/scala-2.9.1.final.tgz' | |
md5 '1a06eacc7f59f279bf1700c98d5bf19d' | |
def options | |
[['--with-docs', 'Also install library documentation']] | |
end | |
def install | |
rm_f Dir["bin/*.bat"] | |
doc.install Dir['doc/*'] | |
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' | |
end | |
def caveats; <<-EOS.undent | |
Bash completion has been installed to: | |
#{etc}/bash_completion.d | |
EOS | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment