diff options
| author | Stian Eikeland | 2014-10-22 23:38:05 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-23 08:58:24 +0100 |
| commit | f40d851dca146268e815a6ace0c5371eb1911334 (patch) | |
| tree | 407b47c4a01d2c9102ca7e578cdef1e2787c3e2a /Library/Formula | |
| parent | 6fa1dcea709b4c4ecf43d494350e57913d78e24c (diff) | |
| download | homebrew-f40d851dca146268e815a6ace0c5371eb1911334.tar.bz2 | |
lastpass-cli 0.3.0
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lastpass-cli.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/lastpass-cli.rb b/Library/Formula/lastpass-cli.rb new file mode 100644 index 000000000..a673c65c7 --- /dev/null +++ b/Library/Formula/lastpass-cli.rb @@ -0,0 +1,25 @@ +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" + + 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 |
