Created
June 21, 2014 03:55
-
-
Save anonymous/906b714ec889d51c9628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a draft of MacPorts Portfile for peco.