homebrew-core/Formula/gleam.rb

29 lines
887 B
Ruby
Raw Normal View History

class Gleam < Formula
desc "✨ A statically typed language for the Erlang VM"
homepage "https://gleam.run"
url "https://github.com/lpil/gleam/archive/v0.4.2.tar.gz"
sha256 "db1d9568138eddc56d5fc6135ae9f21b06335119fe7fe2526d6498a97fa4fd67"
2019-09-20 18:46:58 +00:00
bottle do
cellar :any_skip_relocation
2019-10-24 15:46:43 +00:00
sha256 "7b290e91df867d782be0ae2b892a65962b318f8b5a53ea76c828024222716359" => :catalina
sha256 "09b9f26ac1d088926802f42a040bd54589e1be3805f68d1ace362550868c3944" => :mojave
sha256 "ba13e23c4fe980c246b9fc579a5a51f0b3c59f21f7b02db167958751211ce3df" => :high_sierra
2019-09-20 18:46:58 +00:00
end
depends_on "rust" => :build
depends_on "erlang"
depends_on "rebar3"
def install
system "cargo", "install", "--root", prefix, "--path", "gleam"
end
test do
Dir.chdir testpath
system "#{bin}/gleam", "new", "test_project"
Dir.chdir "test_project"
system "rebar3", "eunit"
end
end