aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lastpass-cli.rb
blob: 03529a8912b5fe6bb0583ca8eee05872d1ab0dd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "formula"

class LastpassCli < Formula
  homepage "https://github.com/lastpass/lastpass-cli"
  url "https://github.com/lastpass/lastpass-cli/archive/v0.3.0.tar.gz"
  sha1 "a4491bc5d258899ead6c64d4f97d23af93e03ff9"
  head "https://github.com/lastpass/lastpass-cli.git"

  bottle do
    cellar :any
    sha1 "2dce40ba5321331bdcc1bfe06ae30c3240dcfbd8" => :yosemite
    sha1 "952c4e58291145bc4bcfee02e299787f3f9e4d93" => :mavericks
    sha1 "96f02cd6ce93b14b56a2a75412523624f20cb36e" => :mountain_lion
  end

  depends_on "openssl"
  depends_on "pinentry" => :optional

  option "with-doc", "Install man pages"

  if build.with? "doc"
    depends_on "asciidoc" => :build
  end

  def install
    system "make", "PREFIX=#{prefix}", "install"
    system "make", "MANDIR=#{man}", "install-doc" if build.with? "doc"
  end

  test do
    system "#{bin}/lpass", "--version"
  end
end