2017-03-09 17:06:36 +00:00
|
|
|
class RebarAT3 < Formula
|
|
|
|
desc "Erlang build tool"
|
|
|
|
homepage "https://github.com/erlang/rebar3"
|
2017-06-10 09:18:35 +00:00
|
|
|
url "https://github.com/erlang/rebar3/archive/3.4.1.tar.gz"
|
|
|
|
sha256 "fa8b056c37ed3781728baf0fc5b1d87a31edbc5f8dd9b50a5d1ad92b0230e5dd"
|
2017-03-09 17:06:36 +00:00
|
|
|
head "https://github.com/rebar/rebar3.git"
|
|
|
|
|
2017-03-12 14:41:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-06-10 11:06:36 +00:00
|
|
|
sha256 "3333d0cada9ebf7dec90aec4ab82026c18df2ece9eab4a2a098776c2a5fd9f87" => :sierra
|
|
|
|
sha256 "5aa3c2ad030e5a81ef5b814af6e2c8ca613b60b39ec0d9367f7aabcdb12deac8" => :el_capitan
|
|
|
|
sha256 "019df9817d19c6565cfab70dd80897a8ff942ae7d17d9795cc6d75f9ca30b639" => :yosemite
|
2017-03-12 14:41:41 +00:00
|
|
|
end
|
|
|
|
|
2017-03-09 17:06:36 +00:00
|
|
|
depends_on "erlang"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./bootstrap"
|
|
|
|
bin.install "rebar3"
|
|
|
|
|
|
|
|
bash_completion.install "priv/shell-completion/bash/rebar3"
|
|
|
|
zsh_completion.install "priv/shell-completion/zsh/_rebar3"
|
|
|
|
fish_completion.install "priv/shell-completion/fish/rebar3.fish"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"rebar3", "--version"
|
|
|
|
end
|
|
|
|
end
|