2014-10-22 21:38:05 +00:00
|
|
|
class LastpassCli < Formula
|
|
|
|
homepage "https://github.com/lastpass/lastpass-cli"
|
2015-03-13 23:19:00 +00:00
|
|
|
url "https://github.com/lastpass/lastpass-cli/archive/v0.5.0.tar.gz"
|
|
|
|
sha256 "09e7b1e5c1520db2a34a49e7ae07e5b3a7555a4ed2490ed7b56f047065bca812"
|
2014-11-14 23:02:30 +00:00
|
|
|
head "https://github.com/lastpass/lastpass-cli.git"
|
2014-10-22 21:38:05 +00:00
|
|
|
|
2014-10-22 21:45:47 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-16 08:20:49 +00:00
|
|
|
sha1 "00b5e1e8dfa6218820407b81deb36e1ed8962add" => :yosemite
|
|
|
|
sha1 "c3daa164c62caa821634ebb9ff6a67952d7638fe" => :mavericks
|
|
|
|
sha1 "3661870b984015eac001c67d6484a0850b7d6110" => :mountain_lion
|
2014-10-22 21:45:47 +00:00
|
|
|
end
|
|
|
|
|
2014-10-22 21:38:05 +00:00
|
|
|
option "with-doc", "Install man pages"
|
|
|
|
|
2015-03-13 23:19:00 +00:00
|
|
|
depends_on "asciidoc" => :build if build.with? "doc"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "pinentry" => :optional
|
2014-10-22 21:38:05 +00:00
|
|
|
|
|
|
|
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
|