# -*- 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.10.0 v
go.offline_build    no
github.tarball_from archive
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  7a7d79070d56e640c0b3262f7798ab8601177b4c \
                    sha256  e96135fa2acddade2707e2110d212b790c2a8d114a7ace8c5d25e9edbf83b7e9 \
                    size    52555

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