forked from Homebrew/legacy-homebrew
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes Homebrew#38905. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
0f10922
commit c6ecda6
Showing
1 changed file
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |