2013-08-01 17:50:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Juju < Formula
|
|
|
|
homepage 'https://juju.ubuntu.com'
|
2014-12-05 21:24:48 +00:00
|
|
|
url 'https://launchpad.net/juju-core/1.20/1.20.14/+download/juju-core_1.20.14.tar.gz'
|
|
|
|
sha1 'aca9765276c3c60c0c4d6c4b7a8d72d0ab3c5fcd'
|
2014-04-25 20:57:42 +00:00
|
|
|
|
2014-03-29 14:23:20 +00:00
|
|
|
bottle do
|
2014-12-11 21:43:32 +00:00
|
|
|
sha1 "ac3d5c6a9db95e1019cef093588441ad23c30d63" => :yosemite
|
|
|
|
sha1 "3c0442d2bbf00b8a46b6a284702a0057a924cb98" => :mavericks
|
|
|
|
sha1 "2aee0c6523269e5bfbc588c927be7a5fb4f98a44" => :mountain_lion
|
2014-03-29 14:23:20 +00:00
|
|
|
end
|
|
|
|
|
2013-08-01 17:50:08 +00:00
|
|
|
depends_on 'go' => :build
|
|
|
|
|
|
|
|
def install
|
2014-09-14 19:30:17 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
system "go", "build", "github.com/juju/juju/cmd/juju"
|
2014-09-25 22:30:38 +00:00
|
|
|
system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata"
|
|
|
|
bin.install "juju", "juju-metadata"
|
2014-07-05 15:08:51 +00:00
|
|
|
bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-core"
|
2013-08-01 17:50:08 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-08-01 17:50:08 +00:00
|
|
|
system "#{bin}/juju", "version"
|
|
|
|
end
|
|
|
|
end
|