2014-04-23 02:35:04 +00:00
|
|
|
require "formula"
|
2014-06-03 06:33:19 +00:00
|
|
|
require "language/go"
|
2014-04-23 02:35:04 +00:00
|
|
|
|
|
|
|
class Mpdviz < Formula
|
2014-09-06 06:04:42 +00:00
|
|
|
homepage "https://github.com/lucy/mpdviz"
|
|
|
|
url "http://github.com/lucy/mpdviz/archive/0.4.6.tar.gz"
|
|
|
|
sha1 "9b819f1e1a54ef86872d9ece167e7d1f0a337899"
|
2014-04-23 02:35:04 +00:00
|
|
|
|
2014-09-06 06:04:42 +00:00
|
|
|
go_resource "github.com/lucy/go-fftw" do
|
|
|
|
url "https://github.com/lucy/go-fftw.git",
|
2014-06-03 06:33:19 +00:00
|
|
|
:revision => "37bfa0d3053b133f7067e9524611a7a963294124"
|
|
|
|
end
|
|
|
|
|
2014-09-06 06:04:42 +00:00
|
|
|
go_resource "github.com/lucy/pflag" do
|
|
|
|
url "https://github.com/lucy/pflag.git",
|
|
|
|
:revision => "20db95b725d76759ba16e25ae6ae2ec67bf45216"
|
2014-06-03 06:33:19 +00:00
|
|
|
end
|
|
|
|
|
2014-09-06 06:04:42 +00:00
|
|
|
go_resource "github.com/lucy/termbox-go" do
|
|
|
|
url "https://github.com/lucy/termbox-go.git",
|
|
|
|
:revision => "a09edf97f26bd0a461d4660b5322236ecf9d4397"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/mattn/go-runewidth" do
|
|
|
|
url "https://github.com/mattn/go-runewidth.git",
|
|
|
|
:revision => "36f63b8223e701c16f36010094fb6e84ffbaf8e0"
|
2014-06-03 06:33:19 +00:00
|
|
|
end
|
|
|
|
|
2014-04-23 02:35:04 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "fftw"
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2014-06-03 06:33:19 +00:00
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
|
|
|
2014-04-23 02:35:04 +00:00
|
|
|
system "go", "build", "-o", "mpdviz"
|
|
|
|
bin.install "mpdviz"
|
|
|
|
end
|
|
|
|
end
|