julius 4.4.2.1

deparallelize the build

Closes #17862.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-09-09 02:34:43 -07:00
parent 1f792a045d
commit cb0e57584a

View file

@ -1,8 +1,8 @@
class Julius < Formula
desc "Two-pass large vocabulary continuous speech recognition engine"
homepage "https://julius.osdn.jp"
url "http://dl.osdn.jp/julius/60273/julius-4.3.1.tar.gz"
sha256 "4bf77c7b91f4bb0686c375c70bd4f2077e7de7db44f60716af9f3660f65a6253"
url "https://github.com/julius-speech/julius/archive/v4.4.2.1.tar.gz"
sha256 "784730d63bcd9e9e2ee814ba8f79eef2679ec096300e96400e91f6778757567f"
bottle do
cellar :any
@ -15,16 +15,28 @@ class Julius < Formula
depends_on "libsndfile"
# Upstream PR from 9 Sep 2017 "ensure pkgconfig directory exists during
# installation"
patch do
url "https://github.com/julius-speech/julius/pull/73.patch?full_index=1"
sha256 "b1d2d233a7f04f0b8f1123e1de731afd618b996d1f458ea8f53b01c547864831"
end
def install
# Upstream issue "4.4.2.1 parallelized build fails"
# Reported 10 Sep 2017 https://github.com/julius-speech/julius/issues/74
ENV.deparallelize
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--mandir=#{man}",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
shell_output("#{bin}/julius.dSYM --help", 1)
shell_output("#{bin}/julius --help", 1)
end
end