homebrew-core/Formula/cli53.rb

29 lines
917 B
Ruby
Raw Normal View History

class Cli53 < Formula
desc "command-line tool for Amazon Route 53"
homepage "https://github.com/barnybug/cli53"
url "https://github.com/barnybug/cli53/archive/0.8.5.tar.gz"
sha256 "4da0c3210ce86768d9be50be94c65c17bdfc4c2af980d04939e404f87ce006fe"
2016-04-28 21:02:48 +00:00
bottle do
cellar :any_skip_relocation
2016-09-17 08:15:27 +00:00
sha256 "971739862970057906cf8f9dcec332d7ef2ac8afa5cea508a3f6d8c339f9fe7f" => :el_capitan
sha256 "f1d457a3fbd3a9b9a8935726165ea04b5ce5c72f28fb0a12b34343396ef00e14" => :yosemite
sha256 "763bb87f2a16121b0b1bb0b6fd9068f0efc63172807a6cd774ecef9f7a084088" => :mavericks
2016-04-28 21:02:48 +00:00
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/barnybug"
ln_s buildpath, buildpath/"src/github.com/barnybug/cli53"
system "make", "build"
bin.install "cli53"
end
test do
assert_match "list domains", shell_output("#{bin}/cli53 help list")
end
end