aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sf-pwgen.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/sf-pwgen.rb')
-rw-r--r--Library/Formula/sf-pwgen.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/sf-pwgen.rb b/Library/Formula/sf-pwgen.rb
new file mode 100644
index 000000000..5c62fe9aa
--- /dev/null
+++ b/Library/Formula/sf-pwgen.rb
@@ -0,0 +1,18 @@
+require "formula"
+
+class SfPwgen < Formula
+ homepage "https://bitbucket.org/anders/sf-pwgen/"
+ url "https://bitbucket.org/anders/sf-pwgen/downloads/sf-pwgen-1.2.tar.gz"
+ sha1 "7e8bc5e6c4f75ea9fbd904198a188264ff05837c"
+
+ depends_on :macos => :mountain_lion
+
+ def install
+ system "make"
+ bin.install "sf-pwgen"
+ end
+
+ test do
+ system "#{bin}/sf-pwgen", "-a", "memorable", "-c", "10", "-l", "20"
+ end
+end