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 | maintainers noname@withgod.jp |
---|
6 | name peco |
---|
7 | categories textproc |
---|
8 | version 0.1.6 |
---|
9 | license MIT |
---|
10 | platforms darwin |
---|
11 | homepage http://peco.github.io/ |
---|
12 | description Simplistic interactive filtering tool |
---|
13 | long_description peco is based on percol.... ${description} |
---|
14 | master_sites https://github.com/peco/peco/archive/ |
---|
15 | distname v${version} |
---|
16 | checksums sha1 3cb3e84f5b01568f065c60f986358124d1be952a |
---|
17 | depends_lib port:go |
---|
18 | |
---|
19 | worksrcdir ${name}-${version} |
---|
20 | |
---|
21 | use_configure no |
---|
22 | |
---|
23 | build { |
---|
24 | #based on https://github.com/peco/homebrew-peco/blob/master/peco.rb |
---|
25 | file mkdir ${workpath}/go |
---|
26 | file mkdir ${workpath}/go/src/github.com/lestrrat |
---|
27 | ln -s ${worksrcpath} ${workpath}/go/src/github.com/lestrrat/peco |
---|
28 | system "GOPATH=${workpath}/go go get github.com/jessevdk/go-flags" |
---|
29 | system "GOPATH=${workpath}/go go get github.com/mattn/go-runewidth" |
---|
30 | system "GOPATH=${workpath}/go go get github.com/nsf/termbox-go" |
---|
31 | system -W ${worksrcpath} "GOPATH=${workpath}/go go build cmd/peco/peco.go" |
---|
32 | } |
---|
33 | |
---|
34 | destroot { |
---|
35 | file mkdir ${destroot}/${prefix}/bin |
---|
36 | xinstall -m 755 ${worksrcpath}/peco ${destroot}/${prefix}/bin |
---|
37 | } |
---|
38 | |
---|
39 | livecheck.type regex |
---|
40 | livecheck.url https://github.com/peco/peco/releases |
---|
41 | livecheck.regex v(\[0-9.\]+).tar.gz |
---|
42 | |
---|
43 | |
---|