2015-01-28 13:58:30 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Peco < Formula
|
|
|
|
homepage "https://github.com/peco/peco"
|
2015-02-27 04:12:24 +00:00
|
|
|
url "https://github.com/peco/peco/archive/v0.2.12.tar.gz"
|
|
|
|
sha1 "4f5caf6eab2f7c08191939dec7543afc32a6ddde"
|
2015-02-11 05:04:15 +00:00
|
|
|
|
2015-03-03 02:28:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "c266e3919d01293aedfc7f4ce459be76ccacd954" => :yosemite
|
|
|
|
sha1 "9374ae50643d4b8b0e1d09c4b2076e5d3ee09355" => :mavericks
|
|
|
|
sha1 "a8e68353239ec1b48866f820b8e3c7915b6b5ec9" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-28 13:58:30 +00:00
|
|
|
go_resource "github.com/jessevdk/go-flags" do
|
|
|
|
url "https://github.com/jessevdk/go-flags.git",
|
2015-02-27 04:12:24 +00:00
|
|
|
:revision => "5e118789801496c93ba210d34ef1f2ce5a9173bd"
|
2015-01-28 13:58:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/mattn/go-runewidth" do
|
|
|
|
url "https://github.com/mattn/go-runewidth.git",
|
2015-02-27 04:12:24 +00:00
|
|
|
:revision => "c718ccb0685f9fa7129b1b41c04d2877423c419d"
|
2015-01-28 13:58:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/nsf/termbox-go" do
|
|
|
|
url "https://github.com/nsf/termbox-go.git",
|
2015-02-27 04:12:24 +00:00
|
|
|
:revision => "1f1918bf12614154995c633122959e84e54ffafa"
|
2015-01-28 13:58:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/peco/peco" do
|
|
|
|
url "https://github.com/peco/peco.git",
|
2015-02-27 04:12:24 +00:00
|
|
|
:revision => "f0c506536a5bb4a0e605fb71420690f57087f2d4"
|
2015-01-28 13:58:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
|
|
|
|
|
|
system "go", "build", "cmd/peco/peco.go"
|
|
|
|
bin.install "peco"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/peco", "--version"
|
|
|
|
end
|
|
|
|
end
|