scala: use sha256, docs and srcs for --devel

Closes Homebrew/homebrew#40210.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Atkins 2015-05-30 17:15:11 +08:00 committed by Baptiste Fontaine
parent b8adc8e3fa
commit c1c755e645

View file

@ -2,8 +2,6 @@ require 'formula'
class Scala < Formula
homepage 'http://www.scala-lang.org/'
url 'http://www.scala-lang.org/files/archive/scala-2.11.6.tgz'
sha1 'f30ff4104b0fed5c4beca2b599b8f67e66b7f4e6'
bottle do
cellar :any
@ -12,23 +10,40 @@ class Scala < Formula
sha1 "15310848fa89566423225e6547505c2aa246d249" => :mountain_lion
end
devel do
url 'http://www.scala-lang.org/files/archive/scala-2.12.0-M1.tgz'
sha1 '23b19c5885671192a46b0e1eb4980cda6a4e6c03'
version '2.12.0-M1'
end
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.6.zip'
sha1 'b646de99bb38de779bdc65ce0e48c727da4778f7'
stable do
url "http://www.scala-lang.org/files/archive/scala-2.11.6.tgz"
sha256 "41ba45e4600404634217a66d6b2c960459d3a67e0344a7c3d9642d0eaa446583"
resource "docs" do
url "http://www.scala-lang.org/files/archive/scala-docs-2.11.6.zip"
sha256 "aa7fb121cc0e50d32cd85b162b684d30be383aab42ec9b59589e389af8b62254"
end
resource "src" do
url "https://github.com/scala/scala/archive/v2.11.6.tar.gz"
sha256 "0ccf26576dacd2792af09a146a43a15b25201d47891f83c3dc8f9a04c79e88b1"
end
end
resource 'src' do
url 'https://github.com/scala/scala/archive/v2.11.6.tar.gz'
sha1 '96911a7f5faf6768744322be59e6eb7df4a3af53'
devel do
url "http://www.scala-lang.org/files/archive/scala-2.12.0-M1.tgz"
sha256 "e48971939fa0f82ff3190ecafd22ad98d9d00eb4aef09cd2197265dc44f72eee"
version "2.12.0-M1"
resource "docs" do
url "http://www.scala-lang.org/files/archive/scala-docs-2.12.0-M1.zip"
sha256 "36683ec16e30b69e3abf424c8cff1d49ebfd5f07b4cd3a015ced767a1ca81221"
version "2.12.0-M1"
end
resource "src" do
url "https://github.com/scala/scala/archive/v2.12.0-M1.tar.gz"
sha256 "0c129529b8dbafa89782c997904705dc59d5b9abf01f97218f86f1c602fca339"
version "2.12.0-M1"
end
end
resource 'completion' do