# -*- 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/golang/dep 0.5.4 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            1

categories          devel
license             BSD
maintainers         nomaintainer
description         Dependency tool for go
long_description    {*}${description}

fetch.type          git

checksums           ${distname}${extract.suffix} \
                        rmd160  d2ed81ab1c01bd9761ccdbe331a5e86b4d69e049 \
                        sha256  cb4e419b0f0f10e1a6afe007566dfdd630a6984b8d3ccf02f2c292d38e8e81a5 \
                        size    3945640

build.env-append    DEP_BUILD_ARCHS=${goarch} \
                    DEP_BUILD_PLATFORMS=${goos}
build.cmd           ./hack/build-all.bash

patchfiles          patch-allow-arm64.build.bash.diff

destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall -m 755 ${worksrcpath}/release/${name}-${goos}-${goarch} ${destroot}${prefix}/bin/${name}
}
