nmap requires newer openssl on Leopard

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
javallone 2011-02-06 13:26:23 -05:00 committed by Adam Vandenberg
parent 338a559dda
commit ffc6c43cae

View file

@ -5,11 +5,21 @@ class Nmap <Formula
homepage 'http://nmap.org/5/'
md5 'a4df96e52cb52a1bbe76caace5f21388'
# namp needs newer version of openssl on Leopard
depends_on "openssl" if MACOS_VERSION < 10.6
def install
fails_with_llvm
ENV.deparallelize
system "./configure", "--prefix=#{prefix}", "--without-zenmap"
args = ["--prefix=#{prefix}", "--without-zenmap"]
if MACOS_VERSION < 10.6
openssl = Formula.factory('openssl')
args << "--with-openssl=#{openssl.prefix}"
end
system "./configure", *args
system "make" # seperate steps required otherwise the build fails
system "make install"
end