# -*- 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/amake/go2port 0298d8d3f83d296ab586a0ef928c259723c1dac0
version             20201006
categories          sysutils macports
maintainers         {amake @amake} openmaintainer
license             BSD

description         A tool for creating MacPorts portfiles for Go projects

long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  9ab5c4749a95ba12dd5303c85c1dbc5e206cfaf3 \
                        sha256  4a93b63d5de7865be9ffac00dd990f487306f5b1563a0276a00b8b9e6d9ff6fd \
                        size    10491

go.vendors          github.com/urfave/cli \
                        lock    v1.22.4 \
                        rmd160  fc14cf328e371c1f0f3baceea5df4d4de63ca134 \
                        sha256  60f4eecd8fe79ace077fe6517f0d4f3950901bfbcc66ddc83cd944e7ddab4c79 \
                        size    78058 \
                    golang.org/x/net \
                        lock    5d4f70055728 \
                        rmd160  2747dd9074a0915214e13d3efe589a27bff02a98 \
                        sha256  eb4f8a5d2b377b086b5d8a8ec6a2f0c8084dbf1f7f30659e3aa427b924f74103 \
                        size    1179419 \
                    gopkg.in/check.v1 \
                        lock    038fdea0a05b \
                        rmd160  0f1896097db9d42b2fb5d62999bb52c77635f758 \
                        sha256  a82bd5c6960aa523c4dd8b30d52c3a7e8a5382e91f25862ef277bedf5c107007 \
                        size    31647 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/shurcooL/sanitized_anchor_name \
                        lock    v1.0.0 \
                        rmd160  c7e5322dba53e10db1711d65c146af5649b0c7c8 \
                        sha256  ed9418de8c92acfbbd8608745855ebfc67fa686c0a0a5245cf8eece8f540baa9 \
                        size    2144 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/russross/blackfriday \
                        lock    v2.0.1 \
                        rmd160  99cb49faff9bf24b8637dcdb3602c27c115810f3 \
                        sha256  4078d2cd3b1c6952133b214e4eaca95f3b31a01f87a03adabd7712e7d5f20f60 \
                        size    79665 \
                    golang.org/x/crypto \
                        lock    5c72a883971a \
                        rmd160  090821b28d0329a087b91a964a53937f3ce0047a \
                        sha256  a82c522eb9ec32fd6d5511793d1325495caf63371fffc5ac82f1fea63e99664a \
                        size    1732437 \
                    gopkg.in/yaml.v2 \
                        lock    v2.3.0 \
                        rmd160  2f8fa56d8a413b6288132eeb7f0d7c64d27d877f \
                        sha256  a8d1a8bc88239d25507456380b47d59ae3683d4a5f4336da4892db1ce026615f \
                        size    72838 \
                    github.com/BurntSushi/toml \
                        lock    v0.3.1 \
                        rmd160  fb9650e2d16525153645e5547626f242f3800149 \
                        sha256  8cc9e5dc68e247554227973d0b4e023b27bbd9ba5a26e4fb40f44743afcb35f1 \
                        size    42087 \
                    github.com/cpuguy83/go-md2man \
                        lock    v2.0.0 \
                        rmd160  85f342c341fa928e9ec874490c277bdabf1c39c6 \
                        sha256  2f3f8bc701df4890a5a4baf0b632ad3290be1e0aaf572b2e58fd57df93efc306 \
                        size    52040

build.args          -ldflags "'-X main.version=${version}'"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
