2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openssl < Formula
|
2012-01-05 05:37:36 +00:00
|
|
|
url 'http://www.openssl.org/source/openssl-0.9.8s.tar.gz'
|
|
|
|
version '0.9.8s'
|
2010-02-16 07:19:53 +00:00
|
|
|
homepage 'http://www.openssl.org'
|
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
|
|
|
|
system "./config", "--prefix=#{prefix}",
|
2012-01-05 05:37:36 +00:00
|
|
|
"--openssldir=#{etc}/openssl",
|
2010-02-16 07:19:53 +00:00
|
|
|
"zlib-dynamic", "shared"
|
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
|
2011-06-05 16:33:16 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Note that the libraries built tend to be 32-bit only, even on Snow Leopard.
|
|
|
|
EOS
|
|
|
|
end
|
2010-02-16 07:19:53 +00:00
|
|
|
end
|