2010-04-20 02:03:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GpgAgent < Formula
|
|
|
|
homepage 'http://www.gnupg.org/'
|
2013-10-06 19:23:28 +00:00
|
|
|
url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.22.tar.bz2'
|
|
|
|
sha1 '9ba9ee288e9bf813e0f1e25cbe06b58d3072d8b8'
|
2010-04-20 02:03:22 +00:00
|
|
|
|
|
|
|
depends_on 'libgpg-error'
|
|
|
|
depends_on 'libgcrypt'
|
|
|
|
depends_on 'libksba'
|
|
|
|
depends_on 'libassuan'
|
|
|
|
depends_on 'pth'
|
|
|
|
depends_on 'pinentry'
|
|
|
|
|
2012-03-28 03:56:20 +00:00
|
|
|
# Adjust package name to fit our scheme of packaging both
|
|
|
|
# gnupg 1.x and 2.x, and gpg-agent separately
|
2012-03-17 19:08:07 +00:00
|
|
|
def patches; DATA; end
|
2011-12-17 19:43:13 +00:00
|
|
|
|
2010-04-20 02:03:22 +00:00
|
|
|
def install
|
2011-12-17 19:43:13 +00:00
|
|
|
# so we don't use Clang's internal stdint.h
|
2013-07-01 12:06:55 +00:00
|
|
|
ENV['gl_cv_absolute_stdint_h'] = "#{MacOS.sdk_path}/usr/include/stdint.h"
|
2011-12-17 19:43:13 +00:00
|
|
|
|
2012-03-17 19:08:07 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-05-23 20:21:40 +00:00
|
|
|
"--enable-agent-only",
|
2013-07-31 00:20:54 +00:00
|
|
|
"--with-pinentry-pgm=#{Formula.factory('pinentry').opt_prefix}/bin/pinentry",
|
|
|
|
"--with-scdaemon-pgm=#{Formula.factory('gnupg2').opt_prefix}/libexec/scdaemon"
|
2010-04-20 02:03:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2011-12-17 19:43:13 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
2013-10-06 19:23:28 +00:00
|
|
|
index e5479af..782299d 100755
|
2011-12-17 19:43:13 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2013-06-03 23:53:27 +00:00
|
|
|
@@ -578,8 +578,8 @@ MFLAGS=
|
2011-12-17 19:43:13 +00:00
|
|
|
MAKEFLAGS=
|
|
|
|
|
|
|
|
# Identity of this package.
|
|
|
|
-PACKAGE_NAME='gnupg'
|
|
|
|
-PACKAGE_TARNAME='gnupg'
|
|
|
|
+PACKAGE_NAME='gpg-agent'
|
|
|
|
+PACKAGE_TARNAME='gpg-agent'
|
2013-10-06 19:23:28 +00:00
|
|
|
PACKAGE_VERSION='2.0.22'
|
|
|
|
PACKAGE_STRING='gnupg 2.0.22'
|
2011-12-17 19:43:13 +00:00
|
|
|
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
|