diff options
| -rw-r--r-- | Library/Formula/openfst.rb | 18 | ||||
| -rw-r--r-- | Library/Formula/opengrm-ngram.rb | 39 | ||||
| -rw-r--r-- | Library/Homebrew/tap_migrations.rb | 2 |
3 files changed, 2 insertions, 57 deletions
diff --git a/Library/Formula/openfst.rb b/Library/Formula/openfst.rb deleted file mode 100644 index 1cb83f064..000000000 --- a/Library/Formula/openfst.rb +++ /dev/null @@ -1,18 +0,0 @@ -require "formula" - -class Openfst < Formula - homepage 'http://www.openfst.org/' - url "http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.4.1.tar.gz" - sha1 "2e5ff58c7c70e681bced49206bd81748eeb7106d" - - needs :cxx11 - - def install - ENV.cxx11 - system "./configure", "--prefix=#{prefix}", - "--disable-dependency-tracking", - "--enable-far", - "--enable-pdt" - system "make install" - end -end diff --git a/Library/Formula/opengrm-ngram.rb b/Library/Formula/opengrm-ngram.rb deleted file mode 100644 index 819cf6355..000000000 --- a/Library/Formula/opengrm-ngram.rb +++ /dev/null @@ -1,39 +0,0 @@ -require "formula" - -class OpengrmNgram < Formula - homepage "http://www.openfst.org/twiki/bin/view/GRM/NGramLibrary" - url "http://openfst.cs.nyu.edu/twiki/pub/GRM/NGramDownload/opengrm-ngram-1.2.1.tar.gz" - sha1 "827286a36b2cbac5bfeecebbf946e2cc0804c1e1" - - depends_on "openfst" - - resource "earnest" do - url "http://www.openfst.org/twiki/pub/GRM/NGramQuickTour/earnest.txt" - sha1 "122c72f34a41ecb5e21102724938756fdfe349ec" - end - - needs :cxx11 - - def install - ENV.cxx11 - system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" - end - - test do - resource("earnest").stage do - fname = "earnest.txt" - # tests using normalized The Importance of Being Earnest, based on - # examples from the OpenGRM "NGram quick tour" page... - system bin/"ngramsymbols", fname, "e.syms" - system bin/"farcompilestrings", "-symbols=e.syms", - "-keep_symbols=1", - fname, "e.far" - system bin/"ngramcount", "-order=5", "e.far", "e.cnts" - system bin/"ngrammake", "e.cnts", "e.mod" - system bin/"ngramshrink", "-method=relative_entropy", "e.mod", "e.pru" - system bin/"ngramprint", "--ARPA", "e.mod" - system bin/"ngraminfo", "e.mod" - end - end -end diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb index 94b957839..6f354fda2 100644 --- a/Library/Homebrew/tap_migrations.rb +++ b/Library/Homebrew/tap_migrations.rb @@ -45,6 +45,8 @@ TAP_MIGRATIONS = { "nlopt" => "homebrew/science", "octave" => "homebrew/science", "opencv" => "homebrew/science", + "openfst" => "homebrew/science", + "opengrm-ngram" => "homebrew/science", "pan" => "homebrew/boneyard", "pjsip" => "homebrew/boneyard", "pocl" => "homebrew/science", |
