diff options
| author | Philipp Fehre | 2013-11-02 13:39:40 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-07 10:38:54 +0000 |
| commit | 0077145cd5c79ed938596338e08aa3e2fac42e4f (patch) | |
| tree | 77fd5f41162af7b4a059e4640f4f4b8228c6e470 /Library/Formula/clipsafe.rb | |
| parent | cda652f81f5f5262c4cafa3da941c4bcd915740a (diff) | |
| download | homebrew-0077145cd5c79ed938596338e08aa3e2fac42e4f.tar.bz2 | |
clipsafe 1.1 (new formula)
Password manager for pwsafe v3.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/clipsafe.rb')
| -rw-r--r-- | Library/Formula/clipsafe.rb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Library/Formula/clipsafe.rb b/Library/Formula/clipsafe.rb new file mode 100644 index 000000000..96ff7088a --- /dev/null +++ b/Library/Formula/clipsafe.rb @@ -0,0 +1,56 @@ +require 'formula' + +class Clipsafe < Formula + homepage 'http://waxandwane.org/clipsafe.html' + url 'http://waxandwane.org/download/clipsafe-1.1.tar.gz' + sha1 '5e940a3f89821bfb3315ff9b1be4256db27e5f6a' + + depends_on :macos => :mountain_lion + + resource "Crypt::Twofish" do + url "http://search.cpan.org/CPAN/authors/id/A/AM/AMS/Crypt-Twofish-2.17.tar.gz" + sha1 "f2659d7b9e7d7daadb3b2414174bd6ec8ac68eda" + end + + resource "Digest::SHA" do + url "http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.85.tar.gz" + sha1 "a603cfba95afcd0266c9482c0c93e84241fe0ce0" + end + + resource "DateTime" do + url "http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-1.03.tar.gz" + sha1 "23cad043140988ea95ad8dcb3095cc5aded0464e" + end + + def install + resource("Crypt::Twofish").stage do + system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}" + system "make" + system "make", "install" + end + + resource("Digest::SHA").stage do + system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}" + system "make" + system "make", "install" + end + + resource("DateTime").stage do + system "perl", "Build.PL", "--install_base=#{libexec}" + system "./Build" + system "./Build", "install" + end + + # Add resources to Perl's load_path. + inreplace "clipsafe", + /(# cliPSafe is a command line interface to Password Safe databases.)/, + "use lib '#{libexec}/lib/perl5';\n"'\1' + + bin.install "clipsafe" + end + + test do + ENV["TERM"] = "dumb" + system "#{bin}/clipsafe", "--help" + end +end |
