Skip to content
This repository
Browse code

pass 1.3.1

Closes #14928.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit 1f786c0cee062c4d37e8e3d1932b33c8aec1cf73 1 parent 6267cd7
Jason A. Donenfeld authored September 14, 2012 halloleo committed September 15, 2012

Showing 1 changed file with 14 additions and 2 deletions. Show diff stats Hide diff stats

  1. 16  Library/Formula/pass.rb
16  Library/Formula/pass.rb
@@ -2,15 +2,22 @@
2 2
 
3 3
 class Pass < Formula
4 4
   homepage 'http://zx2c4.com/projects/password-store'
5  
-  url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.2.1.tar.xz'
6  
-  sha256 'e75c49db92288cb41913905f9cdfbae6cfb8db09f9d5537242ca436c811042fa'
  5
+  url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.3.1.tar.xz'
  6
+  sha256 '351c0e2eb3315ca317026e73f7654a6351f2674000d9476b18c1525cbc5d732d'
  7
+
7 8
   head 'http://git.zx2c4.com/password-store', :using => :git
8 9
 
9 10
   depends_on 'xz' => :build
10 11
   depends_on 'pwgen'
11 12
   depends_on 'tree'
  13
+  depends_on 'gnu-getopt'
12 14
   depends_on 'gnupg2'
13 15
 
  16
+  def patches
  17
+    # Use ramdisk for volatile storage in OSX.
  18
+    "contrib/osx-ramdisk.patch"
  19
+  end
  20
+
14 21
   def install
15 22
     inreplace "src/password-store.sh" do |s|
16 23
       s.gsub! "gpg ", "gpg2 "
@@ -18,10 +25,15 @@ def install
18 25
       s.gsub! "xclip -selection clipboard", "pbcopy"
19 26
       s.gsub! "qdbus", "#qdbus"
20 27
       s.gsub! "base64", "openssl base64"
  28
+      s.gsub! "getopt", "#{HOMEBREW_PREFIX}/opt/gnu-getopt/bin/getopt"
21 29
     end
22 30
     inreplace "man/pass.1", "xclip", "pbcopy"
23 31
 
24 32
     system "make DESTDIR=#{prefix} PREFIX=/ install"
25 33
   end
26 34
 
  35
+  def test
  36
+      system "#{bin}/pass --version"
  37
+  end
  38
+
27 39
 end

0 notes on commit 1f786c0

Please sign in to comment.
Something went wrong with that request. Please try again.