Skip to content

Commit

Permalink
sbuild 0.7.7
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#39920.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
dunn authored and xu-cheng committed May 20, 2015
1 parent d9332ef commit 7bf521a
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Formula/sbuild.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Sbuild < Formula
homepage "http://sbuild.org"
url "http://sbuild.org/uploads/sbuild/0.7.6/sbuild-0.7.6-dist.zip"
sha256 "64e17df4db26980170e5cf616d015924da01f232c5207f2bdc7ba10e7d976e3d"
url "http://sbuild.org/uploads/sbuild/0.7.7/sbuild-0.7.7-dist.zip"
sha256 "606bc09603707f31d9ca5bc306ba01b171f8400e643261acd28da7a1a24dfb23"

depends_on :java => "1.6+"

def install
libexec.install Dir["*"]
Expand All @@ -10,6 +12,23 @@ def install
end

test do
system bin/"sbuild", "--help"
expected = <<-EOS.undent
import de.tototec.sbuild._
@version("#{version}")
class SBuild(implicit _project: Project) {
Target("phony:clean") exec {
Path("target").deleteRecursive
}
Target("phony:hello") help "Greet me" exec {
println("Hello you")
}
}
EOS
system bin/"sbuild", "--create-stub"
assert_equal expected, (testpath/"Sbuild.scala").read
end
end

0 comments on commit 7bf521a

Please sign in to comment.