# -*- 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/hickford/git-credential-oauth 0.17.0 v
revision            0

description         \
    A Git credential helper that securely authenticates to GitHub, GitLab and \
    BitBucket using OAuth.

long_description    {*}${description}

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

build.pre_args-append \
    -ldflags \" -X main.version=${github.tag_prefix}${version} \"

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

github.livecheck.regex \
                    {([0-9.]+)}

checksums           ${distname}${extract.suffix} \
                        rmd160  39d77dfac87d5696ca36ff70a1ab63ae3b07fd06 \
                        sha256  95dfacb92a923bc9ff098a19576fd6d8a4f02ba25fdbefbdb3de48217896a339 \
                        size    16712

go.vendors          rsc.io/qr \
                        repo    github.com/rsc/qr \
                        lock    v0.2.0 \
                        rmd160  f642fe01c13937615e5a975e6a1932f8dc25359a \
                        sha256  1d69d5a13366a84a1484abdec5affd7f5781016469f4b43b1a26f5fa5c93497b \
                        size    18816 \
                    golang.org/x/oauth2 \
                        lock    v0.30.0 \
                        rmd160  63353a82f136c21da2c2613e3393b724d52b6f92 \
                        sha256  259d504972689aef6ba45f2ca479d462524e0803a0104735262c94a5ad3b1da2 \
                        size    100393
