Ticket #48970: Portfile

File Portfile, 3.3 KB (added by esafak (Emre Şafak), 7 years ago)
Line 
1# -*- 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
2
3PortSystem              1.0
4
5# PortGroup             github 1.0
6# github.setup  svent sift 0.9.0 v
7
8name            sift
9version         0.9.0
10platforms       darwin
11categories      sysutils
12license         GPL-3+
13installs_libs   no
14maintainers     esafak
15description     A fast and powerful open source alternative to grep
16long_description sift is an alternative that aims for both speed and flexibility, \
17                                adding features while trying to reach (or even surpass) the performance \
18                                of the original grep. The additional features include gitignore support, \
19                                conditions (e.g., match A only when preceded by B within X lines), \
20                                full multi-core support and multiline matching.
21homepage        http://sift-tool.org
22platforms       darwin
23use_zip          yes
24
25master_sites    https://github.com/svent/sift/archive:sift \
26                                https://github.com/jessevdk/go-flags/archive:flags \
27                                https://github.com/svent/go-nbreader/archive:nbreader \
28                                https://raw.githubusercontent.com/golang/crypto/master/ssh/terminal:crypto
29distfiles               v${version}.zip:sift \
30                                terminal.go:crypto \
31                                util_bsd.go:crypto \
32                                util.go:crypto \
33                                v1.1.0.zip:flags \
34                                master.zip:nbreader
35                               
36checksums       v${version}.zip \
37                                        rmd160 e1b1eae2e314510b852ee86f0152fa541b5b4af9 \
38                        sha256  00f4a57cd4140999443833b6bbf446a21ec5660613af5ce101d651a265152051 \
39                    util.go \
40                        rmd160 6f17dbf32422a7e43d9182137c0ebc2bc9704ef5 \
41                        sha256 c0506e16f0f7ec105437f35f2a7fb6c3b71a28f95102f3b5dec0d22f040cb727 \
42                    util_bsd.go \
43                        rmd160 9a75a1dc87ad32232627302e266215cba35766a4 \
44                        sha256 fc3b7bafbded5b824b3b9c5d4c4d6730958cbeb9ae9cd2dde2132d670d2cc3f4 \
45                    terminal.go \
46                        rmd160 ad3f5da181a2fa618e104b1deb79a869a9164cb2 \
47                        sha256 b35ec763e014dcc944989ff5ddea401c754bcc27c011f71012a2454eaca1b11a \
48                    v1.1.0.zip \
49                        rmd160 19254b903fe3313354ad01ddc8b3923f78ef2476 \
50                        sha256 1bd4c25d478fe661761be24d51ae842bcea1369f79c8b485ecbb46ce17a9a46e \
51                    master.zip \
52                                        rmd160 555fbce2dd0db3ecc8ac4d25baafcc7f68e5f427 \
53                        sha256 cad400afa41d6f5e08d70808270425a016f5a54c30bafd554dcdc2b6161e0288
54
55extract.only    v${version}.zip v1.1.0.zip master.zip
56
57depends_build       port:go
58universal_variant   no
59use_configure       no
60
61build.cmd           go
62build.target        build
63build.env           GOPATH=${worksrcpath}
64
65post-extract {
66        file mkdir ${worksrcpath}/src/golang.org/x/crypto/ssh/terminal
67        ln -sf ${distpath}/terminal.go ${worksrcpath}/src/golang.org/x/crypto/ssh/terminal/terminal.go
68        ln -sf ${distpath}/util_bsd.go ${worksrcpath}/src/golang.org/x/crypto/ssh/terminal/util_bsd.go
69        ln -sf ${distpath}/util.go ${worksrcpath}/src/golang.org/x/crypto/ssh/terminal/util.go
70        file mkdir ${worksrcpath}/src/github.com/svent
71        file mkdir ${worksrcpath}/src/github.com/svent/sift
72        move ${worksrcpath}/gitignore ${worksrcpath}/src/github.com/svent/sift
73        move ${workpath}/go-nbreader-master ${worksrcpath}/src/github.com/svent/go-nbreader
74        move ${workpath}/go-flags-1.1.0 ${worksrcpath}/src/github.com/svent/go-flags
75}
76
77destroot {
78        move ${worksrcpath}/${name}-${version} ${worksrcpath}/${name}
79        xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
80}