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

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

sysutils/peco: upgrade to 0.2.11

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 130558 2015-01-01 03:34:41Z kimuraw@macports.org $
2
3PortSystem      1.0
4PortGroup       github 1.0
5
6github.setup    peco peco 0.2.11 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 7a8e58f232dae63d6ee6ae25b7a84f08 \
27                    sha1 a91575af42d62784fab97250d1cb50c26054edc9 \
28                    sha256 d969915d0ce0db90e71bf194d6140f8207aaa07763e4c92b97d2406979815f90
29
30# dependencies to build. remember revbump when you change version of dependencies.
31set go-flags.version        1
32set go-runewidth.version    63c378b851290989b19ca955468386485f118c65
33set termbox-go.version      bb19a81afd4bc2729799d1fedb19f7bd7ee284cf
34# dependencies
35master_sites-append https://github.com/jessevdk/go-flags/tarball/v${go-flags.version}:go-flags \
36                    https://github.com/mattn/go-runewidth/tarball/${go-runewidth.version}:go-runewidth \
37                    https://github.com/nsf/termbox-go/tarball/${termbox-go.version}:termbox-go
38distfiles-append    jessevdk-go-flags-v${go-flags.version}.tar.gz:go-flags \
39                    mattn-go-runewidth-${go-runewidth.version}.tar.gz:go-runewidth \
40                    nsf-termbox-go-${termbox-go.version}.tar.gz:termbox-go
41checksums-append    jessevdk-go-flags-v${go-flags.version}.tar.gz \
42                        md5 33244c6469610036f0c38b8c772f7533 \
43                        sha1 0a0878b70fa263efc3fcb330c999138772a43893 \
44                        sha256 e384b7a12c91ad9202e208665cc51c5fbdf1eb21711fd9fce67426abc5adb58f \
45                    mattn-go-runewidth-${go-runewidth.version}.tar.gz \
46                        md5 1639fe733fe7a931838627b581858645 \
47                        sha1 6894f49183aec0a04ced959ea89daf50c41272b7 \
48                        sha256 8a5acff98976e66eba312351a6d7ff95c1a93081355b460fc04abca89cf24aa6 \
49                    nsf-termbox-go-${termbox-go.version}.tar.gz \
50                        md5 71def2ea8d475fae61fe35859a545b0c \
51                        sha1 90c8c0876155882da3907190309918e184d7a8f8 \
52                        sha256 638d8798ac7c07f9277298a4cacbc11c62642db73715be6f7a4085ab90efecb8
53
54# setup build sources like this:
55#   workpath/
56#       peco-0.1.12/
57#       gopath/src/github.com/
58#           peco/peco/
59#           jessevdk/go-flags-v/
60#             :
61set gopath      ${workpath}/GOPATH
62post-extract {
63    file mkdir ${gopath}/src/github.com/peco
64    ln -s ${worksrcpath} ${gopath}/src/github.com/peco/peco
65    file mkdir ${gopath}/src/github.com/jessevdk
66    move [glob ${workpath}/jessevdk-go-flags-*] ${gopath}/src/github.com/jessevdk/go-flags
67    file mkdir ${gopath}/src/github.com/mattn
68    move [glob ${workpath}/mattn-go-runewidth-*] ${gopath}/src/github.com/mattn/go-runewidth
69    file mkdir ${gopath}/src/github.com/nsf
70    move [glob ${workpath}/nsf-termbox-go-*] ${gopath}/src/github.com/nsf/termbox-go
71}
72
73build.cmd       go
74build.target    build
75build.args      cmd/peco/peco.go
76build.env       GOPATH="${gopath}"
77
78destroot {
79    xinstall ${worksrcpath}/peco ${destroot}${prefix}/bin
80}
Note: See TracBrowser for help on using the repository browser.