From cf39e55eb025bbdad7d226f1476f7212f1dffde6 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 12 Jun 2012 07:04:36 -0700 Subject: skipfish: make config.h writeable before modifying --- Library/Formula/skipfish.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Formula/skipfish.rb b/Library/Formula/skipfish.rb index 74f7e3d8b..78de2e0e5 100644 --- a/Library/Formula/skipfish.rb +++ b/Library/Formula/skipfish.rb @@ -10,9 +10,12 @@ class Skipfish < Formula def install ENV.append "CFLAGS", "-I#{HOMEBREW_PREFIX}/include" ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib" + + chmod 0755, "config.h" # Not writeable in the tgz. Lame. inreplace "config.h", "#define ASSETS_DIR \"assets\"", "#define ASSETS_DIR \"#{libexec}/assets\"" + system 'make' bin.install 'skipfish' libexec.install %w(assets dictionaries) @@ -20,15 +23,13 @@ class Skipfish < Formula 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 + 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 -- cgit v1.2.3