From 389cc07ed02454ef95da98691897484d0b975c3f Mon Sep 17 00:00:00 2001 From: Rodrigo Chacon Date: Thu, 1 Aug 2013 14:50:08 -0300 Subject: [PATCH] Juju 1.12.0 Closes Homebrew/homebrew#21858. Signed-off-by: Adam Vandenberg --- Formula/juju.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/juju.rb diff --git a/Formula/juju.rb b/Formula/juju.rb new file mode 100644 index 0000000000..b8b0cbb74d --- /dev/null +++ b/Formula/juju.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Juju < Formula + homepage 'https://juju.ubuntu.com' + url "https://launchpad.net/juju-core/1.12/1.12.0/+download/juju-core_1.12.0-1.tar.gz" + version "1.12.0-1" + sha1 "b552919f5f4ed5a34885a2a6a8a4a0d7be485267" + + depends_on 'go' => :build + + 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