Skip to content

Commit

Permalink
gpg-agent 2.0.30
Browse files Browse the repository at this point in the history
Closes #55.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
DomT4 committed Apr 5, 2016
1 parent 5a80674 commit 9a2ff1c
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions Formula/gpg-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class GpgAgent < Formula
desc "GPG key agent"
homepage "https://www.gnupg.org/"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.29.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.29.tar.bz2"
sha256 "68ed6b386ba78425b05a60e8ee22785ff0fef190bdc6f1c612f19a58819d4ac9"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.30.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.30.tar.bz2"
sha256 "e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71"

bottle do
sha256 "9bebbc754c440be3ac5eada58600a2843d7922aed2a3c68a3329b5a94fbf6871" => :el_capitan
Expand All @@ -22,14 +22,17 @@ class GpgAgent < Formula
depends_on "pth"
depends_on "pinentry"

# Adjust package name to fit our scheme of packaging both
# gnupg 1.x and 2.x, and gpg-agent separately
patch :DATA

def install
# don't use Clang's internal stdint.h
ENV["gl_cv_absolute_stdint_h"] = "#{MacOS.sdk_path}/usr/include/stdint.h"

# Adjust package name to fit our scheme of packaging both
# gnupg 1.x and 2.x, and gpg-agent separately
inreplace "configure" do |s|
s.gsub! "PACKAGE_NAME='gnupg'", "PACKAGE_NAME='gpg-agent'"
s.gsub! "PACKAGE_TARNAME='gnupg'", "PACKAGE_TARNAME='gpg-agent'"
end

system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-agent-only",
Expand All @@ -48,20 +51,3 @@ def caveats; <<-EOS.undent
system "#{bin}/gpg-agent", "--help"
end
end

__END__
diff --git a/configure b/configure
index c022805..96ea7ed 100755
--- a/configure
+++ b/configure
@@ -578,8 +578,8 @@ MFLAGS=
MAKEFLAGS=

# Identity of this package.
-PACKAGE_NAME='gnupg'
-PACKAGE_TARNAME='gnupg'
+PACKAGE_NAME='gpg-agent'
+PACKAGE_TARNAME='gpg-agent'
PACKAGE_VERSION='2.0.29'
PACKAGE_STRING='gnupg 2.0.29'
PACKAGE_BUGREPORT='http://bugs.gnupg.org'

0 comments on commit 9a2ff1c

Please sign in to comment.