Skip to content

Instantly share code, notes, and snippets.

Created June 21, 2014 03:55
Show Gist options
  • Save anonymous/906b714ec889d51c9628 to your computer and use it in GitHub Desktop.
Save anonymous/906b714ec889d51c9628 to your computer and use it in GitHub Desktop.
# $Id: $
PortSystem 1.0
PortGroup github 1.0
github.setup peco peco 0.1.6 {v}
description Simplistic interactive filtering tool
long_description \
peco can be a great tool to filter stuff like logs, process stats, find \
files, because unlike grep, you can type as you think and look through \
the current results.
license MIT
categories sysutils
maintainers kimuraw openmaintainer
platforms darwin
depends_build port:go
use_configure no
checksums md5 941106bc99b5156a9edc9ec2dd9ddfd9 \
rmd160 09420ba3818d82b5cdb40c6863dd4a0c6a677bf3 \
sha1 7d9c9f8bc78b053ee13dd2a3a303a5adca49700d \
sha256 5a6973b31b300c57389216687079e1592f5baae92538a992cab0995323a76494
post-extract {
set go_deps \
{ github.com/jessevdk/go-flags \
github.com/mattn/go-runewidth \
github.com/nsf/termbox-go }
foreach go_dep ${go_deps} {
system "GOPATH=${worksrcpath} go get ${go_dep}"
}
file mkdir "${worksrcpath}/src/github.com/lestrrat"
ln -s "${worksrcpath}" "${worksrcpath}/src/github.com/lestrrat/peco"
}
build.cmd go
build.target build
build.args cmd/peco/peco.go
build.env GOPATH="${worksrcpath}"
destroot {
xinstall "${worksrcpath}/peco" "${destroot}/${prefix}/bin"
}
@kimuraw
Copy link

kimuraw commented Jun 21, 2014

a draft of MacPorts Portfile for peco.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment