diff options
| author | Misty De Meo | 2014-06-02 23:33:19 -0700 |
|---|---|---|
| committer | Misty De Meo | 2014-09-01 19:56:43 -0700 |
| commit | 53fa8a42248c31759d71bd9250e8c5ca327bc7ff (patch) | |
| tree | 365492d3f152b82c6dbf4567809d36c25b3af92d /Library | |
| parent | 70cfa78f18a1806e53b44374c0362dc02439425f (diff) | |
| download | homebrew-53fa8a42248c31759d71bd9250e8c5ca327bc7ff.tar.bz2 | |
mpdviz: model deps as resources
Closes #29820.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mpdviz.rb | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Library/Formula/mpdviz.rb b/Library/Formula/mpdviz.rb index 1ae934a8e..7f3cb703c 100644 --- a/Library/Formula/mpdviz.rb +++ b/Library/Formula/mpdviz.rb @@ -1,21 +1,35 @@ require "formula" +require "language/go" class Mpdviz < Formula homepage "https://github.com/neeee/mpdviz" url "http://github.com/neeee/mpdviz/archive/0.4.3.tar.gz" sha1 "7923a818155c9fc413e483dcb1b3964ab00e5ded" + go_resource "github.com/neeee/go-fftw" do + url "https://github.com/neeee/go-fftw.git", + :revision => "37bfa0d3053b133f7067e9524611a7a963294124" + end + + go_resource "github.com/neeee/pflag" do + url "https://github.com/neeee/pflag.git", + :revision => "3eff50031ed8a4d175401fe12d1c8a24415cbe9f" + end + + go_resource "github.com/neeee/termbox-go" do + url "https://github.com/neeee/termbox-go.git", + :revision => "7d25635285663eedf1aaa26dda7e5b3213045772" + end + 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" + Language::Go.stage_deps resources, buildpath/"src" + system "go", "build", "-o", "mpdviz" bin.install "mpdviz" end - end |
