homebrew-core/Formula/gpg-agent.rb

66 lines
1.9 KiB
Ruby
Raw Normal View History

class GpgAgent < Formula
desc "GPG key agent"
homepage "https://www.gnupg.org/"
url "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.27.tar.bz2"
mirror "ftp://ftp.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.27.tar.bz2"
sha1 "d065be185f5bac8ea07b210ab7756e79b83b63d4"
2014-07-01 10:48:03 +00:00
bottle do
2015-04-11 16:24:02 +00:00
revision 2
sha256 "0e13cf13842212387b756ee284ecd1a3a8c3c424025368c6dfe30009fd108300" => :yosemite
sha256 "a050658a4ae0c286a08a4ca52324b9f2d2bd85a6e1b8e3d0007d7d8234564e61" => :mavericks
sha256 "c0eb101a549b54f826013c3f4cafe7541669879296cce8b13b1cc0c5a1120ffe" => :mountain_lion
2014-07-01 10:48:03 +00:00
end
depends_on "libgpg-error"
depends_on "libgcrypt"
depends_on "libksba"
depends_on "libassuan"
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
2014-03-19 17:07:52 +00:00
patch :DATA
def install
2014-02-25 06:23:35 +00:00
# don't use Clang's internal stdint.h
ENV["gl_cv_absolute_stdint_h"] = "#{MacOS.sdk_path}/usr/include/stdint.h"
2012-03-17 19:08:07 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-agent-only",
2014-03-06 05:28:31 +00:00
"--with-pinentry-pgm=#{Formula["pinentry"].opt_bin}/pinentry",
"--with-scdaemon-pgm=#{Formula["gnupg2"].opt_libexec}/scdaemon"
2014-12-27 16:01:34 +00:00
system "make", "install"
end
def caveats; <<-EOS.undent
Remember to add "use-standard-socket" to your ~/.gnupg/gpg-agent.conf
file.
EOS
end
2014-12-27 16:01:34 +00:00
test do
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=
2014-12-27 16:01:34 +00:00
# Identity of this package.
-PACKAGE_NAME='gnupg'
-PACKAGE_TARNAME='gnupg'
+PACKAGE_NAME='gpg-agent'
+PACKAGE_TARNAME='gpg-agent'
PACKAGE_VERSION='2.0.27'
PACKAGE_STRING='gnupg 2.0.27'
PACKAGE_BUGREPORT='http://bugs.gnupg.org'