2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openssl < Formula
|
2012-04-23 08:09:56 +00:00
|
|
|
homepage 'http://openssl.org'
|
2012-05-10 22:15:31 +00:00
|
|
|
url 'http://openssl.org/source/openssl-1.0.1c.tar.gz'
|
|
|
|
sha256 '2a9eb3cd4e8b114eb9179c0d3884d61658e7d8e8bf4984798a5f5bd48e325ebe'
|
2010-02-16 07:19:53 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
2012-04-17 09:08:58 +00:00
|
|
|
"The OpenSSL provided by OS X is too old for some software."
|
2010-10-17 15:52:14 +00:00
|
|
|
|
2010-02-16 07:19:53 +00:00
|
|
|
def install
|
2012-04-18 17:00:17 +00:00
|
|
|
args = %W[./Configure
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--openssldir=#{etc}/openssl
|
|
|
|
zlib-dynamic
|
|
|
|
shared
|
|
|
|
]
|
2012-04-17 08:34:14 +00:00
|
|
|
|
|
|
|
args << (MacOS.prefer_64_bit? ? "darwin64-x86_64-cc" : "darwin-i386-cc")
|
|
|
|
|
|
|
|
system "perl", *args
|
2011-07-22 00:09:26 +00:00
|
|
|
|
2012-01-05 05:37:36 +00:00
|
|
|
ENV.deparallelize # Parallel compilation fails
|
2010-02-16 07:19:53 +00:00
|
|
|
system "make"
|
2012-04-17 09:08:58 +00:00
|
|
|
system "make", "test"
|
|
|
|
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
|
2010-02-16 07:19:53 +00:00
|
|
|
end
|
|
|
|
end
|