From 62c3e0640b5d1276e6e27d034843b098973ceb59 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 17 Nov 2014 05:48:10 +0000 Subject: gpgme 1.5.1 Big version bump for gpgme, and nudges it over to requiring gpg2 rather than gpg. The build documentation for gpgme have been strongly recommending this for quite some time, and MacPorts, Debian and Ubuntu made this change a while back. Closes #34251. Signed-off-by: Mike McQuaid --- Library/Formula/gpgme.rb | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'Library') diff --git a/Library/Formula/gpgme.rb b/Library/Formula/gpgme.rb index da42eb77c..d955266b0 100644 --- a/Library/Formula/gpgme.rb +++ b/Library/Formula/gpgme.rb @@ -1,34 +1,42 @@ -require 'formula' +require "formula" class Gpgme < Formula - homepage 'http://www.gnupg.org/related_software/gpgme/' - url 'ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.4.3.tar.bz2' - sha1 'ffdb5e4ce85220501515af8ead86fd499525ef9a' + homepage "https://www.gnupg.org/related_software/gpgme/" + url "ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.5.1.tar.bz2" + mirror "https://mirrors.kernel.org/debian/pool/main/g/gpgme1.0/gpgme1.0_1.5.1.orig.tar.bz2" + sha1 "a91c258e79acf30ec86a667e07f835e5e79342d8" bottle do - revision 1 sha1 "60d557c728754011a62f4ede0e04ca786bf5b161" => :yosemite sha1 "ae98c80946c947f967d44436717ed492b0f08420" => :mavericks sha1 "9e3d8a25586683f0aeb050b341b38da79ba770d5" => :mountain_lion end - depends_on 'gnupg' - depends_on 'libgpg-error' - depends_on 'libassuan' - depends_on 'pth' + depends_on "gnupg2" + depends_on "libgpg-error" + depends_on "libassuan" + depends_on "pth" fails_with :llvm do build 2334 end def install + # 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" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", - "--enable-static", - "--without-gpgsm", - "--without-gpgconf" + "--enable-static" system "make" - system "make check" - system "make install" + 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 end end -- cgit v1.2.3