aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike Tigas2013-07-17 14:13:46 -0400
committerAdam Vandenberg2013-07-17 20:43:34 -0700
commit27b4586574b8c29a2f55fbb5d42c322f43fad1f0 (patch)
tree001ce36483d49cdccdd22a8b1542a8fb15cf940d /Library
parent0e37f69ebe6c4f4ef8a0c5e6a33ca06eba9f3838 (diff)
downloadhomebrew-27b4586574b8c29a2f55fbb5d42c322f43fad1f0.tar.bz2
gnupg2: port "8192 bit key support" option from gnupg
Closes #21291. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnupg2.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/gnupg2.rb b/Library/Formula/gnupg2.rb
index 1e8c89b3a..6bf40fe5c 100644
--- a/Library/Formula/gnupg2.rb
+++ b/Library/Formula/gnupg2.rb
@@ -5,6 +5,8 @@ class Gnupg2 < Formula
url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.20.tar.bz2'
sha1 '7ddfefa37ee9da89a8aaa8f9059d251b4cd02562'
+ option '8192', 'Build with support for private keys of up to 8192 bits'
+
depends_on 'libgpg-error'
depends_on 'libgcrypt'
depends_on 'libksba'
@@ -24,6 +26,8 @@ class Gnupg2 < Formula
def patches; DATA; end
def install
+ inreplace 'g10/keygen.c', 'max=4096', 'max=8192' if build.include? '8192'
+
(var/'run').mkpath
ENV['gl_cv_absolute_stdint_h'] = "#{MacOS.sdk_path}/usr/include/stdint.h"