blob: 205f9291837cf261faa10ff20622a6cb322aa340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require "formula"
class PinentryMac < Formula
homepage "https://github.com/GPGTools/pinentry-mac"
url "https://github.com/GPGTools/pinentry-mac/archive/v0.8.1.tar.gz"
sha256 "79aaa11fa8076ff335b3a1f41c230ef7c8435a757705e6484199f562f26b490f"
head "https://github.com/GPGTools/pinentry-mac.git"
bottle do
cellar :any
sha1 "d518025f018b5fbed420c4f1d0f9bee2bdd3fda8" => :yosemite
sha1 "cfe4459ff2aa5390e192046589063e14e33aee85" => :mavericks
sha1 "4d80f3954ddb16618074d9d978f3a83aedddb8db" => :mountain_lion
end
depends_on :xcode => :build
def install
system "make"
prefix.install "build/Release/pinentry-mac.app"
bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac"
end
def caveats; <<-EOS.undent
You can now set this as your pinentry program like
~/.gnupg/gpg-agent.conf
pinentry-program #{HOMEBREW_PREFIX}/bin/pinentry-mac
EOS
end
end
|