2015-01-28 13:58:30 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Peco < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Simplistic interactive filtering tool"
|
2015-01-28 13:58:30 +00:00
|
|
|
homepage "https://github.com/peco/peco"
|
2015-10-30 07:50:33 +00:00
|
|
|
url "https://github.com/peco/peco/archive/v0.3.5.tar.gz"
|
|
|
|
sha256 "416d2547b639b11563d0bd910fa043e532f25fcc40de3ec0d7bec4943747fff1"
|
2015-03-31 07:50:27 +00:00
|
|
|
|
|
|
|
head "https://github.com/peco/peco.git"
|
2015-02-11 05:04:15 +00:00
|
|
|
|
2015-03-03 02:28:32 +00:00
|
|
|
bottle do
|
2015-09-21 18:49:32 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-10-30 07:54:57 +00:00
|
|
|
sha256 "3f42983ae2cdb2f8f4c583becbad5c708b95a9e9fbf474d80ee2abf813e16cd7" => :el_capitan
|
|
|
|
sha256 "f327e9d88ef8f10a405b6296868b5782743d047b4b8df7b25647ad0b92c07062" => :yosemite
|
|
|
|
sha256 "f341d17b7831b69486f632ed0b762610d47de56d364d4cf31e69ef49c67cc9ca" => :mavericks
|
2015-03-03 02:28:32 +00:00
|
|
|
end
|
|
|
|
|
2015-03-31 07:50:27 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2015-03-21 13:15:09 +00:00
|
|
|
go_resource "github.com/google/btree" do
|
|
|
|
url "https://github.com/google/btree.git",
|
2015-10-30 07:50:33 +00:00
|
|
|
:revision => "cc6329d4279e3f025a53a83c397d2339b5705c45"
|
2015-03-21 13:15:09 +00:00
|
|
|
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-10-30 07:50:33 +00:00
|
|
|
:revision => "fc93116606d0a71d7e9de0ad5734fdb4b8eae834"
|
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-10-30 07:50:33 +00:00
|
|
|
:revision => "12e0ff74603c9a3209d8bf84f8ab349fe1ad9477"
|
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-10-30 07:50:33 +00:00
|
|
|
:revision => "62033d80b58736ea31beaf43348f5147913af30e"
|
2015-01-28 13:58:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2015-03-31 07:50:27 +00:00
|
|
|
mkdir_p buildpath/"src/github.com/peco"
|
|
|
|
ln_s buildpath, buildpath/"src/github.com/peco/peco"
|
2015-01-28 13:58:30 +00:00
|
|
|
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
|