2011-11-14 01:54:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ispell < Formula
|
|
|
|
homepage 'http://lasr.cs.ucla.edu/geoff/ispell.html'
|
2012-11-14 22:49:49 +00:00
|
|
|
url 'http://ftp.de.debian.org/debian/pool/main/i/ispell/ispell_3.3.02.orig.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c0d98e1af3afb8e0b642717c03439ff8881e3d60'
|
2011-11-14 01:54:49 +00:00
|
|
|
|
|
|
|
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'
|
2013-08-21 19:59:19 +00:00
|
|
|
s.gsub! '/lib', '/lib/ispell'
|
2011-11-14 01:54:49 +00:00
|
|
|
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"
|
2013-08-09 16:25:27 +00:00
|
|
|
s.gsub! /yacc/, MacOS.locate('yacc')
|
2011-11-14 01:54:49 +00:00
|
|
|
end
|
|
|
|
|
2013-08-21 19:59:19 +00:00
|
|
|
(lib/'ispell').mkpath
|
2011-11-14 01:54:49 +00:00
|
|
|
system "make all"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|