# -*- 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.12.1 v
github.tarball_from archive
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  102375736e839d304e068738d570719c28579b5e \
                        sha256  22afa94526b7da02c520fda36a531616e8f53bc6c34c1438e929337c990c65fc \
                        size    14748

go.vendors          golang.org/x/oauth2 \
                        lock    v0.19.0 \
                        rmd160  ccd5caa64ebcdd4190827ef5aa75b4bf5bae2370 \
                        sha256  4b1a69e5409d0f348fb1e7c57b6dc5178d93ff3d87ed32826433c742a068aeac \
                        size    98395 \
                    github.com/google/go-cmp \
                        lock    v0.5.9 \
                        rmd160  9832ae80123461baed8aa20e830199c0e21e337b \
                        sha256  3058d20d61f03aa05fca0fc07acb8c50850c68086998c542857aec7ad1529482 \
                        size    104431
