# -*- 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

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/itchyny/mmv 0.1.6 v
name                go-mmv
revision            0

description         Rename multiple files with editor

long_description    \
    Rename multiple files using your \$EDITOR. The command name is named \
    after multi-mv.

conflicts           mmv

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.cmd           make
build.pre_args      CURRENT_REVISION=v${version}
build.args          build

patch {
    reinplace {/GO111MODULE/ d} ${worksrcpath}/Makefile
}

destroot {
    xinstall -m 0755 ${worksrcpath}/mmv ${destroot}${prefix}/bin/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  c497f7437db210685464d185b42f9bcbd345f39c \
                        sha256  18d181e6a53437ad18c4409f3c423bc23687152a17b53a605dde13dfffb0d215 \
                        size    8713

go.vendors          golang.org/x/sys \
                        lock    v0.7.0 \
                        rmd160  06b7e1f7f518376deaad92ca77d2d54b8a6807ec \
                        sha256  82e99ca5ba1b5fddecc2dfef4b08e6cc1137ffe5eb41d0e0232fbdd8124e1ebf \
                        size    1435346 \
                    github.com/mattn/go-tty \
                        lock    v0.0.4 \
                        rmd160  aeef24ae0b469f8a83cd43f40843ba3dc58f057d \
                        sha256  a9ee7c2dc5fcaf640eb3be20fbeab1cebd6fc56a160296c815d1129a0ff0091f \
                        size    7735 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.18 \
                        rmd160  b857a1d7ca02887106419c1a8b32364f1526fd4f \
                        sha256  b91360b8bf6d2b635db2e16241b171ab9704ddc0cbcb8173b421ad2099a9ec45 \
                        size    4676 \
                    github.com/mattn/getwild \
                        lock    c2e221927ad6 \
                        rmd160  8a1673876afb454ecd9ba9a44f44b9e86e51b492 \
                        sha256  ee8a3788be7f4e94670c1091c26bb91ef8c48f3fc853d71c80f697aa70feb04b \
                        size    1540 \
                    github.com/kballard/go-shellquote \
                        lock    95032a82bc51 \
                        rmd160  40415cd59ece9fb38b22170feec07f1f48d518a2 \
                        sha256  41aa42696f96fb2783c5135d71ff1ec5938dfe178b51eb703e509c8ac0e7db4e \
                        size    4335
