# -*- 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/superfly/flyctl 0.3.41 v go.offline_build no github.tarball_from archive revision 0 categories devel installs_libs no license Apache-2 maintainers {netinertia.co.uk:jamesog @jamesog} \ {gmail.com:herby.gillot @herbygillot} \ openmaintainer description Command line tools for fly.io services long_description ${name} is a command-line interface for fly.io. homepage https://fly.io checksums rmd160 f11e4554e10833ea9853f59e26fd1a8b94c531de \ sha256 91f72f53e3e57822c1fbbda7d5c332a99009ad685c9965fad39b8500490cda00 \ size 1794680 build.cmd "${go.bin} generate ./... && ${go.bin} build" # Hard-code the build date to help with build reproducibility build.pre_args-append \ -o ./_bin/${name} \ -ldflags \" \ -X ${go.package}/internal/buildinfo.environment=production \ -X ${go.package}/internal/buildinfo.branchName=v${version} \ -X ${go.package}/internal/buildinfo.buildDate=2024-02-15T00:00:00Z \ -X ${go.package}/internal/buildinfo.buildVersion=v${version} \ -X ${go.package}/internal/buildinfo.commit=release \ \" destroot { xinstall -m 0755 ${worksrcpath}/_bin/${name} ${destroot}${prefix}/bin/ ln -s ${prefix}/bin/${name} ${destroot}${prefix}/bin/fly # Shell completion xinstall -d "${destroot}${prefix}/etc/bash_completion.d" xinstall -d "${destroot}${prefix}/share/zsh/site-functions" xinstall -d "${destroot}${prefix}/share/fish/vendor_completions.d" system "${destroot}${prefix}/bin/${name} completion bash > \\ ${destroot}${prefix}/etc/bash_completion.d/${name}" system "${destroot}${prefix}/bin/${name} completion zsh > \\ ${destroot}${prefix}/share/zsh/site-functions/_${name}" system "${destroot}${prefix}/bin/${name} completion fish > \\ ${destroot}${prefix}/share/fish/vendor_completions.d/${name}.fish" } # Only match releases. Pre-releaes have a "-pre-N" suffix github.livecheck.regex {(\d+(?:\.\d+)+)}