mage 1.8.0 (new formula)

Closes #37042.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Dominik Nakamura 2019-02-17 16:33:06 +09:00 committed by FX Coudert
parent 6d2e430595
commit aa7e21b1ba

25
Formula/mage.rb Normal file
View file

@ -0,0 +1,25 @@
class Mage < Formula
desc "Make/rake-like build tool using Go"
homepage "https://magefile.org"
url "https://github.com/magefile/mage.git",
:tag => "v1.8.0",
:revision => "aedfce64c122eef47009b7f80c9771044753215d"
sha256 "e8fdfa30f68c8a90fcadd4e82f49c9136011accabff55e073ea26f5ee4280cf0"
depends_on "go"
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/magefile/mage").install buildpath.children
cd "src/github.com/magefile/mage" do
system "go", "run", "bootstrap.go"
bin.install buildpath/"bin/mage"
prefix.install_metafiles
end
end
test do
assert_match "magefile.go created", shell_output("#{bin}/mage -init 2>&1")
assert_predicate testpath/"magefile.go", :exist?
end
end