mmark: remove gopath

Closes #48049.

Signed-off-by: Jonathan Chang <jchang641@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-19 01:23:19 -05:00 committed by Jonathan Chang
parent 168a27a416
commit d3ba5bca27

View file

@ -19,14 +19,9 @@ class Mmark < Formula
end end
def install def install
ENV["GOPATH"] = buildpath system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"mmark"
man1.install "mmark.1"
(buildpath/"src/github.com/mmarkdown/mmark").install buildpath.children prefix.install_metafiles
cd "src/github.com/mmarkdown/mmark" do
system "go", "build", "-o", bin/"mmark"
man1.install "mmark.1"
prefix.install_metafiles
end
end end
test do test do