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

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

sysutils/peco: refactor Portfile

  • add a blank line after $Id$
  • use portgroup github
    • distname changed to peco-${version} form peco-peco-${version}
  • delete unneeded quote for xinstall
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 121804 2014-07-08 12:41:31Z kimuraw@macports.org $
2
3PortSystem      1.0
4PortGroup       github 1.0
5
6github.setup    peco peco 0.2.0 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 fddcd8b1876e81f7767b330ee9c6d976 \
27                    sha1 f52c7770dd488716a1600e62c3a053683f8fe0e0 \
28                    sha256 5f7a424cc7aa9021b05996660dcdbad629ac925618c3b94c1c12c82111020939
29
30# dependencies to build. remember revbump when you change version of dependencies.
31set go-flags.version        1
32set go-runewidth.version    d70c973ddedf458fb28531e3335a972c2cc28b00
33set termbox-go.version      81b415f8400796494f30d99fc9df17e03acacc71
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 bef4925c7f295716df921309f82b4394 \
47                        sha1 b9b8b60f15f1298483b07545bc41f9b6e6d2a79f \
48                        sha256 fb03cbe156fc21b974a350ca76afe667e9aa3cab08010cf36a902f32792c8723 \
49                    nsf-termbox-go-${termbox-go.version}.tar.gz \
50                        md5 0e7364e798fe0154eae461bf143e21e4 \
51                        sha1 98c977503395d5f689c096b7ec30230a2fbbf487 \
52                        sha256 5c617be6cb02f991b3a71e7ac6c5d4de50a9730a0952af6d0892fc3f02ccf8ed
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    move [glob ${workpath}/peco-*] ${worksrcpath}
64    file mkdir ${gopath}/src/github.com/peco
65    ln -s ${worksrcpath} ${gopath}/src/github.com/peco/peco
66    file mkdir ${gopath}/src/github.com/jessevdk
67    move [glob ${workpath}/jessevdk-go-flags-*] ${gopath}/src/github.com/jessevdk/go-flags
68    file mkdir ${gopath}/src/github.com/mattn
69    move [glob ${workpath}/mattn-go-runewidth-*] ${gopath}/src/github.com/mattn/go-runewidth
70    file mkdir ${gopath}/src/github.com/nsf
71    move [glob ${workpath}/nsf-termbox-go-*] ${gopath}/src/github.com/nsf/termbox-go
72}
73
74build.cmd       go
75build.target    build
76build.args      cmd/peco/peco.go
77build.env       GOPATH="${gopath}"
78
79destroot {
80    xinstall ${worksrcpath}/peco ${destroot}${prefix}/bin
81}
Note: See TracBrowser for help on using the repository browser.