2014-12-09 09:31:06 +00:00
|
|
|
class Queequeg < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "English grammar checker for non-native speakers"
|
2014-12-09 09:31:06 +00:00
|
|
|
homepage "http://queequeg.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/queequeg/queequeg/queequeg-0.91/queequeg-0.91.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "44e2f2bb8b68d08b7ee95ece24cefeeea8ec6ff9150851922015b73fc8908136"
|
2014-12-09 09:31:06 +00:00
|
|
|
|
2014-12-09 13:28:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "865d487cdd7f447eee5cc102b2d5f79efdc1fb9e" => :yosemite
|
|
|
|
sha1 "c088cb0e9a0ddc16c113fc8ff41446376d7f755c" => :mavericks
|
|
|
|
sha1 "8cc2f12a1c395d8e1693f5ed6b37b94307968541" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-12-09 09:31:06 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "wordnet"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "dict", "WORDNETDICT=#{Formula["wordnet"].opt_prefix}/dict"
|
|
|
|
|
2014-12-09 15:56:49 +00:00
|
|
|
libexec.install "abstfilter.py", "constraint.py", "convdict.py",
|
2014-12-09 09:31:06 +00:00
|
|
|
"dictionary.py", "document.py",
|
|
|
|
"grammarerror.py", "markupbase_rev.py", "output.py",
|
|
|
|
"postagfix.py", "pstring.py", "qq", "regpat.py",
|
2014-12-09 15:56:49 +00:00
|
|
|
"sentence.py", "sgmllib_rev.py", "texparser.py",
|
|
|
|
"unification.py"
|
|
|
|
|
2014-12-09 09:31:06 +00:00
|
|
|
if File.exist? "dict.cdb"
|
|
|
|
libexec.install "dict.cdb"
|
|
|
|
else
|
|
|
|
libexec.install "dict.txt"
|
|
|
|
end
|
2014-12-09 15:56:49 +00:00
|
|
|
|
2014-12-09 09:31:06 +00:00
|
|
|
bin.write_exec_script "#{libexec}/qq"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"filename").write "This is a test."
|
|
|
|
system "#{bin}/qq", "#{testpath}/filename"
|
|
|
|
end
|
|
|
|
end
|