Ticket #44102: Portfile

File Portfile, 1.4 KB (added by noname@…, 10 years ago)

Portfile

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
5maintainers     noname@withgod.jp
6name            peco
7categories      textproc
8version         0.1.6
9license         MIT
10platforms       darwin
11homepage        http://peco.github.io/
12description     Simplistic interactive filtering tool
13long_description peco is based on percol.... ${description}
14master_sites    https://github.com/peco/peco/archive/
15distname        v${version}
16checksums       sha1 3cb3e84f5b01568f065c60f986358124d1be952a
17depends_lib     port:go
18
19worksrcdir      ${name}-${version}
20
21use_configure       no
22
23build {
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
34destroot {
35    file mkdir ${destroot}/${prefix}/bin
36    xinstall -m 755 ${worksrcpath}/peco ${destroot}/${prefix}/bin
37}
38
39livecheck.type      regex
40livecheck.url       https://github.com/peco/peco/releases
41livecheck.regex     v(\[0-9.\]+).tar.gz
42
43