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-03-31 07:50:27 +00:00
|
|
|
url "https://github.com/peco/peco/archive/v0.3.2.tar.gz"
|
|
|
|
sha256 "ce2d617a49a29a010546b6331f7d3288eeab23226fada591b5c65be035b9c693"
|
|
|
|
|
|
|
|
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
|
|
|
|
cellar :any
|
2015-03-31 16:15:38 +00:00
|
|
|
sha256 "69a0b87dd86fafe7d6d81cc51df811a4273d6b2a7a73fc8ee4d135f544905b5d" => :yosemite
|
|
|
|
sha256 "ea4f6411ebb5cd48283340cff402d338a84d47b7b2849a6b2f870e389c9f89e3" => :mavericks
|
|
|
|
sha256 "f9bb9eb2d8eb0273652acd4254da956781baadc361064ecf8f6589a465ebc882" => :mountain_lion
|
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",
|
|
|
|
:revision => "0c05920fc3d98100a5e3f7fd339865a6e2aaa671"
|
|
|
|
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-03-21 13:15:09 +00:00
|
|
|
:revision => "58a0da4ed7b321c9b5dfeffb7e03ee188fae1c60"
|
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-03-21 13:15:09 +00:00
|
|
|
:revision => "10f14d7408b64a659b7c694a771f5006952d336c"
|
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
|