diff options
| author | javallone | 2011-02-06 13:26:23 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-02-06 10:50:47 -0800 |
| commit | 56afd6014c76965bca262f110c4a576ca5b23dda (patch) | |
| tree | b5d359f6600e858408e315819ee096a47d5ab07b /Library/Formula | |
| parent | fbc17db6b56eb42511cff38478527c9363260f75 (diff) | |
| download | homebrew-56afd6014c76965bca262f110c4a576ca5b23dda.tar.bz2 | |
nmap requires newer openssl on Leopard
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/nmap.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/nmap.rb b/Library/Formula/nmap.rb index da4541e93..d7ca3187e 100644 --- a/Library/Formula/nmap.rb +++ b/Library/Formula/nmap.rb @@ -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 |
