2014-07-01 03:17:58 +00:00
|
|
|
require "formula"
|
2009-09-01 00:33:33 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gnupg < Formula
|
2014-07-01 03:17:58 +00:00
|
|
|
homepage "http://www.gnupg.org/"
|
|
|
|
url "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.18.tar.bz2"
|
|
|
|
mirror "http://mirror.switch.ch/ftp/mirror/gnupg/gnupg/gnupg-1.4.18.tar.bz2"
|
2014-08-24 19:22:26 +00:00
|
|
|
mirror "ftp://mirror.tje.me.uk/pub/mirrors/ftp.gnupg.org/gnupg/gnupg-1.4.18.tar.bz2"
|
2014-07-01 03:17:58 +00:00
|
|
|
sha1 "41462d1a97f91abc16a0031b5deadc3095ce88ae"
|
2010-11-01 18:26:00 +00:00
|
|
|
|
2014-02-22 22:42:59 +00:00
|
|
|
bottle do
|
2014-07-01 05:57:58 +00:00
|
|
|
sha1 "febc9b5402dbfe8d0dce5a22307e7b694ae0dbfe" => :mavericks
|
|
|
|
sha1 "76952357fe139cefaf22331ee39ef9723a3d11c9" => :mountain_lion
|
|
|
|
sha1 "5972ed0cd1a34fe60313630446ae6cf8cbd95417" => :lion
|
2014-02-22 22:42:59 +00:00
|
|
|
end
|
|
|
|
|
2014-07-01 03:17:58 +00:00
|
|
|
option "8192", "Build with support for private keys of up to 8192 bits"
|
2009-09-01 00:33:33 +00:00
|
|
|
|
2012-10-23 21:32:53 +00:00
|
|
|
def install
|
2014-07-01 03:17:58 +00:00
|
|
|
inreplace "g10/keygen.c", "max=4096", "max=8192" if build.include? "8192"
|
2011-02-10 19:11:09 +00:00
|
|
|
|
2010-10-18 17:40:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-07-01 05:02:09 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-asm"
|
2014-05-14 00:10:11 +00:00
|
|
|
system "make"
|
2009-09-01 00:33:33 +00:00
|
|
|
system "make check"
|
|
|
|
|
2010-07-01 05:02:09 +00:00
|
|
|
# we need to create these directories because the install target has the
|
2009-09-09 14:11:58 +00:00
|
|
|
# dependency order wrong
|
2014-07-01 03:17:58 +00:00
|
|
|
[bin, libexec/"gnupg"].each(&:mkpath)
|
2009-09-01 00:33:33 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|