aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/etcdctl.rb
blob: 2d7d944bf9e066258e8c20e30139e53903793b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Etcdctl < Formula
  homepage 'https://github.com/coreos/etcdctl'
  url 'https://github.com/coreos/etcdctl/archive/v0.4.3.tar.gz'
  sha1 '6ca73e6d3af5bb8b88a48f349dea9f200a663197'
  head 'https://github.com/coreos/etcdctl.git'

  bottle do
    sha1 "75f0759aaa2530515292ee085b2842c7720f4b60" => :mavericks
    sha1 "adc8d9fe819aa37986ea31e1e242bea4f042b43b" => :mountain_lion
    sha1 "b59391519465ca5f28804dbd66492180d2f4dea8" => :lion
  end

  depends_on 'go' => :build

  def install
    ENV['GOPATH'] = buildpath
    system "./build"
    bin.install 'bin/etcdctl'
  end
end