88779ade49
Closes Homebrew/homebrew#14653.
36 lines
867 B
Ruby
36 lines
867 B
Ruby
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'
|
|
sha1 'c0d98e1af3afb8e0b642717c03439ff8881e3d60'
|
|
|
|
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
|
|
end
|