2016-11-09 06:04:45 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Aurora < Formula
|
|
|
|
desc "Beanstalkd queue server console"
|
|
|
|
homepage "https://xuri.me/aurora"
|
2017-07-12 05:46:20 +00:00
|
|
|
url "https://github.com/xuri/aurora/archive/2.1.tar.gz"
|
|
|
|
sha256 "921f137e269c3abc4c352822cb73cc6edff69434d4685c8aabc24978e951e800"
|
2016-11-09 06:04:45 +00:00
|
|
|
|
2017-02-14 02:15:11 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-09-22 01:07:05 +00:00
|
|
|
sha256 "64a70dcfd939245ccd64cee3f91c26374616eede20583e0a7e43314188d6e648" => :high_sierra
|
2017-07-12 06:26:19 +00:00
|
|
|
sha256 "d2af9495df0060035181a1991a9e29a8723336b312ac794e4b9a716cc38ce58e" => :sierra
|
|
|
|
sha256 "f0361aa58cf382e6daafb4cfd13dad45d398e4d6edff5cccd813efc165df199b" => :el_capitan
|
|
|
|
sha256 "150614c06c473e101d34f65f0e4114581df8d9808a3ec36df9425c9fd5246c4d" => :yosemite
|
2017-02-14 02:15:11 +00:00
|
|
|
end
|
|
|
|
|
2016-11-09 06:04:45 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
go_resource "github.com/BurntSushi/toml" do
|
|
|
|
url "https://github.com/BurntSushi/toml.git",
|
2017-07-12 05:46:20 +00:00
|
|
|
:revision => "a368813c5e648fee92e5f6c30e3944ff9d5e8895"
|
2016-11-09 06:04:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/rakyll/statik" do
|
|
|
|
url "https://github.com/rakyll/statik.git",
|
2017-07-12 05:46:20 +00:00
|
|
|
:revision => "89fe3459b5c829c32e89bdff9c43f18aad728f2f"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/xuri/aurora" do
|
|
|
|
url "https://github.com/xuri/aurora.git",
|
|
|
|
:revision => "ba6eea49d8e2ba665613b570b1532ac9fbfcfbbb"
|
2016-11-09 06:04:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
2017-07-12 05:46:20 +00:00
|
|
|
(buildpath/"src/github.com/xuri").mkpath
|
|
|
|
ln_s buildpath, "src/github.com/xuri/aurora"
|
2016-11-09 06:04:45 +00:00
|
|
|
system "go", "build", "-o", bin/"aurora"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/aurora -v")
|
|
|
|
end
|
|
|
|
end
|