New formula: eSpeak
Closes Homebrew/homebrew#31292. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
5e9b5382be
commit
a7c006e28b
1 changed files with 22 additions and 0 deletions
22
Formula/espeak.rb
Normal file
22
Formula/espeak.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
require "formula"
|
||||
|
||||
class Espeak < Formula
|
||||
homepage "http://espeak.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/espeak/espeak/espeak-1.48/espeak-1.48.04-source.zip"
|
||||
sha1 "b22c0361885d05e61d98ecedca0a4926ea2fb2ad"
|
||||
|
||||
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
|
Loading…
Reference in a new issue