homebrew-core/Formula/juju.rb
2014-09-14 14:30:17 -05:00

26 lines
734 B
Ruby

require 'formula'
class Juju < Formula
homepage 'https://juju.ubuntu.com'
url 'https://launchpad.net/juju-core/1.20/1.20.7/+download/juju-core_1.20.7.tar.gz'
sha1 'e0b087f1e8c464e3a0ac50c00493855efc3cf7cd'
bottle do
sha1 "e31e839d1199ac922616c235fd92ed6391c4ad9b" => :mavericks
sha1 "bbc47aadab320dcdee1d75b3c7ea0c375b4dbe0a" => :mountain_lion
sha1 "fbe9d1e3630a5bb707bf689ca78439850adb79e8" => :lion
end
depends_on 'go' => :build
def install
ENV["GOPATH"] = buildpath
system "go", "build", "github.com/juju/juju/cmd/juju"
bin.install "juju"
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
end
test do
system "#{bin}/juju", "version"
end
end