Ticket #54258: Portfile

File Portfile, 1.4 KB (added by 1-61803, 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=portfile:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4PortGroup           github 1.0
5PortGroup           python 1.0
6
7github.setup        nojhan colout 0.5 v
8
9categories          textproc
10platforms           darwin
11license             GPL-3
12maintainers         g5pw openmaintainer
13
14description         Color Up Arbitrary Command Ouput
15long_description    ${name} read lines of text stream on the standard input and \
16                    output characters matching a given regular expression \
17                    PATTERN in given COLOR and STYLE.
18
19homepage            http://nojhan.github.io/colout/
20
21checksums           rmd160  91a5eea8af8ad88debb56d67026333784e65ed47 \
22                    sha256  2e35f18f4240b080d0579c3410726f79121ae373107fb72315e17cff02060ece
23
24python.default_version \
25                    36
26
27patch {
28    reinplace -W ${worksrcpath} s|python3|${python.bin}| \
29                                        bin/colout \
30                                        colout/colout.py \
31                                        setup.py
32}
33
34post-destroot {
35    set docdir ${prefix}/share/doc/${subport}
36    xinstall -d ${destroot}${docdir}
37    xinstall -m 644 -W ${worksrcpath} \
38        LICENSE \
39        README.md \
40        ${destroot}${docdir}
41}
42
43livecheck.type      none