homebrew-core/Formula/mpw.rb
2015-11-19 17:03:53 +01:00

39 lines
1.2 KiB
Ruby

class Mpw < Formula
desc "Master Password for the terminal"
homepage "http://masterpasswordapp.com"
url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz"
sha256 "6ea76592eb8214329072d04f651af99d73de188a59ef76975d190569c7fa2b90"
version "2.1-cli4"
bottle do
cellar :any
sha256 "f20cf074a7b286fad3e6f0d1c7ff48e34d56db0828faa4107b81ad82b9a08b21" => :yosemite
sha256 "943b13c7d67268a075722c4e8a8527666a9aff4a7eb4041ce8222eba3fa95409" => :mavericks
sha256 "7b1ec9c9225e827bc513139631716b010b8031b4b94e3dc8e41e5872913ad970" => :mountain_lion
end
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "openssl"
resource "libscrypt" do
url "http://masterpasswordapp.com/libscrypt-b12b554.tar.gz"
sha256 "c726daec68a345e420896f005394a948dc5a6924713ed94b684c856d4c247f0b"
end
def install
resource("libscrypt").stage buildpath/"lib/scrypt"
touch "lib/scrypt/.unpacked"
ENV["targets"] = "mpw mpw-tests"
system "./build"
system "./mpw-tests"
bin.install "mpw"
end
test do
assert_equal "RoliQeka7/Deqi",
shell_output("mpw -u user -P password test.com 2>/dev/null").strip
end
end