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

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

sysutils/peco: upgrade to 0.3.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 134391 2015-03-24 13:35:11Z kimuraw@macports.org $
2
3PortSystem      1.0
4PortGroup       github 1.0
5
6github.setup    peco peco 0.3.2 v
7revision        0
8categories      sysutils
9homepage        http://peco.github.io
10description     Simplistic interactive filtering tool
11long_description \
12        peco can be a great tool to filter stuff like logs, process stats, find \
13        files, because unlike grep, you can type as you think and look through  \
14        the current results.
15license         MIT
16
17maintainers     kimuraw openmaintainer
18platforms       darwin
19
20depends_build   port:go
21use_configure   no
22dist_subdir     go
23
24# peco
25checksums       peco-${version}.tar.gz \
26                    md5 76f4b75ab75a79abc279c88c6804d97a \
27                    sha1 b780702b95feaed2bd3a8921790f79ae61e09dcc \
28                    sha256 62260730d9ebeaecc404990e518b8ec1b7c1294e0f52a07cf4838ae374b4e162
29
30# dependencies to build. remember revbump when you change version of dependencies.
31set go-flags.version        1
32set go-runewidth.version    58a0da4ed7b321c9b5dfeffb7e03ee188fae1c60
33set termbox-go.version      10f14d7408b64a659b7c694a771f5006952d336c
34set google-btree.version    0c05920fc3d98100a5e3f7fd339865a6e2aaa671
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 \
39                    https://github.com/google/btree/tarball/${google-btree.version}:google-btree
40distfiles-append    jessevdk-go-flags-v${go-flags.version}.tar.gz:go-flags \
41                    mattn-go-runewidth-${go-runewidth.version}.tar.gz:go-runewidth \
42                    nsf-termbox-go-${termbox-go.version}.tar.gz:termbox-go \
43                    google-btree-${google-btree.version}.tar.gz:google-btree
44checksums-append    jessevdk-go-flags-v${go-flags.version}.tar.gz \
45                        md5 33244c6469610036f0c38b8c772f7533 \
46                        sha1 0a0878b70fa263efc3fcb330c999138772a43893 \
47                        sha256 e384b7a12c91ad9202e208665cc51c5fbdf1eb21711fd9fce67426abc5adb58f \
48                    mattn-go-runewidth-${go-runewidth.version}.tar.gz \
49                        md5 835771e811a6f078e498a6313067ee79 \
50                        sha1 c58bb8ae8c5ecbda91727896bcda8212bfbbc2a5 \
51                        sha256 4fb1177054345594aa065ade91a54eb216cefefcec016854bc799c4d0093f48b \
52                    nsf-termbox-go-${termbox-go.version}.tar.gz \
53                        md5 730899562e8c5c5315e13f4e789a542d \
54                        sha1 ad5848e9b255916ebc3e9702bdcfe7cc071172f3 \
55                        sha256 0d5a02a953f085824f014143b063d44885777e580c7002adc39b06ef3069c3f4 \
56                    google-btree-${google-btree.version}.tar.gz \
57                        md5 3c20d1ca9728edd0777faf1941022d33 \
58                        sha1 27ae29bfe84f4dc714f7a3f7cf53d6082b97a1f0 \
59                        sha256 42ea86dba6bcbc055af6cdfbcfc6303695d2c9d70cf4bb882a27d55aab945d16
60# setup build sources like this:
61#   workpath/
62#       peco-0.1.12/
63#       gopath/src/github.com/
64#           peco/peco/
65#           jessevdk/go-flags-v/
66#             :
67set gopath      ${workpath}/GOPATH
68post-extract {
69    file mkdir ${gopath}/src/github.com/peco
70    ln -s ${worksrcpath} ${gopath}/src/github.com/peco/peco
71    file mkdir ${gopath}/src/github.com/jessevdk
72    move [glob ${workpath}/jessevdk-go-flags-*] ${gopath}/src/github.com/jessevdk/go-flags
73    file mkdir ${gopath}/src/github.com/mattn
74    move [glob ${workpath}/mattn-go-runewidth-*] ${gopath}/src/github.com/mattn/go-runewidth
75    file mkdir ${gopath}/src/github.com/nsf
76    move [glob ${workpath}/nsf-termbox-go-*] ${gopath}/src/github.com/nsf/termbox-go
77    file mkdir ${gopath}/src/github.com/google
78    move [glob ${workpath}/google-btree-*] ${gopath}/src/github.com/google/btree
79}
80
81build.cmd       go
82build.target    build
83build.args      cmd/peco/peco.go
84build.env       GOPATH="${gopath}"
85
86destroot {
87    xinstall ${worksrcpath}/peco ${destroot}${prefix}/bin
88}
Note: See TracBrowser for help on using the repository browser.