aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pinentry.rb
blob: dcd18d97b41ad15f208573e50ce3b7a9a911fa84 (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
require "formula"

class Pinentry < Formula
  homepage "http://www.gnupg.org/related_software/pinentry/index.en.html"
  url "ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-0.9.0.tar.bz2"
  sha1 "f8e5c774c35fbb91d84e82559baf76f6b4513236"

  bottle do
    cellar :any
    sha1 "430ee45b7236eecc16a089d7601b15f78c010684" => :yosemite
    sha1 "6eab9da0d163a0ca3d3717092a50048863dd16af" => :mavericks
    sha1 "ffd319f02d77015c80a40c5a4f055db03315503a" => :mountain_lion
  end

  depends_on "pkg-config" => :build

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-pinentry-qt4",
                          "--disable-pinentry-gtk2"
    system "make", "install"
  end

  test do
    system "#{bin}/pinentry", "--version"
  end
end