homebrew-core/Formula/gleam.rb

30 lines
913 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-11-03 04:38:46 +00:00
rebuild 1
sha256 "8554c7e81378dca051827e5a10b46594b210c035b947d367256a7bda8d8c2d31" => :catalina
sha256 "594bbaf47f4a260a24a16fc7f2cc34f4889a071f96eb89b6d1d36bdf4ed1086c" => :mojave
sha256 "f46e3c4fb0a5162273ba1d87c623c4c53f9284254200442b005061d4c165cfbb" => :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", "--locked", "--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