# -*- 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 d4226f489bf71b1cb9f7d3aa00becb8d84b21601
version             20240407
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  81b77b8248d50b50789a6ec1741f72814ab1348c \
                        sha256  0ceda1d8a2c3316619c2484a7131240bb8166bfb34713ab6fe621aa0dac353e6 \
                        size    16722

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/check.v1 \
                        lock    038fdea0a05b \
                        rmd160  0f1896097db9d42b2fb5d62999bb52c77635f758 \
                        sha256  a82bd5c6960aa523c4dd8b30d52c3a7e8a5382e91f25862ef277bedf5c107007 \
                        size    31647 \
                    golang.org/x/net \
                        lock    v0.25.0 \
                        rmd160  f9afa0b277fff8cc6458e54cf907bc3a8f623cb8 \
                        sha256  4cc00833236ee934170624089cb8a7964dc120d897fdecdda2a28bb273030c94 \
                        size    1510776 \
                    golang.org/x/crypto \
                        lock    v0.23.0 \
                        rmd160  1aeb5852024699ed01f0e89933f152c3ff14ea79 \
                        sha256  aa1182b8489006956a8015ca94bb2ecccd162dd32c286e71cd29e533804f4dc1 \
                        size    1813969 \
                    github.com/urfave/cli \
                        lock    v1.22.15 \
                        rmd160  dbd9587c9c5ebd37f1c3ded074a63527b3225fb9 \
                        sha256  78abd9cf222054de40630976893fcd2631b81794138f40c75eb8dcbed56f0e6a \
                        size    80546 \
                    github.com/stretchr/testify \
                        lock    v1.9.0 \
                        rmd160  59147e117812fdf8270ec79e46a229c472caf08d \
                        sha256  e6fa4f530cad5bac94bf08af05ddd1f569aeac8db4017ab4330ab7fe2802a6a3 \
                        size    108716 \
                    github.com/russross/blackfriday \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/cpuguy83/go-md2man \
                        lock    v2.0.4 \
                        rmd160  6ffe0c422d0b5730c8cf5a078fa9c7a67a1d2db8 \
                        sha256  a9d98f865f053c7b569d0751ec9a80e93194f1ae9d49e0c6423e53e0d6cd5574 \
                        size    9903 \
                    github.com/BurntSushi/toml \
                        lock    v1.3.2 \
                        rmd160  d34d7e7532c67412d48f3777a5bba8cd5a04b0cd \
                        sha256  ba788b5f21507f40faa972bc86cb87d8929c798959f7402152d86120ac357d05 \
                        size    119417

build.cmd           make
build.target        build
build.args          version=${version}

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