nomad: rubyify CGO_ENABLED logic.

Closes #7246.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2016-12-10 14:00:23 +00:00
parent 137e626ea7
commit ff3bcae5de

View file

@ -20,7 +20,7 @@ class Nomad < Formula
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/hashicorp/nomad").install buildpath.children
cd "src/github.com/hashicorp/nomad" do
if build.with? "dynamic" then ENV["CGO_ENABLED"] = "1" end
ENV["CGO_ENABLED"] = "1" if build.with? "dynamic"
system "go", "build", "-o", bin/"nomad"
prefix.install_metafiles
end