blob: d773002288f8090ce8fe16ef3ffa98a0a887f766 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | require "formula"
require "language/go"
class Mpdviz < Formula
  homepage "https://github.com/lucy/mpdviz"
  url "http://github.com/lucy/mpdviz/archive/0.4.6.tar.gz"
  sha1 "9b819f1e1a54ef86872d9ece167e7d1f0a337899"
  go_resource "github.com/lucy/go-fftw" do
    url "https://github.com/lucy/go-fftw.git",
      :revision => "37bfa0d3053b133f7067e9524611a7a963294124"
  end
  go_resource "github.com/lucy/pflag" do
    url "https://github.com/lucy/pflag.git",
      :revision => "20db95b725d76759ba16e25ae6ae2ec67bf45216"
  end
  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"
  end
  depends_on "pkg-config" => :build
  depends_on "go" => :build
  depends_on "fftw"
  def install
    ENV["GOPATH"] = buildpath
    Language::Go.stage_deps resources, buildpath/"src"
    system "go", "build", "-o", "mpdviz"
    bin.install "mpdviz"
  end
end
 |