1 | # $Id$ |
---|
2 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup peco peco 0.1.6 v |
---|
8 | maintainers withgod.jp:withgod |
---|
9 | name peco |
---|
10 | categories textproc |
---|
11 | license MIT |
---|
12 | platforms darwin |
---|
13 | |
---|
14 | homepage http://peco.github.io/ |
---|
15 | |
---|
16 | description Simplistic interactive filtering tool |
---|
17 | long_description peco is based on percol.... ${description} |
---|
18 | checksums rmd160 09420ba3818d82b5cdb40c6863dd4a0c6a677bf3 \ |
---|
19 | sha256 5a6973b31b300c57389216687079e1592f5baae92538a992cab0995323a76494 |
---|
20 | |
---|
21 | depends_lib port:go |
---|
22 | |
---|
23 | use_configure no |
---|
24 | |
---|
25 | build { |
---|
26 | #based on https://github.com/peco/homebrew-peco/blob/master/peco.rb |
---|
27 | file mkdir ${workpath}/go |
---|
28 | file mkdir ${workpath}/go/src/github.com/lestrrat |
---|
29 | ln -s ${worksrcpath} ${workpath}/go/src/github.com/lestrrat/peco |
---|
30 | system "GOPATH=${workpath}/go go get github.com/jessevdk/go-flags" |
---|
31 | system "GOPATH=${workpath}/go go get github.com/mattn/go-runewidth" |
---|
32 | system "GOPATH=${workpath}/go go get github.com/nsf/termbox-go" |
---|
33 | system -W ${worksrcpath} "GOPATH=${workpath}/go go build cmd/peco/peco.go" |
---|
34 | } |
---|
35 | |
---|
36 | destroot { |
---|
37 | xinstall -m 755 ${worksrcpath}/peco ${destroot}/${prefix}/bin |
---|
38 | } |
---|
39 | |
---|