# -*- 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.11.4 v
go.offline_build    no
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  140830217d5d634190c24590b11ff548392c0c83 \
                    sha256  0f1a540f388d2b8633b8203670d6ec8722d47af40055ce79cd1743a731823b2e \
                    size    55718

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