ispell 3.4.00
Closes Homebrew/homebrew#39103. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
8d750c1b6c
commit
29f66f4798
1 changed files with 14 additions and 11 deletions
|
@ -1,9 +1,8 @@
|
|||
require 'formula'
|
||||
|
||||
class Ispell < Formula
|
||||
homepage 'http://lasr.cs.ucla.edu/geoff/ispell.html'
|
||||
url 'http://ftp.de.debian.org/debian/pool/main/i/ispell/ispell_3.3.02.orig.tar.gz'
|
||||
sha1 'c0d98e1af3afb8e0b642717c03439ff8881e3d60'
|
||||
homepage "http://lasr.cs.ucla.edu/geoff/ispell.html"
|
||||
url "http://www.cs.hmc.edu/~geoff/tars/ispell-3.4.00.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/i/ispell/ispell_3.4.00.orig.tar.gz"
|
||||
sha256 "5dc42e458635f218032d3ae929528e5587b1e7247564f0e9f9d77d5ccab7aec2"
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
|
@ -13,9 +12,9 @@ class Ispell < Formula
|
|||
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'
|
||||
s.gsub! '/lib', '/lib/ispell'
|
||||
s.gsub! "/usr/local", prefix
|
||||
s.gsub! "/man/man", "/share/man/man"
|
||||
s.gsub! "/lib", "/lib/ispell"
|
||||
end
|
||||
|
||||
chmod 0644, "correct.c"
|
||||
|
@ -25,8 +24,12 @@ class Ispell < Formula
|
|||
chmod 0644, "config.sh"
|
||||
inreplace "config.sh", "/usr/share/dict", "#{share}/dict"
|
||||
|
||||
(lib/'ispell').mkpath
|
||||
system "make all"
|
||||
system "make install"
|
||||
(lib/"ispell").mkpath
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_equal "BOTHER BOTHE/R BOTH/R",
|
||||
`echo BOTHER | #{bin}/ispell -c`.chomp
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue