mmark: remove gopath
Closes #48049. Signed-off-by: Jonathan Chang <jchang641@gmail.com>
This commit is contained in:
parent
168a27a416
commit
d3ba5bca27
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue