diff options
| author | Indrajit Raychaudhuri | 2014-04-28 17:45:02 -0500 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-04-28 20:33:19 -0700 | 
| commit | 7d1c149878e75aa1ade8af40c7fe35af66cc6631 (patch) | |
| tree | b61a2a0fe8ddc8722f5a10560fe716cfcb474bfb /Library/Formula/scala.rb | |
| parent | 756b4afcddd2f4e744d6d483108d370eba44c0c3 (diff) | |
| download | homebrew-7d1c149878e75aa1ade8af40c7fe35af66cc6631.tar.bz2 | |
scala: fix incorrect doc installation path and add 'src' as resource
Closes #28818.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/scala.rb')
| -rw-r--r-- | Library/Formula/scala.rb | 14 | 
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/scala.rb b/Library/Formula/scala.rb index cd3650958..2f8f2e6de 100644 --- a/Library/Formula/scala.rb +++ b/Library/Formula/scala.rb @@ -6,12 +6,18 @@ class Scala < Formula    sha1 '65d1ef6231b4f08444dd10a015d2d82ea5444486'    option 'with-docs', 'Also install library documentation' +  option 'with-src', 'Also install sources for IDE support'    resource 'docs' do      url 'http://www.scala-lang.org/files/archive/scala-docs-2.11.0.zip'      sha1 '4194808c15c928e902e9e36dbaaab05ca660213f'    end +  resource 'src' do +    url 'https://github.com/scala/scala/archive/v2.11.0.tar.gz' +    sha1 'bc1e301741854424a2ed8949cc46fa9091bc1b46' +  end +    resource 'completion' do      url 'https://raw.githubusercontent.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'      sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997' @@ -23,13 +29,9 @@ class Scala < Formula      man1.install Dir['man/man1/*']      libexec.install Dir['*']      bin.install_symlink Dir["#{libexec}/bin/*"] -      bash_completion.install resource('completion') - -    if build.with? 'docs' -      branch = build.stable? ? 'scala-2.10' : 'scala-2.11' -      (share/'doc'/branch).install resource('docs') -    end +    doc.install resource('docs') if build.with? 'docs' +    libexec.install resource('src').files('src') if build.with? 'src'      # Set up an IntelliJ compatible symlink farm in 'idea'      idea = prefix/'idea'  | 
