f338083519
Closes Homebrew/homebrew#17882.
35 lines
889 B
Ruby
35 lines
889 B
Ruby
require 'formula'
|
|
|
|
class Openssl < Formula
|
|
homepage 'http://openssl.org'
|
|
url 'http://openssl.org/source/openssl-1.0.1e.tar.gz'
|
|
sha256 'f74f15e8c8ff11aa3d5bb5f276d202ec18d7246e95f961db76054199c69c1ae3'
|
|
|
|
keg_only :provided_by_osx,
|
|
"The OpenSSL provided by OS X is too old for some software."
|
|
|
|
def install
|
|
args = %W[./Configure
|
|
--prefix=#{prefix}
|
|
--openssldir=#{etc}/openssl
|
|
zlib-dynamic
|
|
shared
|
|
]
|
|
|
|
args << (MacOS.prefer_64_bit? ? "darwin64-x86_64-cc" : "darwin-i386-cc")
|
|
|
|
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
|