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"
|
2014-08-20 05:39:07 +00:00
|
|
|
url "https://github.com/coreos/etcdctl/archive/v0.4.6.tar.gz"
|
|
|
|
sha1 "924668c26a30bfe65ac88971965b1dad819be630"
|
2014-07-20 18:48:08 +00:00
|
|
|
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-08-20 05:45:08 +00:00
|
|
|
sha1 "55d9d167c681bde77edddafab93ca59a7f6ac876" => :mavericks
|
|
|
|
sha1 "f371b74df8c7efd4b20bf51eec88621f6129b0c1" => :mountain_lion
|
|
|
|
sha1 "0944b857b23a28b4bc1c20c668d07afbf86b42cf" => :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
|