Skip to content

Commit

Permalink
juju 1.24.6
Browse files Browse the repository at this point in the history
Patch El Capitan support.

Closes Homebrew/legacy-homebrew#44285.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
sinzui authored and DomT4 committed Sep 28, 2015
1 parent e3de7a5 commit d0e48be
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Formula/juju.rb
@@ -1,8 +1,8 @@
class Juju < Formula
desc "DevOps management tool"
homepage "https://juju.ubuntu.com"
url "https://launchpad.net/juju-core/1.24/1.24.5/+download/juju-core_1.24.5.tar.gz"
sha256 "3ffecd4613961f588d67f7f44877080b409f77379d59d239c64d88afe94c187f"
url "https://launchpad.net/juju-core/1.24/1.24.6/+download/juju-core_1.24.6.tar.gz"
sha256 "00928687041e3520146d7d937a51d1e7caf9b588bb9c80f02846addebe452cbd"

bottle do
cellar :any_skip_relocation
Expand All @@ -14,6 +14,14 @@ class Juju < Formula

depends_on "go" => :build

# El Capitan is not registered in Juju 1.24.x.
# https://bugs.launchpad.net/juju-core/+bug/1465317
# https://github.com/juju/juju/pull/3388
patch do
url "https://gist.githubusercontent.com/sinzui/68da12cb48493d41bdbc/raw/29f30ce225be0c4599ef2834f1585c939a507348/el-capitan.patch"
sha256 "326764b4c6da32823aa70b4a5f03a1d196983de4714a8d259e44e7a7a1ac53fe"
end

def install
ENV["GOPATH"] = buildpath
system "go", "build", "github.com/juju/juju/cmd/juju"
Expand Down

0 comments on commit d0e48be

Please sign in to comment.