aurora 2.0 (new formula)

Closes #9944.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Ri Xu 2016-11-09 14:04:45 +08:00 committed by Mike McQuaid
parent afe6fb6478
commit 225bdddebc
1 changed files with 32 additions and 0 deletions

32
Formula/aurora.rb Normal file
View File

@ -0,0 +1,32 @@
require "language/go"
class Aurora < Formula
desc "Beanstalkd queue server console"
homepage "https://xuri.me/aurora"
url "https://github.com/Luxurioust/aurora/archive/2.0.tar.gz"
sha256 "b1c9bfbc41b1e94824c64634d36f11ca7dc928635456cf258bd21f099edb3e22"
depends_on "go" => :build
go_resource "github.com/BurntSushi/toml" do
url "https://github.com/BurntSushi/toml.git",
:revision => "99064174e013895bbd9b025c31100bd1d9b590ca"
end
go_resource "github.com/rakyll/statik" do
url "https://github.com/rakyll/statik.git",
:revision => "e383bbf6b2ec1a2fb8492dfd152d945fb88919b6"
end
def install
ENV["GOPATH"] = buildpath
Language::Go.stage_deps resources, buildpath/"src"
mkdir_p "src/github.com/Luxurioust"
ln_s buildpath, "src/github.com/Luxurioust/aurora"
system "go", "build", "-o", bin/"aurora"
end
test do
assert_match version.to_s, shell_output("#{bin}/aurora -v")
end
end