homebrew-core/Formula/espeak.rb

29 lines
947 B
Ruby
Raw Normal View History

class Espeak < Formula
desc "Text to speech, software speech synthesizer"
homepage "http://espeak.sourceforge.net/"
url "https://downloads.sourceforge.net/project/espeak/espeak/espeak-1.48/espeak-1.48.04-source.zip"
sha256 "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659"
2014-08-02 16:05:48 +00:00
bottle do
2015-09-24 05:04:42 +00:00
sha256 "f174e6d33f96be4924ecb4b33c764cffdbc2444ea87a626f150dd80a3d2f6765" => :el_capitan
2014-08-02 16:05:48 +00:00
sha1 "1b9b6c5acb2b98aa068f4b54b91ac463c07081d1" => :mavericks
sha1 "83f5b1428558b5de444b44f53aa1f8b52dab9460" => :mountain_lion
sha1 "a86e2086deea0f1bee08eef53ef739bd633ce2c9" => :lion
end
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