-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathespeak-ng.rb
36 lines (31 loc) · 1.17 KB
/
espeak-ng.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# typed: false
# frozen_string_literal: true
class EspeakNg < Formula
desc "Multi-lingual software speech synthesizer"
homepage "https://github.com/espeak-ng/espeak-ng"
url "https://github.com/espeak-ng/espeak-ng/archive/1.50.tar.gz"
sha256 "5ce9f24ee662b5822a4acc45bed31425e70d7c50707b96b6c1603a335c7759fa"
head "https://github.com/danielbair/espeak-ng.git"
bottle do
root_url "https://github.com/danielbair/homebrew-tap/releases/download/bottles"
rebuild 1
sha256 yosemite: "5b7aa73d9fbb660d3aebf3e6d465d4fe949c0030454c2662007c6bc47c1cfde6"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "kramdown" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "ronn" => :build
depends_on "danielbair/tap/pcaudiolib"
depends_on "danielbair/tap/sonic-speech"
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}", "--with-extdict-ru", "--with-extdict-zh", "--with-extdict-zhy"
system "make", "-j1", "src/espeak-ng", "src/speak-ng", "en"
system "make", "-j1", "install"
end
test do
system "espeak-ng", "Testing.", "-w", "test.wav"
end
end