diff options
| author | Sean Escriva | 2011-11-13 17:54:49 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-09 06:50:04 -0800 |
| commit | 0097f90693828738c411ed9ccb02d9eb10c80c0b (patch) | |
| tree | 6042a869d07ee6719c47bf9f43ca979f4fad0fa9 /Library/Formula/ispell.rb | |
| parent | 4931e5acc3eeee723546108e9402bcfddc09b286 (diff) | |
| download | homebrew-0097f90693828738c411ed9ccb02d9eb10c80c0b.tar.bz2 | |
ispell 3.3.02
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ispell.rb')
| -rw-r--r-- | Library/Formula/ispell.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/ispell.rb b/Library/Formula/ispell.rb new file mode 100644 index 000000000..342e5a9ed --- /dev/null +++ b/Library/Formula/ispell.rb @@ -0,0 +1,42 @@ +require 'formula' + +class Ispell < Formula + homepage 'http://lasr.cs.ucla.edu/geoff/ispell.html' + url 'http://www.lasr.cs.ucla.edu/geoff/tars/ispell-3.3.02.tar.gz' + md5 '12087d7555fc2b746425cd167af480fe' + + skip_clean :all + + def install + ENV.deparallelize + ENV.no_optimization + + # No configure script, so do this all manually + cp "local.h.macos", "local.h" + chmod 0644, "local.h" + inreplace "local.h" do |s| + s.gsub! '/usr/local', prefix + s.gsub! '/man/man', '/share/man/man' + end + + chmod 0644, "correct.c" + inreplace "correct.c", "getline", "getline_ispell" + + system "make config.sh" + chmod 0644, "config.sh" + inreplace "config.sh" do |s| + s.gsub! '/usr/share/dict', "#{share}/dict" + s.gsub! /yacc/, "/usr/bin/yacc" + end + + lib.mkpath + system "make all" + system "make install" + end + + def test + %w{ buildhash defmt-c defmt-sh findaffix icombine ijoin ispell munchlist tryaffix}.each do |f| + system "test -x #{bin}/#{f}" + end + end +end |
