Skip to content

Commit

Permalink
gnupg2: port "8192 bit key support" option from gnupg
Browse files Browse the repository at this point in the history
Closes Homebrew#21291.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
mtigas authored and adamv committed Jul 18, 2013
1 parent 0e37f69 commit 27b4586
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Formula/gnupg2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class Gnupg2 < Formula
url 'ftp:https://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'
Expand All @@ -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"
Expand Down

0 comments on commit 27b4586

Please sign in to comment.