# -*- 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/rhysd/actionlint 1.7.4 v
github.tarball_from archive
revision            0

description         Static checker for GitHub Actions workflow files

long_description    {*}${description}

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

build.cmd           make
build.target        build

depends_build-append \
    port:go-md2man

patch {
    reinplace \
        "s|go build|go build -ldflags '-X ${go.package}.version=v${version}'|" \
        ./Makefile
}

post-build {
    system -W ${worksrcpath}/man "go-md2man -in ${name}.1.ronn -out ${name}.1"
}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/man/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  bc0060f9143b3e635e8e7d768b7fc720fd8dd4fb \
                        sha256  3004bcb4615510e671c76a56259755ed616c3200fb73b0be0ca9c3d6ea09c73a \
                        size    1556590

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    golang.org/x/sys \
                        lock    v0.26.0 \
                        rmd160  19987e0da1912ad52b2b04531f53e61b342592e6 \
                        sha256  4f47aa2c6f4fede87b4ff8bfb3da47c6b1ddc10bfdb2a5d85a97131f6a459313 \
                        size    1509195 \
                    golang.org/x/sync \
                        lock    v0.8.0 \
                        rmd160  753a4804058e3be785a5d00aea60bc6950baa709 \
                        sha256  9f9f999d50ea1bbba9f7d9a629d594da7e221eeb4d54216ef480d1a8546fa817 \
                        size    18185 \
                    github.com/yuin/goldmark \
                        lock    v1.7.8 \
                        rmd160  aca83f762ebdaf8f076634db6b258517f442f3cb \
                        sha256  7c853a5697c2a1da0859245106cf5c73214ec0f8c5fc02fbda9c867eecad1dfe \
                        size    254971 \
                    github.com/robfig/cron \
                        lock    v3.0.1 \
                        rmd160  0f31492bf259c604d8c70ecbf0f9878cd832ce6d \
                        sha256  bbfcbe0005a5d20a27dd96726923ca22a1d347d12190bb276183da630d404ff5 \
                        size    25631 \
                    github.com/rivo/uniseg \
                        lock    v0.4.7 \
                        rmd160  a9056dc9a2a80aa9c46d0ff9e54f9e2e5a498c41 \
                        sha256  abc6a2f17b64b34b8a0c56eb9d0b53886ebbe0c88d467755c09c7fa696a16677 \
                        size    458166 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.16 \
                        rmd160  297825c4365b5f723ae485e726259ebb620ecd66 \
                        sha256  6c9e81a6b46220612b97ebc35e8d29d1907fd225a9ce3e40b7cebd64cc58d09c \
                        size    18496 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/mattn/go-colorable \
                        lock    v0.1.13 \
                        rmd160  c9e8ab9d0773c0984f36235e3c9f8c033552ac1a \
                        sha256  0cd9a951799c1a9f999df56e4b020170fa887456049c274aae6262d9ae3f7424 \
                        size    9778 \
                    github.com/google/go-cmp \
                        lock    v0.6.0 \
                        rmd160  2c9f5dab93f8a0895591466fe4a07c5dd9166ae2 \
                        sha256  0d550825fae514f8a947ab7e42fcb874f509d9cbfa3ad2711d7570a25f31571a \
                        size    104795 \
                    github.com/fatih/color \
                        lock    v1.17.0 \
                        rmd160  9d0962ae868c99aad71d9f8ad21b58a219fca1cc \
                        sha256  861f4ff9c6566b6e097ad4fe53248461dcad57fbb2c201413d64206f7d2b02b2 \
                        size    12339 \
                    github.com/bmatcuk/doublestar \
                        lock    v4.7.1 \
                        rmd160  d743f293d5f7ee27bffda5bf25bd20be9b7eb38c \
                        sha256  b614d25a46b586edf0139619c759ba6a000409824c73337d9f9f8074f9d93300 \
                        size    27254
