Ticket #44102: Portfile.2

File Portfile.2, 1.3 KB (added by noname@…, 10 years ago)
Line 
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
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    peco peco 0.1.6 v
8maintainers     withgod.jp:withgod
9name            peco
10categories      textproc
11license         MIT
12platforms       darwin
13
14homepage        http://peco.github.io/
15
16description     Simplistic interactive filtering tool
17long_description peco is based on percol.... ${description}
18checksums       rmd160 09420ba3818d82b5cdb40c6863dd4a0c6a677bf3 \
19                sha256 5a6973b31b300c57389216687079e1592f5baae92538a992cab0995323a76494
20
21depends_lib     port:go
22
23use_configure       no
24
25build {
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
36destroot {
37    xinstall -m 755 ${worksrcpath}/peco ${destroot}/${prefix}/bin
38}
39