homebrew-core/Formula/dirmngr.rb

41 lines
1.3 KiB
Ruby
Raw Normal View History

class Dirmngr < Formula
2014-12-27 16:00:14 +00:00
homepage "http://www.gnupg.org"
url "ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-1.1.1.tar.bz2"
mirror "http://ftp.debian.org/debian/pool/main/d/dirmngr/dirmngr_1.1.1.orig.tar.bz2"
sha1 "e708d4aa5ce852f4de3f4b58f4e4f221f5e5c690"
revision 1
2014-07-01 10:48:03 +00:00
bottle do
2015-04-19 09:37:46 +00:00
revision 2
sha256 "ca8d166e23d655deb6fba0f22b675482791bcfe1008ec07bdef8bfdc5f7240ec" => :yosemite
sha256 "ce5b93c43cf4d15a6510782663583683a1fa0582f4f2a270230c91b081ae2ba8" => :mavericks
sha256 "5b4f0faf48899220e39b649aed3d3a772393bfa02f066dcfb8b6d47cc832165d" => :mountain_lion
2014-07-01 10:48:03 +00:00
end
2014-12-27 16:00:14 +00:00
depends_on "libassuan"
depends_on "libgpg-error"
depends_on "libgcrypt"
depends_on "libksba"
depends_on "pth"
patch :p0 do
# patch by upstream developer to fix an API incompatibility with libgcrypt >=1.6.0
# causing immediate segfault in dirmngr. see http://bugs.g10code.com/gnupg/issue1590
url "http://bugs.g10code.com/gnupg/file419/dirmngr-pth-fix.patch"
sha256 "0efbcf1e44177b3546fe318761c3386a11310a01c58a170ef60df366e5160beb"
end
def install
system "./configure", "--disable-dependency-tracking",
2013-01-27 22:16:08 +00:00
"--prefix=#{prefix}",
"--sysconfdir=#{etc}"
system "make"
2014-12-27 16:00:14 +00:00
system "make", "install"
end
test do
system "dirmngr-client", "--help"
system "dirmngr", "--help"
end
end