Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (37 sloc) 1.159 kB
a82e823 @mxcl s/require 'brewkit'/require 'formula'/g
mxcl authored
1 require 'formula'
e9dd256 Scala 2.7.5 formula
Brett Cannon authored
2
0476235 @adamv Use ruby style for inheritance.
adamv authored
3 class ScalaDocs < Formula
332b779 @inkytonik Add --with-docs option to scala formula
inkytonik authored
4 homepage 'http://www.scala-lang.org/'
5 url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.8.1.final-devel-docs.tgz'
0e16b9d @dt Scala 2.9.0RC2 as HEAD
dt authored
6 head 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.RC2-devel-docs.tgz'
332b779 @inkytonik Add --with-docs option to scala formula
inkytonik authored
7 version '2.8.1'
0e16b9d @dt Scala 2.9.0RC2 as HEAD
dt authored
8
9 if ARGV.build_head?
10 md5 'bac780ac205c6edd78dae90200314484'
11 else
12 md5 'afd5c7d3073bd735a25cfc4ed61f3543'
13 end
332b779 @inkytonik Add --with-docs option to scala formula
inkytonik authored
14 end
15
0476235 @adamv Use ruby style for inheritance.
adamv authored
16 class Scala < Formula
ed57a52 @wolverian Update Scala to 2.8.0.
wolverian authored
17 homepage 'http://www.scala-lang.org/'
94e7082 @lstoll Bump scala to version 2.8.1
lstoll authored
18 url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.8.1.final.tgz'
0e16b9d @dt Scala 2.9.0RC2 as HEAD
dt authored
19 head 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.RC2.tgz'
94e7082 @lstoll Bump scala to version 2.8.1
lstoll authored
20 version '2.8.1'
0e16b9d @dt Scala 2.9.0RC2 as HEAD
dt authored
21
22 if ARGV.build_head?
23 md5 '396b161129780a371ce7f5da61aa780b'
24 else
25 md5 '4fa66742341b5c9f6877ce64d409cb92'
26 end
e9dd256 Scala 2.7.5 formula
Brett Cannon authored
27
332b779 @inkytonik Add --with-docs option to scala formula
inkytonik authored
28 def options
29 [['--with-docs', 'Also install library documentation']]
30 end
31
e9dd256 Scala 2.7.5 formula
Brett Cannon authored
32 def install
d0efd9e @adamv Update formulae for version 0.7
adamv authored
33 rm_f Dir["bin/*.bat"]
fdb41a3 @adamv Install scala to libexec and link in "bin"
adamv authored
34 doc.install Dir['doc/*']
6a18e38 @mkhl Scala - Move man pages to the correct path.
mkhl authored
35 man1.install Dir['man/man1/*']
fdb41a3 @adamv Install scala to libexec and link in "bin"
adamv authored
36 libexec.install Dir['*']
37 bin.mkpath
38 Dir["#{libexec}/bin/*"].each { |f| ln_s f, bin }
332b779 @inkytonik Add --with-docs option to scala formula
inkytonik authored
39
40 if ARGV.include? '--with-docs'
41 ScalaDocs.new.brew { doc.install Dir['*'] }
42 end
e9dd256 Scala 2.7.5 formula
Brett Cannon authored
43 end
44 end
Something went wrong with that request. Please try again.