source: trunk/dports/sysutils/peco/Portfile @ 121802

Last change on this file since 121802 was 121802, checked in by kimuraw@…, 5 years ago

sysutils/peco: upgrade to 0.2.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Portfile 121802 2014-07-08 12:10:24Z kimuraw@macports.org $
2PortSystem      1.0
3
4name            peco
5version         0.2.0
6revision        0
7categories      sysutils
8homepage        http://peco.github.io
9description     Simplistic interactive filtering tool
10long_description \
11        peco can be a great tool to filter stuff like logs, process stats, find \
12        files, because unlike grep, you can type as you think and look through  \
13        the current results.
14license         MIT
15
16maintainers     kimuraw openmaintainer
17platforms       darwin
18
19depends_build   port:go
20use_configure   no
21dist_subdir     go
22
23# peco
24master_sites    https://github.com/peco/peco/tarball/v${version}:peco
25distfiles       peco-peco-v${version}.tar.gz:peco
26checksums       peco-peco-v${version}.tar.gz \
27                    md5 fddcd8b1876e81f7767b330ee9c6d976 \
28                    sha1 f52c7770dd488716a1600e62c3a053683f8fe0e0 \
29                    sha256 5f7a424cc7aa9021b05996660dcdbad629ac925618c3b94c1c12c82111020939
30
31# dependencies to build. remember revbump when you change version of dependencies.
32set go-flags.version        1
33set go-runewidth.version    d70c973ddedf458fb28531e3335a972c2cc28b00
34set termbox-go.version      81b415f8400796494f30d99fc9df17e03acacc71
35# dependencies
36master_sites-append https://github.com/jessevdk/go-flags/tarball/v${go-flags.version}:go-flags \
37                    https://github.com/mattn/go-runewidth/tarball/${go-runewidth.version}:go-runewidth \
38                    https://github.com/nsf/termbox-go/tarball/${termbox-go.version}:termbox-go
39distfiles-append    jessevdk-go-flags-v${go-flags.version}.tar.gz:go-flags \
40                    mattn-go-runewidth-${go-runewidth.version}.tar.gz:go-runewidth \
41                    nsf-termbox-go-${termbox-go.version}.tar.gz:termbox-go
42checksums-append    jessevdk-go-flags-v${go-flags.version}.tar.gz \
43                        md5 33244c6469610036f0c38b8c772f7533 \
44                        sha1 0a0878b70fa263efc3fcb330c999138772a43893 \
45                        sha256 e384b7a12c91ad9202e208665cc51c5fbdf1eb21711fd9fce67426abc5adb58f \
46                    mattn-go-runewidth-${go-runewidth.version}.tar.gz \
47                        md5 bef4925c7f295716df921309f82b4394 \
48                        sha1 b9b8b60f15f1298483b07545bc41f9b6e6d2a79f \
49                        sha256 fb03cbe156fc21b974a350ca76afe667e9aa3cab08010cf36a902f32792c8723 \
50                    nsf-termbox-go-${termbox-go.version}.tar.gz \
51                        md5 0e7364e798fe0154eae461bf143e21e4 \
52                        sha1 98c977503395d5f689c096b7ec30230a2fbbf487 \
53                        sha256 5c617be6cb02f991b3a71e7ac6c5d4de50a9730a0952af6d0892fc3f02ccf8ed
54
55# setup build sources like this:
56#   workpath/
57#       peco-0.1.12/
58#       gopath/src/github.com/
59#           peco/peco/
60#           jessevdk/go-flags-v/
61#             :
62set gopath      ${workpath}/GOPATH
63post-extract {
64    move [glob ${workpath}/peco-peco-*] ${worksrcpath}
65    file mkdir ${gopath}/src/github.com/peco
66    ln -s ${worksrcpath} ${gopath}/src/github.com/peco/peco
67    file mkdir ${gopath}/src/github.com/jessevdk
68    move [glob ${workpath}/jessevdk-go-flags-*] ${gopath}/src/github.com/jessevdk/go-flags
69    file mkdir ${gopath}/src/github.com/mattn
70    move [glob ${workpath}/mattn-go-runewidth-*] ${gopath}/src/github.com/mattn/go-runewidth
71    file mkdir ${gopath}/src/github.com/nsf
72    move [glob ${workpath}/nsf-termbox-go-*] ${gopath}/src/github.com/nsf/termbox-go
73}
74
75build.cmd       go
76build.target    build
77build.args      cmd/peco/peco.go
78build.env       GOPATH="${gopath}"
79
80destroot {
81    xinstall "${worksrcpath}/peco" "${destroot}/${prefix}/bin"
82}
Note: See TracBrowser for help on using the repository browser.