homebrew-core/Formula/juju.rb
sinzui 0bab7aea25 juju 1.16.3
A bug fix update of juju stable.

Closes Homebrew/homebrew#24128.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-09 21:44:22 -08:00

25 lines
593 B
Ruby

require 'formula'
class Juju < Formula
homepage 'https://juju.ubuntu.com'
url 'https://launchpad.net/juju-core/1.16/1.16.3/+download/juju-core_1.16.3.tar.gz'
sha1 '986ae55f58ce1838c20eea556a0afc23aff9cdd4'
depends_on 'go' => :build
fails_with :clang do
cause "clang: error: no such file or directory: 'libgcc.a'"
end
def install
ENV['GOPATH'] = buildpath
args = %w(install launchpad.net/juju-core/cmd/juju)
args.insert(1, "-v") if ARGV.verbose?
system "go", *args
bin.install 'bin/juju'
end
def test
system "#{bin}/juju", "version"
end
end