fix homebrew
This commit is contained in:
parent
e4c3fe52b3
commit
851009e1ef
|
|
@ -9,14 +9,12 @@ class {{Class}} < Formula
|
||||||
head "{{SOURCE_URL}}"
|
head "{{SOURCE_URL}}"
|
||||||
|
|
||||||
depends_on "go" => :build
|
depends_on "go" => :build
|
||||||
depends_on "dep"
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin_path = buildpath/"#{name}"
|
bin_path = buildpath/"#{name}"
|
||||||
# Copy all files from their current location to buildpath/#{name}
|
# Copy all files from their current location to buildpath/#{name}
|
||||||
bin_path.install Dir["*",".??*"]
|
bin_path.install Dir["*",".??*"]
|
||||||
cd bin_path do
|
cd bin_path do
|
||||||
system "make" "vendor"
|
|
||||||
system "make", "install", "VERSION=#{version}", "ITERATION={{Iter}}", "PREFIX=#{prefix}", "ETC=#{etc}"
|
system "make", "install", "VERSION=#{version}", "ITERATION={{Iter}}", "PREFIX=#{prefix}", "ETC=#{etc}"
|
||||||
# If this fails, the user gets a nice big warning about write permissions on their
|
# If this fails, the user gets a nice big warning about write permissions on their
|
||||||
# #{var}/log folder. The alternative could be letting the app silently fail
|
# #{var}/log folder. The alternative could be letting the app silently fail
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue