2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2013-09-18 23:03:59 +00:00
|
|
|
url "https://launchpad.net/juju-core/1.14/1.14.0/+download/juju-core_1.14.0.tar.gz"
|
|
|
|
sha1 "7cefd01c8edb6168e6eae4a6bb44173f61cfd356"
|
2013-08-15 04:30:32 +00:00
|
|
|
|
2013-08-01 17:50:08 +00:00
|
|
|
depends_on 'go' => :build
|
|
|
|
|
2013-09-20 05:21:47 +00:00
|
|
|
fails_with :clang do
|
|
|
|
cause "clang: error: no such file or directory: 'libgcc.a'"
|
|
|
|
end
|
|
|
|
|
2013-08-01 17:50:08 +00:00
|
|
|
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
|