2014-05-17 23:21:30 +00:00
|
|
|
require "formula"
|
2013-08-02 14:49:21 +00:00
|
|
|
|
|
|
|
class Rebar < Formula
|
2014-05-17 23:21:30 +00:00
|
|
|
homepage "https://github.com/rebar/rebar"
|
|
|
|
url "https://github.com/rebar/rebar/archive/2.3.0.tar.gz"
|
|
|
|
sha1 "4fc7eed4f3210c1547ba5ddfb5d3dc54a6422c37"
|
2013-08-02 14:49:21 +00:00
|
|
|
|
2014-04-08 14:33:45 +00:00
|
|
|
head "https://github.com/rebar/rebar.git", :branch => "master"
|
2013-08-08 15:25:47 +00:00
|
|
|
|
2014-05-17 23:21:30 +00:00
|
|
|
depends_on "erlang"
|
2013-08-02 14:49:21 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-17 23:21:30 +00:00
|
|
|
system "./bootstrap"
|
|
|
|
bin.install "rebar"
|
2013-08-02 14:49:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-05-21 20:47:09 +00:00
|
|
|
system bin/"rebar", "--version"
|
2013-08-02 14:49:21 +00:00
|
|
|
end
|
|
|
|
end
|