diff options
| author | Kozo Nishida | 2015-01-28 22:58:30 +0900 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-11 11:01:36 +0000 |
| commit | d261d0c32d40a8bd761b904d4f35451fb5d9deb3 (patch) | |
| tree | 980ab77336ef4fd313da4b3882ee865f9d22f20c /Library | |
| parent | 8cd287b7b349b618f634ab089a546bb87a143541 (diff) | |
| download | homebrew-d261d0c32d40a8bd761b904d4f35451fb5d9deb3.tar.bz2 | |
peco 0.2.11 (new formula)
Closes #36318.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/peco.rb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Library/Formula/peco.rb b/Library/Formula/peco.rb new file mode 100644 index 000000000..f1823f7bd --- /dev/null +++ b/Library/Formula/peco.rb @@ -0,0 +1,41 @@ +require "language/go" + +class Peco < Formula + homepage "https://github.com/peco/peco" + url "https://github.com/peco/peco/archive/v0.2.11.tar.gz" + sha1 "438e76dc7f31215eb1195d5eb14a66cf7fef318e" + + go_resource "github.com/jessevdk/go-flags" do + url "https://github.com/jessevdk/go-flags.git", + :revision => "15347ef417a300349807983f15af9e65cd2e1b3a" + end + + go_resource "github.com/mattn/go-runewidth" do + url "https://github.com/mattn/go-runewidth.git", + :revision => "8adae32de8a26f36cc7acaa53051407d514bb5f0" + end + + go_resource "github.com/nsf/termbox-go" do + url "https://github.com/nsf/termbox-go.git", + :revision => "9e7f2135126fcf13f331e7b24f5d66fd8e8e1690" + end + + go_resource "github.com/peco/peco" do + url "https://github.com/peco/peco.git", + :revision => "0ad82671a0546fe4cace0eb9787b900bcc77aad0" + 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 |
