# -*- 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/regclient/regclient 0.9.0 v go.offline_build no revision 0 homepage https://regclient.org description Docker and OCI Registry Client in Go and tooling using those libraries long_description {*}${description} categories net devel sysutils license Apache-2 maintainers {icloud.com:github.ssk @suhailskhan} \ openmaintainer checksums rmd160 3a19966ddc1ef12e79941e895e1784f8dbe05b39 \ sha256 3bd9e7ad3e3b99d9d11303597a1ce36f7c96d3c84562af47fa6ff552ed869b71 \ size 374654 pre-build { xinstall -d ${worksrcpath}/build/f } build.args-append -o ${worksrcpath}/build/f \ -ldflags="-s -w -X ${go.package}/internal/version.vcsTag=${version}" \ ${worksrcpath}/cmd/* post-build { foreach shell {zsh bash fish} { foreach bin {regbot regctl regsync} { system -W ${worksrcpath} "./build/f/${bin} completion ${shell} > ${bin}.${shell}" } } } destroot { foreach bin [glob ${worksrcpath}/build/f/*] { xinstall -m 755 ${bin} ${destroot}${prefix}/bin } xinstall -d ${destroot}${prefix}/share/zsh/site-functions xinstall -d ${destroot}${prefix}/share/bash-completion/completions xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d foreach bin {regbot regctl regsync} { xinstall -m 644 ${worksrcpath}/${bin}.zsh \ ${destroot}${prefix}/share/zsh/site-functions/_${bin} xinstall -m 644 ${worksrcpath}/${bin}.bash \ ${destroot}${prefix}/share/bash-completion/completions/${bin} xinstall -m 644 ${worksrcpath}/${bin}.fish \ ${destroot}${prefix}/share/fish/vendor_completions.d } xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} \ README.md release.md LICENSE SECURITY.md \ ${destroot}${prefix}/share/doc/${name} }