2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openssl < Formula
|
2010-02-16 07:19:53 +00:00
|
|
|
homepage 'http://www.openssl.org'
|
2012-03-11 20:04:03 +00:00
|
|
|
url 'http://www.openssl.org/source/openssl-0.9.8s.tar.gz'
|
2012-01-05 05:37:36 +00:00
|
|
|
sha1 'a7410b0991f37e125bf835dfd1315822fca64d56'
|
2010-02-16 07:19:53 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
2011-06-05 16:33:16 +00:00
|
|
|
"The OpenSSL provided by Leopard (0.9.7) 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"
|
|
|
|
system "make test"
|
2012-01-05 05:37:36 +00:00
|
|
|
system "make install MANDIR=#{man} MANSUFFIX=ssl"
|
2010-02-16 07:19:53 +00:00
|
|
|
end
|
|
|
|
end
|