diff options
| author | Alex Dunn | 2015-04-21 10:48:21 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-22 20:50:53 +0100 |
| commit | c6ecda6c70423dd778f66f8204437865c53d979f (patch) | |
| tree | 2367e4d0f10b27b0b533d1c1d25f28020f1876d7 /Library | |
| parent | 0f10922bc0ca7ec9924eb4d2d2ab6a2d74239223 (diff) | |
| download | homebrew-c6ecda6c70423dd778f66f8204437865c53d979f.tar.bz2 | |
ezstream 0.6.0
Closes #38905.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ezstream.rb | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/Library/Formula/ezstream.rb b/Library/Formula/ezstream.rb index 1e1bfc07b..45c92b341 100644 --- a/Library/Formula/ezstream.rb +++ b/Library/Formula/ezstream.rb @@ -1,20 +1,34 @@ -require 'formula' - class Ezstream < Formula - homepage 'http://www.icecast.org/ezstream.php' - url 'http://downloads.xiph.org/releases/ezstream/ezstream-0.5.6.tar.gz' - sha1 'f9d3ee5a2f81d156685ffbfc59b556c63afcca83' + homepage "http://www.icecast.org/ezstream.php" + url "http://downloads.xiph.org/releases/ezstream/ezstream-0.6.0.tar.gz" + sha256 "f86eb8163b470c3acbc182b42406f08313f85187bd9017afb8b79b02f03635c9" + + depends_on "pkg-config" => :build + depends_on "libvorbis" + depends_on "libshout" + depends_on "theora" + depends_on "speex" + depends_on "libogg" - depends_on 'pkg-config' => :build - depends_on 'libvorbis' - depends_on 'libshout' - depends_on 'theora' - depends_on 'speex' - depends_on 'libogg' + resource "stream" do + url "http://dir.xiph.org/listen/5200/listen.m3u" + sha256 "ff44097742f92b73a63332760585217eb357389eea7f92465ff769043d365aea" + end def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + system "make", "install" + end + + test do + resource("stream").stage do + stream = fork do + system bin/"ezstream", "-s", "listen.m3u" + end + sleep 5 + Process.kill("TERM", stream) + end end end |
