homebrew-core/Formula/skipfish.rb
2010-04-20 19:50:23 +02:00

35 lines
1,022 B
Ruby

require 'formula'
class Skipfish <Formula
url 'http://skipfish.googlecode.com/files/skipfish-1.32b.tgz'
homepage 'http://code.google.com/p/skipfish/'
md5 '051d56de04999366e10e1f6882d5da3d'
depends_on 'libidn'
def install
ENV.append "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
inreplace "config.h",
"#define ASSETS_DIR \"assets\"",
"#define ASSETS_DIR \"#{libexec}/assets\""
system "make"
bin.install "skipfish"
(libexec+"dictionaries").install Dir["dictionaries/*"]
(libexec+"assets").install Dir["assets/*"]
end
def caveats; <<-EOS.undent
NOTE: Skipfish uses dictionary-based probes and will not run until
you have specified a dictionary for it to use.
Please read #{libexec}/dictionaries/README-FIRST
carefully to make the right choice. This step has a profound impact
on the quality of results later on.
"skipfish -h" prints out usage information.
EOS
end
end