2014-08-02 00:49:35 +00:00
|
|
|
class Espeak < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Text to speech, software speech synthesizer"
|
2014-08-02 00:49:35 +00:00
|
|
|
homepage "http://espeak.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/espeak/espeak/espeak-1.48/espeak-1.48.04-source.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659"
|
2014-08-02 00:49:35 +00:00
|
|
|
|
2014-08-02 16:05:48 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "1b9b6c5acb2b98aa068f4b54b91ac463c07081d1" => :mavericks
|
|
|
|
sha1 "83f5b1428558b5de444b44f53aa1f8b52dab9460" => :mountain_lion
|
|
|
|
sha1 "a86e2086deea0f1bee08eef53ef739bd633ce2c9" => :lion
|
|
|
|
end
|
|
|
|
|
2014-08-02 00:49:35 +00:00
|
|
|
depends_on "portaudio"
|
|
|
|
|
|
|
|
def install
|
|
|
|
share.install "espeak-data"
|
|
|
|
cd "src" do
|
|
|
|
rm "portaudio.h"
|
|
|
|
system "make", "speak", "DATADIR=#{share}/espeak-data", "PREFIX=#{prefix}"
|
|
|
|
bin.install "speak" => "espeak"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/espeak", "This is a test for Espeak.", "-w", "out.wav"
|
|
|
|
end
|
|
|
|
end
|