From c7b5dc336c66c08dacce0f16bfbf4c1ff6e4142f Mon Sep 17 00:00:00 2001 From: ryanrms Date: Tue, 22 Apr 2014 20:35:04 -0600 Subject: [PATCH] mpdviz 0.4.3 mpdviz is a terminal visualizer for the music player daemon (mpd). Closes Homebrew/homebrew#28628. Signed-off-by: Misty De Meo --- Formula/mpdviz.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/mpdviz.rb diff --git a/Formula/mpdviz.rb b/Formula/mpdviz.rb new file mode 100644 index 0000000000..1ae934a8e3 --- /dev/null +++ b/Formula/mpdviz.rb @@ -0,0 +1,21 @@ +require "formula" + +class Mpdviz < Formula + homepage "https://github.com/neeee/mpdviz" + url "http://github.com/neeee/mpdviz/archive/0.4.3.tar.gz" + sha1 "7923a818155c9fc413e483dcb1b3964ab00e5ded" + + depends_on "pkg-config" => :build + depends_on "go" => :build + depends_on "fftw" + + def install + ENV["GOPATH"] = buildpath + system "go", "get", "github.com/neeee/go-fftw" + system "go", "get", "github.com/neeee/pflag" + system "go", "get", "github.com/neeee/termbox-go" + system "go", "build", "-o", "mpdviz" + bin.install "mpdviz" + end + +end