aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-06-12 07:04:36 -0700
committerAdam Vandenberg2012-06-12 07:04:36 -0700
commitcf39e55eb025bbdad7d226f1476f7212f1dffde6 (patch)
tree8d72283080659543c1724e4348094991792f7c5c /Library
parent78f8448fc52c960334259c0a29f831852787b935 (diff)
downloadhomebrew-cf39e55eb025bbdad7d226f1476f7212f1dffde6.tar.bz2
skipfish: make config.h writeable before modifying
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/skipfish.rb9
1 files changed, 5 insertions, 4 deletions
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