From be287a93e7570fb063bb18da697308774fe3628f Mon Sep 17 00:00:00 2001 From: Oleksii Holubovich Date: Fri, 29 Mar 2019 16:50:11 +0200 Subject: [PATCH] virgil 5.0.1 Closes #38514. Signed-off-by: FX Coudert --- Formula/virgil.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Formula/virgil.rb diff --git a/Formula/virgil.rb b/Formula/virgil.rb new file mode 100644 index 0000000000..898b904188 --- /dev/null +++ b/Formula/virgil.rb @@ -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