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
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/mmarkdown/mmark").install buildpath.children
cd "src/github.com/mmarkdown/mmark" do
system "go", "build", "-o", bin/"mmark"
man1.install "mmark.1"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"mmark"
man1.install "mmark.1"
prefix.install_metafiles
end
test do