homebrew-core/Formula/lastpass-cli.rb
Doug Freed bb829a5e49 lastpass-cli: Add HEAD option
Closes Homebrew/homebrew#34203.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-11-14 20:06:42 -06:00

33 lines
882 B
Ruby

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