2019-09-20 18:08:48 +00:00
|
|
|
class Gleam < Formula
|
|
|
|
desc "✨ A statically typed language for the Erlang VM"
|
|
|
|
homepage "https://gleam.run"
|
2019-12-25 15:15:02 +00:00
|
|
|
url "https://github.com/lpil/gleam/archive/v0.6.0.tar.gz"
|
|
|
|
sha256 "6be0c908669917f448a59d2b0b66042ac027978da45e0b927b15cb914ba04d9e"
|
2019-09-20 18:08:48 +00:00
|
|
|
|
2019-09-20 18:46:58 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-12-26 13:20:21 +00:00
|
|
|
sha256 "8e0d20c20d8344b7795fac06a7009dd8912f419cac1eafb634e0065066a28eca" => :catalina
|
|
|
|
sha256 "260839aa5c76bae333e8cf3772db973cc9f203afac3cbd5e97c8cd80372091a1" => :mojave
|
|
|
|
sha256 "01a55348834c772ad9cd5b2c9b2a7a16c3986ded90130fae451ba58a6f71bde4" => :high_sierra
|
2019-09-20 18:46:58 +00:00
|
|
|
end
|
|
|
|
|
2019-09-20 18:08:48 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
depends_on "erlang"
|
|
|
|
depends_on "rebar3"
|
|
|
|
|
|
|
|
def install
|
2019-12-18 15:25:27 +00:00
|
|
|
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
2019-09-20 18:08:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
Dir.chdir testpath
|
|
|
|
system "#{bin}/gleam", "new", "test_project"
|
|
|
|
Dir.chdir "test_project"
|
|
|
|
system "rebar3", "eunit"
|
|
|
|
end
|
|
|
|
end
|