45 lines
1.4 KiB
Ruby
45 lines
1.4 KiB
Ruby
require "language/go"
|
|
|
|
class Aurora < Formula
|
|
desc "Beanstalkd queue server console"
|
|
homepage "https://xuri.me/aurora"
|
|
url "https://github.com/xuri/aurora/archive/2.2.tar.gz"
|
|
sha256 "90ac08b7c960aa24ee0c8e60759e398ef205f5b48c2293dd81d9c2f17b24ca42"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "71f54ab698f0164d6e1c2385591969da6056130db87a83283623a630ecb41fb0" => :mojave
|
|
sha256 "8ed6f1aee6ea5c74e39dd26969c355df0c43651b5b16d6f49d45b00331696fb0" => :high_sierra
|
|
sha256 "4d59e71f583edb221cb1b85102612778fdc186cefbcdb4ff3df9619d7082eae1" => :sierra
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
go_resource "github.com/BurntSushi/toml" do
|
|
url "https://github.com/BurntSushi/toml.git",
|
|
:revision => "a368813c5e648fee92e5f6c30e3944ff9d5e8895"
|
|
end
|
|
|
|
go_resource "github.com/rakyll/statik" do
|
|
url "https://github.com/rakyll/statik.git",
|
|
:revision => "89fe3459b5c829c32e89bdff9c43f18aad728f2f"
|
|
end
|
|
|
|
go_resource "github.com/xuri/aurora" do
|
|
url "https://github.com/xuri/aurora.git",
|
|
:revision => "9e064410954b74d18192cbd5b5ed09ef68da3b8e"
|
|
end
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
(buildpath/"src/github.com/xuri").mkpath
|
|
ln_s buildpath, "src/github.com/xuri/aurora"
|
|
rm buildpath/"go.mod"
|
|
system "go", "build", "-o", bin/"aurora"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/aurora -v")
|
|
end
|
|
end
|