# -*- 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.7 v
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  c09c38fb7a95ceb34be1d667b27f396e289c028c \
                        sha256  237aec651a903bf4e9f9c8eb638da6aa4d89d07c484f45f11cfb89c2dbf277a5 \
                        size    1564627

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.29.0 \
                        rmd160  0e6e5b718d234eea0fe889a67ce06d5ecd1be27d \
                        sha256  ec9757aa9994bbc9a94472b49e3258eb2384d5c0c1c5e70c0bb945643fcba0f8 \
                        size    1520458 \
                    golang.org/x/sync \
                        lock    v0.10.0 \
                        rmd160  3cdb4e0e41894bd4f102154d7e193423451c64c6 \
                        sha256  0318693e1204134ef8d4110f1fd961fd0273ff4d59874c542d8b4739236bebfe \
                        size    18107 \
                    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-shellwords \
                        lock    v1.0.12 \
                        rmd160  966c28bc678d710bb7f052842378462c800f24d7 \
                        sha256  317db0f9d20370e4dc274495c7ecd409f8cefc84d4629df65f62ecd558c417ed \
                        size    6326 \
                    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.14 \
                        rmd160  5b6117d2728f6478faf0be5b8790425fed6c4ad8 \
                        sha256  6661917405b168f0c8b92a2be524e668ee1c29b393353639453cb8f9c2f7eff8 \
                        size    9806 \
                    github.com/google/go-cmp \
                        lock    v0.6.0 \
                        rmd160  2c9f5dab93f8a0895591466fe4a07c5dd9166ae2 \
                        sha256  0d550825fae514f8a947ab7e42fcb874f509d9cbfa3ad2711d7570a25f31571a \
                        size    104795 \
                    github.com/fatih/color \
                        lock    v1.18.0 \
                        rmd160  cea38fd7fdad5b4b20f519ebd1301bc2c277f54b \
                        sha256  e085d36aabb91de9adfa7ff605a06a342b6bc583e3bbb8ce49605590f4e0bd71 \
                        size    12711 \
                    github.com/bmatcuk/doublestar \
                        lock    v4.8.0 \
                        rmd160  5cd0068b3e403955b0169cf4f18f39544bb49e9f \
                        sha256  f865273788e43f759955e75b0694b0ff0fb7fe2c68e85d2223885e1ae90d5a09 \
                        size    27362
