b0e557d2a2
Closes Homebrew/homebrew#32877. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
27 lines
826 B
Ruby
27 lines
826 B
Ruby
require 'formula'
|
|
|
|
class Juju < Formula
|
|
homepage 'https://juju.ubuntu.com'
|
|
url 'https://launchpad.net/juju-core/1.20/1.20.9/+download/juju-core_1.20.9.tar.gz'
|
|
sha1 '73bf157293c920e8e38525e80754649dd62594e8'
|
|
|
|
bottle do
|
|
sha1 "cd7f15cfcba77c2be1f1fcf30f6f83e11fb37637" => :mavericks
|
|
sha1 "bdba39a1637540f70e214cbd9edc2bda6b74f2bd" => :mountain_lion
|
|
sha1 "36f3bfa3228abf7645270e3e4a59c6279d1f8158" => :lion
|
|
end
|
|
|
|
depends_on 'go' => :build
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
system "go", "build", "github.com/juju/juju/cmd/juju"
|
|
system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata"
|
|
bin.install "juju", "juju-metadata"
|
|
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/juju", "version"
|
|
end
|
|
end
|