homebrew-core/Formula/skipfish.rb
Jonathan Wilkins a75262c041 skipfish 2.10
Closes Homebrew/homebrew#17449.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-30 20:36:27 -08:00

35 lines
1.1 KiB
Ruby

require 'formula'
class Skipfish < Formula
homepage 'http://code.google.com/p/skipfish/'
url 'http://skipfish.googlecode.com/files/skipfish-2.10b.tgz'
sha1 '2564162a13d02f8310eef5edcbaf74ed6043be99'
depends_on 'libidn'
def install
ENV.append "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
chmod 0755, "src/config.h" # Not writeable in the tgz. Lame.
inreplace "src/config.h",
"#define ASSETS_DIR \"assets\"",
"#define ASSETS_DIR \"#{libexec}/assets\""
system 'make'
bin.install 'skipfish'
libexec.install %w(assets dictionaries config signatures)
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.
Use this command to print usage information:
skipfish -h
EOS
end
end