aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJason A. Donenfeld2012-09-14 05:33:47 +0200
committerAdam Vandenberg2012-09-14 09:18:31 -0700
commit68bac82d1eeeb064511dffe88e5e335b826dac45 (patch)
tree4177307c79e435680447351e33b9df557322a1b1 /Library
parent83b377167b2f00a36a733e8fb01ae3e36cdb0eec (diff)
downloadhomebrew-68bac82d1eeeb064511dffe88e5e335b826dac45.tar.bz2
pass 1.3.1
Closes #14928. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pass.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/Library/Formula/pass.rb b/Library/Formula/pass.rb
index b9bd812a5..168078103 100644
--- a/Library/Formula/pass.rb
+++ b/Library/Formula/pass.rb
@@ -2,15 +2,22 @@ require 'formula'
class Pass < Formula
homepage 'http://zx2c4.com/projects/password-store'
- url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.2.1.tar.xz'
- sha256 'e75c49db92288cb41913905f9cdfbae6cfb8db09f9d5537242ca436c811042fa'
+ url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.3.1.tar.xz'
+ sha256 '351c0e2eb3315ca317026e73f7654a6351f2674000d9476b18c1525cbc5d732d'
+
head 'http://git.zx2c4.com/password-store', :using => :git
depends_on 'xz' => :build
depends_on 'pwgen'
depends_on 'tree'
+ depends_on 'gnu-getopt'
depends_on 'gnupg2'
+ def patches
+ # Use ramdisk for volatile storage in OSX.
+ "contrib/osx-ramdisk.patch"
+ end
+
def install
inreplace "src/password-store.sh" do |s|
s.gsub! "gpg ", "gpg2 "
@@ -18,10 +25,15 @@ class Pass < Formula
s.gsub! "xclip -selection clipboard", "pbcopy"
s.gsub! "qdbus", "#qdbus"
s.gsub! "base64", "openssl base64"
+ s.gsub! "getopt", "#{HOMEBREW_PREFIX}/opt/gnu-getopt/bin/getopt"
end
inreplace "man/pass.1", "xclip", "pbcopy"
system "make DESTDIR=#{prefix} PREFIX=/ install"
end
+ def test
+ system "#{bin}/pass --version"
+ end
+
end