# -*- 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 # UPDATE THESE IN SYNC! set version 0.5.2 set commit 292b9b82df69b87af962b92485b254d9f4b10f00 go.setup github.com/kubernetes-sigs/aws-iam-authenticator ${version} v revision 0 go.package sigs.k8s.io/aws-iam-authenticator description AWS IAM Authenticator for Kubernetes long_description Use IAM credentials to authenticate to Kubernetes. categories sysutils platforms darwin license Apache-2 maintainers @asobrien \ openmaintainer checksums rmd160 0bf5bee637fe3ae2faf96d24d5b95621c8e6c00c \ sha256 a24cd391de7a5f736d1a9436054188b97fd30e01c0f707afea08c31b41720653 \ size 6073567 build.args -ldflags=\"-s -w \ -X main.version=${version} \ -X main.commit=${commit}\" build.args-append ./cmd/${name} # Do not build on macOS 10.10 and earlier if {${os.platform} eq "darwin" && ${os.major} < 15} { known_fail yes pre-fetch { ui_error "${name} does not build on macOS 10.10 and earlier" return -code error "unsupported platform version" } } destroot { xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ }