2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 01:26:09 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ScalaDocs < Formula
|
2010-12-31 03:53:13 +00:00
|
|
|
homepage 'http://www.scala-lang.org/'
|
2012-04-13 18:27:25 +00:00
|
|
|
url 'http://www.scala-lang.org/downloads/distrib/files/scala-docs-2.9.2.zip'
|
2012-09-04 00:32:58 +00:00
|
|
|
sha1 'b49ef500314d968ddbd683b64628925a747f35e5'
|
2010-12-31 03:53:13 +00:00
|
|
|
end
|
|
|
|
|
2011-09-07 14:04:44 +00:00
|
|
|
class ScalaCompletion < Formula
|
|
|
|
homepage 'http://www.scala-lang.org/'
|
2012-05-02 22:43:57 +00:00
|
|
|
url 'https://raw.github.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'
|
2011-09-07 14:04:44 +00:00
|
|
|
version '2.9.1'
|
2012-09-04 00:32:58 +00:00
|
|
|
sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997'
|
2011-09-07 14:04:44 +00:00
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Scala < Formula
|
2010-07-14 16:52:07 +00:00
|
|
|
homepage 'http://www.scala-lang.org/'
|
2012-04-13 18:27:25 +00:00
|
|
|
url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '806fc1d91bda82d6a584172d7742531386ae68fb'
|
2009-09-04 01:26:09 +00:00
|
|
|
|
2012-08-27 05:05:48 +00:00
|
|
|
option 'with-docs', 'Also install library documentation'
|
2010-12-31 03:53:13 +00:00
|
|
|
|
2009-09-04 01:26:09 +00:00
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
rm_f Dir["bin/*.bat"]
|
2010-08-08 15:49:45 +00:00
|
|
|
doc.install Dir['doc/*']
|
2010-02-18 18:22:20 +00:00
|
|
|
man1.install Dir['man/man1/*']
|
2010-08-08 15:49:45 +00:00
|
|
|
libexec.install Dir['*']
|
2012-02-12 19:16:05 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
2012-08-27 05:05:48 +00:00
|
|
|
ScalaCompletion.new.brew { (prefix/'etc/bash_completion.d').install 'scala' }
|
|
|
|
ScalaDocs.new.brew { doc.install Dir['*'] } if build.include? 'with-docs'
|
2012-03-11 16:44:26 +00:00
|
|
|
end
|
2009-09-04 01:26:09 +00:00
|
|
|
end
|