2015-01-20 02:48:44 +00:00
|
|
|
class Mpw < Formula
|
|
|
|
homepage "http://masterpasswordapp.com"
|
2015-02-02 19:47:16 +00:00
|
|
|
url "https://ssl.masterpasswordapp.com/mpw-2.1-cli4-0-gf6b2287.tar.gz"
|
|
|
|
sha1 "036b3d8f4bd6f0676ae16e7e9c3de65f6030874f"
|
|
|
|
version "2.1-cli4"
|
2015-01-20 02:48:44 +00:00
|
|
|
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
2015-01-20 02:53:41 +00:00
|
|
|
depends_on "openssl"
|
2015-01-20 02:48:44 +00:00
|
|
|
|
|
|
|
resource "libscrypt" do
|
|
|
|
url "http://masterpasswordapp.com/libscrypt-b12b554.tar.gz"
|
|
|
|
sha1 "ee871e0f93a786c4e3622561f34565337cfdb815"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
resource("libscrypt").stage buildpath/"lib/scrypt"
|
2015-01-20 02:53:41 +00:00
|
|
|
touch "lib/scrypt/.unpacked"
|
2015-01-20 02:48:44 +00:00
|
|
|
|
2015-02-02 19:47:16 +00:00
|
|
|
ENV["targets"] = "mpw mpw-tests"
|
2015-01-20 02:48:44 +00:00
|
|
|
system "./build"
|
|
|
|
system "./mpw-tests"
|
|
|
|
|
|
|
|
bin.install "mpw"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "Jejr5[RepuSosp",
|
|
|
|
shell_output("mpw -u 'Robert Lee Mitchell' -P 'banana colored duckling' masterpasswordapp.com").strip
|
|
|
|
end
|
|
|
|
end
|