2013-10-11 10:13:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Etcdctl < Formula
|
|
|
|
homepage 'https://github.com/coreos/etcdctl'
|
2014-06-24 22:34:40 +00:00
|
|
|
url 'https://github.com/coreos/etcdctl/archive/v0.4.4.tar.gz'
|
|
|
|
sha1 '44c88abdd40ff53fd8bb64f41936806b854936fe'
|
2013-10-11 10:13:14 +00:00
|
|
|
head 'https://github.com/coreos/etcdctl.git'
|
|
|
|
|
2014-06-14 11:29:57 +00:00
|
|
|
bottle do
|
2014-06-24 22:40:46 +00:00
|
|
|
sha1 "ee0471621da897916e0129edc72a3e427fe3a5c8" => :mavericks
|
|
|
|
sha1 "5d3098326902645ac8d6338224b66e3451c1321c" => :mountain_lion
|
|
|
|
sha1 "b3191d68fb77a1f6930d4e35ea0d83f7bf87423e" => :lion
|
2014-06-14 11:29:57 +00:00
|
|
|
end
|
|
|
|
|
2013-10-11 10:13:14 +00:00
|
|
|
depends_on 'go' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['GOPATH'] = buildpath
|
|
|
|
system "./build"
|
2014-02-09 13:44:33 +00:00
|
|
|
bin.install 'bin/etcdctl'
|
2013-10-11 10:13:14 +00:00
|
|
|
end
|
|
|
|
end
|