# -*- 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/sethvargo/ratchet 0.12.0 v
go.offline_build    no
go.toolchain_min    1.25.12
revision            0

description         A tool for securing CI/CD workflows with version pinning.

long_description    \
    Ratchet is a tool for improving the security of CI/CD workflows by \
    automating the process of pinning and unpinning upstream versions. It's \
    like Bundler, Cargo, Go modules, NPM, Pip, or Yarn, but for CI/CD \
    workflows. Ratchet supports GitHub Actions & Google Cloud Build.

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

build.pre_args-append \
    -ldflags \"-X ${go.package}/internal/version.version=${version}\"

checksums           rmd160  44a1854359869872671bfc782d0d35c90d7ad8e8 \
                    sha256  7fe2adcf0f5eea0fdd80812d4a0bb20e0b7a4197b6c448191338214d94a8b594 \
                    size    63840

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