homebrew-core/Formula/openssl.rb

41 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Openssl < Formula
homepage 'http://openssl.org'
2013-02-11 21:34:57 +00:00
url 'http://openssl.org/source/openssl-1.0.1e.tar.gz'
mirror 'http://mirrors.ibiblio.org/openssl/source/openssl-1.0.1e.tar.gz'
2013-02-11 21:34:57 +00:00
sha256 'f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3'
2011-03-16 05:01:31 +00:00
keg_only :provided_by_osx,
"The OpenSSL provided by OS X is too old for some software."
def install
2012-04-18 17:00:17 +00:00
args = %W[./Configure
--prefix=#{prefix}
--openssldir=#{etc}/openssl
zlib-dynamic
shared
]
if MacOS.prefer_64_bit?
args << "darwin64-x86_64-cc" << "enable-ec_nistp_64_gcc_128"
else
args << "darwin-i386-cc"
end
system "perl", *args
ENV.deparallelize # Parallel compilation fails
system "make"
system "make", "test"
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
end
def caveats; <<-EOS.undent
To install updated CA certs from Mozilla.org:
brew install curl-ca-bundle
EOS
end
end