aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-17 05:48:10 +0000
committerMike McQuaid2014-11-18 08:43:35 +0000
commit62c3e0640b5d1276e6e27d034843b098973ceb59 (patch)
treef62c79519cbdd868cdfa0e667dfd13b286b1bd69 /Library/Formula
parent2f2137f18e1a2ad92b3bebe5d05f38e1e93c8549 (diff)
downloadhomebrew-62c3e0640b5d1276e6e27d034843b098973ceb59.tar.bz2
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gpgme.rb36
1 files changed, 22 insertions, 14 deletions
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