2009-10-15 19:04:16 +00:00
|
|
|
class Gpgme < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library access to GnuPG"
|
2014-11-17 05:48:10 +00:00
|
|
|
homepage "https://www.gnupg.org/related_software/gpgme/"
|
2015-11-08 22:39:25 +00:00
|
|
|
url "https://gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2"
|
2015-09-10 15:32:18 +00:00
|
|
|
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gpgme/gpgme-1.6.0.tar.bz2"
|
|
|
|
sha256 "b09de4197ac280b102080e09eaec6211d081efff1963bf7821cf8f4f9916099d"
|
2009-10-15 19:04:16 +00:00
|
|
|
|
2014-02-23 12:04:53 +00:00
|
|
|
bottle do
|
2014-11-18 08:24:23 +00:00
|
|
|
cellar :any
|
2015-09-23 12:10:38 +00:00
|
|
|
sha256 "81b2d72d94b9eaceeefb68939fa9f390fea9f1253cb81af5201e3ced06232a22" => :el_capitan
|
2015-09-11 02:14:04 +00:00
|
|
|
sha256 "73a8ec1c22d57bec7f1bb129f32b1597831f67a9b1a1763588f938f9a65e3fde" => :yosemite
|
|
|
|
sha256 "9541c704ace2a3ca7abdcf4325a28377bff3845998fa4fd61c464f642e88e3e4" => :mavericks
|
|
|
|
sha256 "6a28a7847a908c2ca93e88255acab792007bb7dbb4387ff897498d74f43650d5" => :mountain_lion
|
2014-02-23 12:04:53 +00:00
|
|
|
end
|
|
|
|
|
2014-11-17 05:48:10 +00:00
|
|
|
depends_on "gnupg2"
|
|
|
|
depends_on "libgpg-error"
|
|
|
|
depends_on "libassuan"
|
|
|
|
depends_on "pth"
|
2009-10-15 19:04:16 +00:00
|
|
|
|
2015-09-14 18:20:29 +00:00
|
|
|
conflicts_with "argp-standalone",
|
|
|
|
:because => "gpgme picks it up during compile & fails to build"
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2009-10-15 19:04:16 +00:00
|
|
|
def install
|
2014-11-17 05:48:10 +00:00
|
|
|
# Check these inreplaces with each release.
|
|
|
|
# At some point GnuPG will pull the trigger on moving to GPG2 by default.
|
|
|
|
inreplace "tests/gpg/Makefile.in", "GPG = gpg", "GPG = gpg2"
|
|
|
|
inreplace "src/gpgme-config.in", "@GPG@", "#{Formula["gnupg2"].opt_prefix}/bin/gpg2"
|
|
|
|
inreplace "src/gpgme-config.in", "@GPGSM@", "#{Formula["gnupg2"].opt_prefix}/bin/gpgsm"
|
|
|
|
|
2011-10-02 20:10:22 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-12-18 05:06:57 +00:00
|
|
|
"--prefix=#{prefix}",
|
2014-11-17 05:48:10 +00:00
|
|
|
"--enable-static"
|
2011-07-04 23:10:09 +00:00
|
|
|
system "make"
|
2014-11-17 05:48:10 +00:00
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "#{Formula["gnupg2"].opt_prefix}/bin/gpg2", shell_output("#{bin}/gpgme-config --get-gpg").strip
|
2009-10-15 19:04:16 +00:00
|
|
|
end
|
|
|
|
end
|