homebrew-core/Formula/carina.rb

35 lines
1 KiB
Ruby

class Carina < Formula
desc "Command-line client for Carina"
homepage "https://github.com/getcarina/carina"
url "https://github.com/getcarina/carina.git",
:tag => "v2.1.3",
:revision => "2b3ec267e298e095d7c2f81a2d82dc50a720e81c"
head "https://github.com/getcarina/carina.git"
bottle do
cellar :any_skip_relocation
sha256 "ee6c8cdf2eddda983618f7de29bf3bcc7e81d8d9a7085a037d67cd7cdb25377a" => :sierra
sha256 "34086f8b3418d96c3ee5c2f50ad5ffc7ee839fd26b36d0e8911c364a8c82586e" => :el_capitan
sha256 "0706998cd1dc286030e20382ac69a96c744ec558784685f769aa4276966dcd12" => :yosemite
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV.prepend_create_path "PATH", buildpath/"bin"
carinapath = buildpath/"src/github.com/getcarina/carina"
carinapath.install Dir["{*,.git}"]
cd carinapath do
system "make", "get-deps"
system "make", "local", "VERSION=#{version}"
bin.install "carina"
end
end
test do
system "#{bin}/carina", "--version"
end
end