From 8aa02dbfb4a832eb7188fe5e0fb40de64ea38202 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 26 May 2019 10:31:57 -0400 Subject: [PATCH] volt 0.3.7 Closes #40346. Signed-off-by: Izaak Beekman --- Formula/volt.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Formula/volt.rb b/Formula/volt.rb index 76306a8c3f..4f658f0cb7 100644 --- a/Formula/volt.rb +++ b/Formula/volt.rb @@ -2,8 +2,8 @@ class Volt < Formula desc "Meta-level vim package manager" homepage "https://github.com/vim-volt/volt" url "https://github.com/vim-volt/volt.git", - :tag => "v0.3.6", - :revision => "b1c9efdcc7892fc5b48734bfbd73b76a4a1a5911" + :tag => "v0.3.7", + :revision => "e604467d8b440c89793b2e113cd241915e431bf9" head "https://github.com/vim-volt/volt.git" bottle do @@ -16,15 +16,16 @@ class Volt < Formula depends_on "go" => :build def install - mkdir_p buildpath/"src/github.com/vim-volt" - ln_s buildpath, buildpath/"src/github.com/vim-volt/volt" - ENV["GOPATH"] = buildpath + ENV["GOPATH"] = HOMEBREW_CACHE/"go_cache" + (buildpath/"src/github.com/vim-volt/volt").install buildpath.children + cd "src/github.com/vim-volt/volt" do + system "go", "build", "-o", bin/"volt" + prefix.install_metafiles - system "make", "BIN_DIR=#{bin}" - - bash_completion.install "_contrib/completion/bash" => "volt" - zsh_completion.install "_contrib/completion/zsh" => "_volt" - cp "#{bash_completion}/volt", "#{zsh_completion}/volt-completion.bash" + bash_completion.install "_contrib/completion/bash" => "volt" + zsh_completion.install "_contrib/completion/zsh" => "_volt" + cp "#{bash_completion}/volt", "#{zsh_completion}/volt-completion.bash" + end end test do