virgil 5.0.1

Closes #38514.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Oleksii Holubovich 2019-03-29 16:50:11 +02:00 committed by FX Coudert
parent 08a9fe2491
commit be287a93e7

27
Formula/virgil.rb Normal file
View file

@ -0,0 +1,27 @@
class Virgil < Formula
desc "CLI tool to manage your Virgil account and applications"
homepage "https://github.com/VirgilSecurity/virgil-cli"
url "https://github.com/VirgilSecurity/virgil-cli.git",
:tag => "v5.0.1",
:revision => "03ddee65e9cecbdd7ef55b1285c0ca70758d6d40"
head "https://github.com/VirgilSecurity/virgil-cli.git"
depends_on "dep" => :build
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/VirgilSecurity/virgil-cli"
dir.install buildpath.children - [buildpath/".brew_home"]
cd dir do
system "dep", "ensure", "-vendor-only"
system "go", "build", "-o", "virgil"
bin.install "virgil"
end
end
test do
result = shell_output "#{bin}/virgil pure keygen"
assert_match /SK.1./, result
end
end