2014-07-20 18:48:08 +00:00
|
|
|
require "formula"
|
2013-10-11 10:13:14 +00:00
|
|
|
|
|
|
|
class Etcdctl < Formula
|
2014-07-20 18:48:08 +00:00
|
|
|
homepage "https://github.com/coreos/etcdctl"
|
|
|
|
url "https://github.com/coreos/etcdctl/archive/v0.4.5.tar.gz"
|
|
|
|
sha1 "698704fa04d9308552e42ae7d2bd4ff15c193255"
|
|
|
|
head "https://github.com/coreos/etcdctl.git"
|
2013-10-11 10:13:14 +00:00
|
|
|
|
2014-06-14 11:29:57 +00:00
|
|
|
bottle do
|
2014-07-20 19:06:25 +00:00
|
|
|
sha1 "220e279fe4e8ca7733c1b59618567c02a55596ff" => :mavericks
|
|
|
|
sha1 "b43502e6c33f96bafb40191a30dc9fc2f922e88c" => :mountain_lion
|
|
|
|
sha1 "5f3d423fbcb499fc0a8c8c9ee0c1b0df70b475db" => :lion
|
2014-06-14 11:29:57 +00:00
|
|
|
end
|
|
|
|
|
2014-07-20 18:48:08 +00:00
|
|
|
depends_on "go" => :build
|
2013-10-11 10:13:14 +00:00
|
|
|
|
|
|
|
def install
|
2014-07-20 18:48:08 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
2013-10-11 10:13:14 +00:00
|
|
|
system "./build"
|
2014-07-20 18:48:08 +00:00
|
|
|
bin.install "bin/etcdctl"
|
2013-10-11 10:13:14 +00:00
|
|
|
end
|
|
|
|
end
|