Files
tigerbrew/Library/Formula/nmap.rb
T
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

23 lines
605 B
Ruby

require 'formula'
class Nmap <Formula
url 'http://nmap.org/dist/nmap-5.21.tar.bz2'
homepage 'http://nmap.org/5/'
md5 'f77fa51d89ab27d35e5cd87bb086b858'
def install
fails_with_llvm
ENV.deparallelize
# There are reports that this is needed for sudo. See:
# http://github.com/mxcl/homebrew/issues/issue/1270
ENV['CFLAGS'] = "-m32 -O2"
ENV['LDFLAGS'] = "-m32 -O2"
ENV['CXXFLAGS'] = "-m32 -O2"
system "./configure", "--prefix=#{prefix}", "--without-zenmap"
system "make" # seperate steps required otherwise the build fails
system "make install"
end
end