2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Openssl < Formula
|
2011-05-22 08:17:29 +00:00
|
|
|
url 'http://www.openssl.org/source/openssl-0.9.8r.tar.gz'
|
|
|
|
version '0.9.8r'
|
2010-02-16 07:19:53 +00:00
|
|
|
homepage 'http://www.openssl.org'
|
2011-05-22 08:17:29 +00:00
|
|
|
md5 '0352932ea863bc02b056cda7c9ac5b79'
|
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}",
|
|
|
|
"--openssldir=#{etc}",
|
|
|
|
"zlib-dynamic", "shared"
|
2011-06-05 16:33:16 +00:00
|
|
|
ENV.j1 # Parallel compilation fails
|
2010-02-16 07:19:53 +00:00
|
|
|
system "make"
|
|
|
|
system "make test"
|
|
|
|
system "make install"
|
|
|
|
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
|