homebrew-core/Formula/openssl.rb
2013-02-11 15:34:57 -06:00

28 lines
758 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
end