blob: 228b70b11020f4f0d215b0441f0f44404d7e1763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
require 'formula'
class ScalaDocs < Formula
homepage 'http://www.scala-lang.org/'
url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1-devel-docs.tgz'
head 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1-devel-docs.tgz'
version '2.9.0.1'
if ARGV.build_head?
md5 'acb16cbdf46f682806f60b052707b7b7'
else
md5 'acb16cbdf46f682806f60b052707b7b7'
end
end
class Scala < Formula
homepage 'http://www.scala-lang.org/'
url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1.tgz'
head 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1.tgz'
version '2.9.0.1'
if ARGV.build_head?
md5 '10d01410fd75019fa21a88964462a077'
else
md5 '10d01410fd75019fa21a88964462a077'
end
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.mkpath
Dir["#{libexec}/bin/*"].each { |f| ln_s f, bin }
if ARGV.include? '--with-docs'
ScalaDocs.new.brew { doc.install Dir['*'] }
end
end
end
|